853 Commits

Author SHA1 Message Date
Dylan Piercey
fcf277d6d9
4.13.7 2018-10-03 13:23:08 -07:00
Dylan Piercey
3bbe40e0a0
4.13.6 2018-10-02 13:56:34 -07:00
Michael Rawlings
2d3ff47410
4.13.5 2018-09-14 15:10:13 -07:00
Michael Rawlings
12a8b4d06b
Fix component dom insert (#1129) 2018-09-14 13:25:39 -07:00
Dylan Piercey
4ec94426eb
4.13.4 2018-08-30 15:31:50 -07:00
Dylan Piercey
dc9142bcd9
4.13.3 2018-08-29 10:39:45 -07:00
Michael Rawlings
3b21f907fa
4.13.2 2018-08-28 16:49:32 -07:00
Dylan Piercey
ccbb86d4b9
4.13.1 2018-08-28 13:41:51 -07:00
Michael Rawlings
7595742acd
4.13.0 2018-08-27 12:20:08 -07:00
Michael Rawlings
df79fcc5f0
Diffing/Keying fixes (#1094)
* Updates the diffing algorithm to use an HTMLFragment node as an abstraction rather than keeping track of startNode and endNode all throughout the diffing algorithm.

* Uses the HTMLFragment for the <${dynamic}> tag and <include> tags to preserve server-rendered content for which the renderBody is not available in the browser.

* Component ids are based on the resulting parent tree (not the owner tree). This means we cannot rely on the ids in the global lookup, so component key/refs are now also stored on the component instance.

* Static node trees are now only auto assigned a key for the top-level node (instead of all nodes).

* Server comment starting markers now have the component's key serialized so the component can be attached to its owner

* Server comment markers no longer have the id on the closing marker, it is stack based.

* Normalize differences between hydration and client-rendering, so post mount the DOM looks the same regardless of whether a component was server or client rendered.

* fix matching up fragments when hydrating by taking components and normalized text nodes into account

* remove wrapping divs in test, should no longer be needed.  address hydration issue with alternate fragment matching approach.

* add fragment to dom if there's a parentNode even if no startNode

* add test for mismatched hydration

* don't detach components before moving

* use fragments to preserve renderBody content

* use ___finishFragment as the incomplete fragment marker

* ensure fragments get destroyed properly and dom node key sequences don't continue from previous renders

* use parent/owner terminology in more places, component ids are now parent scoped, key/ref components are attached to their owner for both client + server render, server comment boundaries include the owner and the key in addition to the fully scoped component id, autokeyed dom nodes are attached to their parent, hydration now uses a stack: ids in ending comment nodes not needed, hydration checks to see if a component has been initialized and will attach keys directly to the owner if so

* add mutation guards for text/comment nodes, add mutation guard for input value

* make component-pages test better represent streaming hydration, fix html/head/body hydration in a better/more generic way

* add test for async rendered keyrefs

* add test for repeated mult-level transclusion

* Autokeyed elements are now stored on the parent rather than the owner. User assigned key/refs are still stored on the owner component. Because of this, user assigned keys are now prefixed (with @) to differentiate them from autokeys. This also has the benefit that assigning numeric keys can no longer conflict with the autokeys.

* add re-rendering the intermediate container to one of the new tests
2018-08-27 11:46:47 -07:00
Dylan Piercey
e9b08cb41e
4.12.5 2018-08-17 15:07:36 -07:00
Michael Rawlings
4745dcf3a3
4.12.4 2018-08-02 12:08:59 -07:00
Dylan Piercey
97253639e1
4.12.3 2018-07-26 10:41:49 -07:00
Michael Rawlings
d3c9b8d919
4.12.2 2018-07-19 16:47:46 -07:00
Michael Rawlings
0ca3778363
4.12.1 2018-07-16 13:37:10 -07:00
Michael Rawlings
c6829e1efe
4.12.0 2018-07-10 13:22:12 -07:00
Michael Rawlings
0b80f57aef
4.11.5 2018-07-02 14:37:44 -07:00
Michael Rawlings
c6a2bf2819
Deprecation warnings (#1073)
* update complain
* use fallback location for deprecation if node does not have a position
2018-07-02 14:20:47 -07:00
Michael Rawlings
916f12792f
4.11.4 2018-06-28 15:30:44 -07:00
Michael Rawlings
5729a7efd9
remove artificial memory limit, npm test is just mocha now 2018-06-28 10:13:32 -07:00
Michael Rawlings
505dd1e1ba
switch to using extracted jsdom-context-require 2018-06-27 14:12:41 -07:00
Michael Rawlings
4c197199e1
4.11.3 2018-06-25 21:50:53 -07:00
Michael Rawlings
a5b93ebb25
fix for loop autokeys (#1067) 2018-06-25 21:35:39 -07:00
Dylan Piercey
8679a3e681
4.11.2 2018-06-21 13:03:08 -07:00
Austin Kelleher
97b4d8a78a Update dependencies (#1060) 2018-06-21 12:31:07 -07:00
Austin Kelleher
d9805d0e28 Update prettier (#1062)
* update prettier
* format files with new version of prettier
2018-06-21 10:40:44 -07:00
Michael Rawlings
fb7575772c
4.11.1 2018-06-20 17:22:34 -07:00
Michael Rawlings
d9a3e18199
4.11.0 2018-06-19 17:12:17 -07:00
Dylan Piercey
b73e82a68a
4.10.1 2018-06-19 15:32:02 -07:00
Austin Kelleher
d6e251d87b 4.10.0 2018-05-23 17:14:44 -04:00
Michael Rawlings
37723eb8aa 4.9.7 2018-04-25 15:44:27 -07:00
Michael Rawlings
c619f29c1e update prettier 2018-04-25 13:26:36 -07:00
Michael Rawlings
c04495d5e9 4.9.6 2018-04-03 13:16:23 -07:00
Dylan Piercey
b7b970d8bf 4.9.5 2018-04-03 12:31:53 -07:00
Austin Kelleher
82db00e89e 4.9.4 2018-03-28 08:25:55 -04:00
Michael Rawlings
b1631ba3c8 add explicit exit code to the mocha script 2018-03-24 00:34:31 -07:00
Michael Rawlings
4ae70d8520 4.9.3 2018-03-23 15:11:54 -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
Dylan Piercey
d971abd0a3 4.9.2 2018-03-14 12:16:30 -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
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 2018-03-05 14:36:25 -08:00
Michael Rawlings
839cedc7e1 4.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
Dylan Piercey
59cb8e746d 4.8.0 2018-02-20 10:44:40 -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
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
Austin Kelleher
adf5838a6e 4.7.5 2018-01-18 16:07:05 -05:00
Austin Kelleher
c45868f582 Merge branch 'master' of github.com:marko-js/marko 2018-01-18 15:41:10 -05:00
Austin Kelleher
1cf8a5749f Revert "Use micromatch in CLI (#957)"
This reverts commit b6f23b08868f1c3d3c15092cecf349ef9b898c7d.
2018-01-18 15:39:19 -05:00