Tim Gates
9607664798
docs: Fix simple typo, recieved -> received ( #1543 )
...
There is a small typo in packages/marko/docs/body-content.md.
Should read `received` rather than `recieved`.
(cherry picked from commit 48cc3f9d37c04b1c1b66a61bb31098878a6e7256)
2020-04-13 10:56:33 -07:00
Michael Rawlings
d8783ee88f
test: add failing test for hydration of preserved elements on mismatch ( #1534 )
...
Co-authored-by: Dylan Piercey <dpiercey@ebay.com>
(cherry picked from commit db56ff95f2554d0182669d62049326aee5093ca7)
2020-04-13 10:56:33 -07:00
Dylan Piercey
45e42dfd84
feat: improve serialization across multiple writes ( #1542 )
...
* feat: improve serialization across multiple writes
(cherry picked from commit 81c4da75c8e272d6b2d145e225078695c931dfd3)
2020-04-13 10:56:33 -07:00
Michael Rawlings
de27b4af4c
fix: add devmode warning for removing fragment markers ( #1541 )
...
(cherry picked from commit 1c3852f2c7938a689c249b6d59b6280becda216e)
2020-04-13 10:56:33 -07:00
Dylan Piercey
b50f93c024
fix: implement missing methods for void-writer ( #1540 )
...
(cherry picked from commit 28060669a421837cec19f35f307f35c0ef636b0e)
2020-04-13 10:56:33 -07:00
Dylan Piercey
eb9e156116
perf: optimize serializing renderBody & legacy widgets ( #1539 )
...
(cherry picked from commit 5a74012945a761a004089158aec03d871415cc2a)
2020-04-13 10:56:33 -07:00
Dylan Piercey
792aa6a7b7
perf: optimize merge html attrs ( #1538 )
...
(cherry picked from commit 17f0335503d30c46ef4f44090d8931c7e6915470)
2020-04-13 10:56:33 -07:00
Dylan Piercey
144c352863
fix: regression with nullish values in partial string attribute values ( #1537 )
...
(cherry picked from commit a469e020cc60089bae73bf1a311a8e6919bc0ce0)
2020-04-13 10:56:33 -07:00
Dylan Piercey
1fed43e241
perf: misc improvements ( #1535 )
...
* perf: attr & escape helper optimization
* perf: optimize server component
* perf: dynamic tag perf improvements
* perf: prevent escaping json attrs, optimize nonce
* perf: legacy widget & dynamic tag key serialization improvement
* perf: prevent serializing component props for legacy components
* fix: auto key regexp for dynamic tag
* perf: prevent creating constructors for implicit components
(cherry picked from commit ff8224881a62d91b3e00f74791b5716804d6068a)
2020-04-13 10:56:33 -07:00
Dylan Piercey
6b3156f808
fix: spread attrs for native tag preserves case ( #1530 )
...
(cherry picked from commit f97270746e7580d0d38e3a2a43e585721a256baf)
2020-04-13 10:56:33 -07:00
Dylan Piercey
480bc77433
fix: issue with keys under ssr no-update root ( #1527 )
...
Co-authored-by: Michael Rawlings <mirawlings@ebay.com>
(cherry picked from commit fd03031c47881bf5dd7b311dd1fec843c98a1c06)
2020-04-13 10:56:33 -07:00
Dylan Piercey
3f30b029ff
chore: publish
v5.0.0-next.8
2020-03-17 13:41:02 -07:00
Dylan Piercey
bc0bc69b31
fix(translator-default): include full filename in meta.component
2020-03-17 13:40:48 -07:00
Dylan Piercey
a9775e5a41
chore: publish
v5.0.0-next.7
2020-03-17 13:30:39 -07:00
Dylan Piercey
bd21c79449
fix(translator-default): set meta component for inline component
2020-03-17 13:30:23 -07:00
Dylan Piercey
84f794db9c
chore: publish
v5.0.0-next.6
2020-03-16 08:32:06 -07:00
Dylan Piercey
2eac2572be
fix: make Marko a peerDependency
2020-03-16 08:30:43 -07:00
Michael Rawlings
ab3d2a7b0b
fix: don't serialize component boundary keys if the owner isn't hydrated ( #1525 )
...
(cherry picked from commit 9bf16b81f46abda06e42cbbd9341dd023fdcadc0)
2020-03-09 14:23:29 -07:00
Dylan Piercey
1dc413b83d
chore(marko): remove VComment node which is no longer used ( #1519 )
2020-02-27 14:59:37 -08:00
Michael Rawlings
585b2f1de7
feat: all vnodes have owner components ( #1517 )
...
(cherry picked from commit cb426099ea83638f5feba85562ba7b56083dac4c)
2020-02-27 13:39:20 -08:00
Dylan Piercey
93b754c5c3
chore: publish
v5.0.0-next.5
2020-02-26 15:07:57 -08:00
Dylan Piercey
84aa30ee6d
fix: always include nested contexts when serializing ( #1515 )
...
(cherry picked from commit c4f28e433cee13f206736c85431975e62b8ceed2)
2020-02-26 14:18:00 -08:00
Michael Rawlings
c00a02c446
fix: set preserve false under new rerender roots ( #1513 )
...
fix: use non-global context
cherry picked from commit 2adfd77b706a2ce3c23acd7cb8f36e9e0a6afae6
2020-02-26 12:32:18 -08:00
Dylan Piercey
894e259733
chore: publish
v5.0.0-next.4
2020-02-25 13:24:40 -08:00
Dylan Piercey
f4a39e91ca
fix: improve node locations in sourcemaps ( #1512 )
2020-02-25 13:18:17 -08:00
Dylan Piercey
d1351a33de
chore: publish
v5.0.0-next.3
2020-02-25 11:26:49 -08:00
Dylan Piercey
eb7441f787
fix: only use minprops on runtime code ( #1511 )
...
* fix: only use minprops on runtime code
2020-02-25 11:24:12 -08:00
Michael Rawlings
01a6411e4b
chore: publish
v5.0.0-next.2
2020-02-25 09:55:14 -08:00
Michael Rawlings
5b394be908
fix: publish hooks (again)
2020-02-25 09:51:13 -08:00
Michael Rawlings
7e305f0d2c
chore: publish
v5.0.0-next.1
2020-02-25 09:30:40 -08:00
Michael Rawlings
2dc090165c
fix: publish hooks (maybe)
2020-02-25 09:29:49 -08:00
Michael Rawlings
e6996fd212
chore: publish prerelease
2020-02-25 09:09:53 -08:00
Michael Rawlings
02670c8693
feat: import compiler from marko-js/x
...
Co-authored-by: Michael Rawlings <mirawlings@ebay.com>
Co-authored-by: Dylan Piercey <dpiercey@ebay.com>
Co-authored-by: Andrew Gliga <agliga@ebay.com>
2020-02-24 21:15:05 -08:00
Michael Rawlings
ea6736d085
feat: update apis/tests for new compiler
...
BREAKING CHANGE: api for compile-time tags has changed.
This affects tranformer/node-factory/code-generator tags.
Co-authored-by: Michael Rawlings <mirawlings@ebay.com>
Co-authored-by: Dylan Piercey <dpiercey@ebay.com>
Co-authored-by: Andrew Gliga <agliga@ebay.com>
2020-02-24 19:20:23 -08:00
Michael Rawlings
c1630543fb
chore: delete deprecated apis/tests
...
BREAKING CHANGE: The following deprecated apis have been removed:
- Deprecated top-level entrypoints of the `marko` package
- The marko@3/marko-widgets@6 legacy compatibility layer
- Auto-migratable syntax and api changes to the core tags
Co-authored-by: Michael Rawlings <mirawlings@ebay.com>
Co-authored-by: Dylan Piercey <dpiercey@ebay.com>
2020-02-24 19:18:10 -08:00
Michael Rawlings
f7ef29cc2e
chore: remove editorconfig and run prettier
2020-02-24 16:48:25 -08:00
Michael Rawlings
152c8b1696
chore: add commitlint & standard-version release script
2020-02-24 16:29:11 -08:00
Michael Rawlings
9c03189839
update snapshots that changed due to moved files
2020-02-24 16:29:11 -08:00
Michael Rawlings
2d5a2232f4
move files under packages/marko
2020-02-24 16:28:58 -08:00
Dylan Piercey
fe172b1464
4.18.48
v4.18.48
2020-02-21 15:27:37 -08:00
Dylan Piercey
f2f153f79a
Update changelog
2020-02-21 15:27:30 -08:00
Dylan Piercey
c12e99a143
Fix issues with dynamic tag related to events and split components ( #1507 )
2020-02-21 15:24:00 -08:00
Michael Rawlings
974ebce5ae
4.18.47
v4.18.47
2020-02-20 12:41:28 -08:00
Michael Rawlings
f9cbae23e2
Update changelog
2020-02-20 12:41:19 -08:00
Dylan Piercey
ede41ca315
Deprecate JSON.stringify for attributes and other attr string fixes ( #1505 )
2020-02-20 12:31:24 -08:00
Michael Rawlings
2acd19cb72
Prune input split widgets, Remove data-widget ( #1503 )
...
* prune input for split widgets
* remove data-widget attr in non test/dev environment
* add notice for stateful widgets that don't actually set state
2020-02-20 12:29:04 -08:00
Michael Rawlings
78da58e470
Flushing improvements ( #1502 )
...
* update test runner to show the points where we actually flush to the stream
* combine all component init code per flush
* debounce flushes by a tick
* use tick-based async helper to reduce test flakiness
* make client-reorder use the new out.script helper to combine scripts
* defer creating the typeArray/typeIndexes until writing the script
* update legacy getInitWidgetsCode to call getInitComponentsCode with the correct signature
2020-02-20 12:27:58 -08:00
Dylan Piercey
c0ba7496f9
4.18.46
v4.18.46
2020-02-13 13:06:47 -08:00
Dylan Piercey
49fea9ce63
Update changelog
2020-02-13 13:06:42 -08:00
Dylan Piercey
cd9142d6af
Fix issue with init-components inside nested awaits ( #1500 )
2020-02-13 13:04:15 -08:00