3613 Commits

Author SHA1 Message Date
Michael Rawlings
c04495d5e9 4.9.6 v4.9.6 2018-04-03 13:16:23 -07:00
Michael Rawlings
65195fe718 Merge branch 'master' of github.com:marko-js/marko 2018-04-03 13:15:03 -07:00
Michael Rawlings
967243c44f update changelog 2018-04-03 13:14:53 -07:00
Michael Rawlings
6a6d13d50c Fix spread fns #1008 (#1029)
* fix #1008 - parsing of spread attributes that end in function calls
2018-04-03 13:10:07 -07:00
Michael Rawlings
17e623d049 add failing test case (#1025) 2018-04-03 13:09:44 -07:00
Dylan Piercey
b7b970d8bf 4.9.5 v4.9.5 2018-04-03 12:31:53 -07:00
Dylan Piercey
0d9ef11580 Fix onBeforeUpdate call timing for legacy components. (#1027) 2018-04-03 09:07:43 -07:00
Austin Kelleher
82db00e89e 4.9.4 v4.9.4 2018-03-28 08:25:55 -04:00
Austin Kelleher
bc0e91d517 Do not use ES6 syntax in ComponentDef.js 2018-03-28 08:25:42 -04:00
Michael Rawlings
b1631ba3c8 add explicit exit code to the mocha script 2018-03-24 00:34:31 -07:00
Michael Rawlings
dfec01ee72 update changelog for 4.9.3 2018-03-23 15:15:11 -07:00
Michael Rawlings
4ae70d8520 4.9.3 v4.9.3 2018-03-23 15:11:54 -07:00
Denis Budyak
eae689a8fd Fix import-var compilation when there are no explicit attributes 2018-03-23 15:10:35 -07:00
Michael Rawlings
2c3edf3c36 remove additional spaces in .md 2018-03-23 14:06:03 -07:00
Michael Rawlings
428ec6cad1
Update CONTRIBUTING.md 2018-03-23 13:32:03 -07:00
Michael Rawlings
0833ada47e add coverage directory to eslintignore 2018-03-23 13:23:44 -07:00
Jason MacDonald
4a7be17af8 Added failing test for #1008 (#1017)
* Added failing test for issue #1008
2018-03-23 12:14:45 -07:00
Michael Rawlings
92c448f639 Autotest refactor (#1023)
* update autotest api and first few test suites

* refactor components-browser to use the new autotest api

* minor changes to update adjustIndent and components-pages to new autotest api

* refactor and combine async-render, deprecated-async-fragments, and render suites

* migrate compiler tests to new autotest runner

* migrate components-compilation tests to use new autotest api

* migrate most remaining test runners to new autotest api

* update adjustIndent

* migrate express tests to new autotest api

* switch from compare to snapshot

* move versions into directory

* remove snapshot sequences, prefix to name, suffix to ext

* refactor autotest

* keep node 4 happy: don't use destructured parameters

* use strict

* update contributing document to reflect new autotest api

* better snapshot errors with clickable path

* remove old vdomSkip property, fix some normalization in the render test runner, skip only tests that need to be skipped

* for generated vdom expectations use expected.html instead of rerendering the html template, update expected files that had editor added newlines at the end

* remove half-finished test that was intended to replace another test (render/fixtures/preserveWhitespace-load-option) - we'll keep the original
2018-03-23 11:27:52 -07:00
kounelios13
d7c135891b Use http variable (#1024)
Instead of requiring the http module again use the http variable.
2018-03-23 11:45:50 -04:00
Dylan Piercey
0dfbc2147a Update CHANGELOG.md 2018-03-14 12:34:03 -07:00
Dylan Piercey
39403319cb Update CHANGELOG.md. 2018-03-14 12:22:22 -07:00
Dylan Piercey
d971abd0a3 4.9.2 v4.9.2 2018-03-14 12:16:30 -07:00
Diego Berrocal
586f08aa9e Fix event collision with multiple runtimes. (#1019)
* Fix event collision with multiple runtimes
2018-03-14 12:14:44 -07:00
Michael Rawlings
0f5e639775 Format + lint (#1016)
* add prettierignore

* switch to eslint:recommended + eslint-config-prettier

* fix eslint violations

* remove more .jshintrc files

* better conditional structure

* add prettier and update prettier ignore

* add precommit hook to run prettier

* add lint check to precommit and format check to ci

* format all the things

* add generated files

* let npm do it's thing with package.json
2018-03-09 10:02:11 -08:00
Michael Rawlings
ee17aa53ab
fix debug image 2018-03-06 10:29:24 -08:00
Michael Rawlings
64da7034d9
Test allow failures (#1014)
* update mocha, add it-fails, add failing tests and skip reasons to autotest, use in the existing tests

* update labels and testing info in CONTRIBUTING
2018-03-05 21:48:08 -08:00
Michael Rawlings
90c9f17d2c 4.9.1 v4.9.1 2018-03-05 14:36:25 -08:00
Jason MacDonald
279744495e Fixed an issue with keyed elements not getting properly removed from component context when transclusion is used with a single, rendered, body item. (#1009) (#1013) 2018-03-05 14:33:48 -08:00
Michael Rawlings
cd281080a2
Update CHANGELOG.md 2018-03-02 16:15:36 -08:00
Michael Rawlings
839cedc7e1 4.9.0 v4.9.0 2018-03-02 16:10:17 -08:00
Michael Rawlings
bd4855271d Hydrate fixes (#1010)
* enable legacy hydrate tests, update test harness to support legacy widgets

* enable autokey for tests, update expectations, add better html diff output

* update test harness to register statically discovered components

* return to using a single mount function for legacy and modern components

* remove lasso from test package dependencies

* add all renders to the renderedCache, track instances separately

* temporarily skip failing hydrate test for widget types

* update widget lifecycle tracker to work with hydrate test as well

* update tests/expectations to use serialize globals: onCreate should be called when hydrating stateful components

* preserve included renderbodies

* update legacy renderbodies to use the new method of preservations

* mount components in preserved renderbodies

* stateful components should rerender when mounting, not all legacy components are split components

* ensure elements with events in split components have thier keys serialized

* call onCreate and onInput when mounting root rerender components

* fix code supporting once-* causing all events (on-* included) for hydrated split components to be handled only once

* change the way input is removed from legacy components
2018-03-02 16:09:14 -08:00
Michael Rawlings
da622f05cd update incorrect paths (#1011) 2018-03-02 16:06:55 -08:00
Michael Rawlings
ddca804915 Hydrate tests (#994)
* enable hydrate tests, use repeated key in split component to get references to server-rendered components

* allow tests to determine if hydrate mode, update attach event tests for correct expectations when hydrating

* add empty class so that the component is mounted when hydrating and we have a component reference to use for testing

* add support for  to the hydrate tests, update tests to serializeGlobals

* allow skipping hydrate only, skip hydrate for implicit component tests

* skip hydrate for test with two different global inputs

* better support for split/legacy components in the test harness

* components are already mounted in hydrate mode, so setup needs to be done elsewhere

* temporarily skip tests failing due to onCreate not being called for root level hydrated components

* only add attach/detach global helpers if target is vdom - this should not run on the server and was causing the morphdom/vdom tests to fail if it was included before them

* skip hydrate tests for deprecated components - there are a number of issues here that still need to be fixed
2018-02-23 12:15:44 -08:00
Dylan Piercey
59cb8e746d 4.8.0 v4.8.0 2018-02-20 10:44:40 -08:00
Dylan Piercey
8f49076db0 Update CHANGELOG.md 2018-02-20 10:44:30 -08:00
Scott Davis
f76bfff323 Add once-[event] directive Fixes #985 (#990)
* Add `once-[event]` directive.
* Improve docs for attaching events.
2018-02-20 10:33:43 -08:00
Dylan Piercey
a7f529debd Testing Improvements. (#989)
* * Setup utility to run jsdom tests in the same process without bundling.
* Cleanup require hooks in test suite.
* Test organization and cleanup.
* Remove redundant autotest utilities.

* Switch to require for browser.json loading

* Cache browser.json remaps. Fix components-browser rehydration setup

* Improve inline docs, remove some unneeded init code for testing modules.

* Remove unneeded promise polyfill
2018-02-20 10:26:48 -08:00
Zaiste
688ac929d4 Fix typo for an error message (#992) 2018-02-18 19:23:12 -05:00
Michael Rawlings
ecc7763f26 Update lasso.md 2018-02-14 11:35:25 -08:00
Ajaykumar
09ed886009 Updated the docs to use lasso-marko-taglib.
Make sure to use lasso-marko-taglib, when we are using latest lasso versions.
2018-02-14 11:35:25 -08:00
Michael Rawlings
9ae21ec458
Update coverage badge 2018-02-07 01:22:28 -08:00
Dylan Piercey
d00ea44d46 Test perf and organization (#981)
* Switch to in memory lasso builds and other optimizations.

* Condense components-compilation tests.

* Update lasso-fs-writer

* Condense components-compilation and compiler tests

* Increase mocha test timeout

* Allow lasso to be gc'd for tests

* Improve test cache clearing

* Fix lasso memory leak in tests

* Cache instanbul intrumenting.

* Hide complain logs.
2018-02-06 18:53:55 -08:00
Michael Rawlings
4d11fa6802 Spread attributes. Completes #878 (#967)
* add spread operator and update docs.
2018-02-06 16:01:25 -08:00
Dylan Piercey
d484de9f14 Fixes top level static for custom tags. (#959)
* Fixes top level static for custom tags.

* Switch static tag from code-generator to transformer to increase it's priority.

* Rename test.

* Fix expected file for tests.
2018-02-06 15:59:42 -08:00
Michael Rawlings
8a76dbc1cd don't preserve input for legacy components. fix updating transcluded content in legacy components (w-body). (#980) 2018-02-06 15:58:51 -08:00
Dylan Piercey
5936c1301c Issue 938 (#966)
* Add failing test case

* Add a temporary patch to fix focus.
2018-02-06 15:58:39 -08:00
Guru Prasath
74f6dcd3fa Updated the marko-fastify project link (#977)
Fixed the incorrect marko-fastify project link.
2018-01-24 08:20:12 -05:00
Austin Kelleher
a0ed915582 Update CHANGELOG.md 2018-01-18 16:09:54 -05:00
Austin Kelleher
adf5838a6e 4.7.5 v4.7.5 2018-01-18 16:07:05 -05:00
Austin Kelleher
9814d5376b Update CHANGELOG.md. 2018-01-18 16:06:13 -05:00