Commit Graph

114 Commits (cf1e00e6025f85d6948c05322e5404b2f57d722f)

Author SHA1 Message Date
Rich Harris 8a0813e96b SSR await-then-catch
8 years ago
Rich Harris be68cd9de2 use store in SSR mode
8 years ago
Rich Harris d590dbe165
Reinstate code coverage
8 years ago
Rich Harris 51901442c9
attach globals to state object on initialisation
8 years ago
Jacob Mischka f0aea9b086
Fix updates for destructured each arrays
8 years ago
Jacob Mischka ffbc991027
Add missing runtime test, add contexts to SSR
8 years ago
Rich Harris 7f39b5be16 tidy up
8 years ago
Rich Harris 4dbfc65e74 fix indentation, update snapshot tests
8 years ago
Rich Harris 3879d52616 dont slot elements inside custom elements - fixes #827
8 years ago
Rich Harris e993ae0748 more consistent style for generated code
8 years ago
Rich Harris a68f7e103f stack up append targets so that slotted content in nested components works in SSR mode (fixes #801)
8 years ago
Rich Harris 587d1f8994 remove some unused code
8 years ago
Rich Harris 5b3e8cd88f support nested <slot> elements
8 years ago
Rich Harris 143d0ea753 dont actually render <slot> elements
8 years ago
Rich Harris 1ae3ab7bf9 server-side named slots
8 years ago
Rich Harris 7a8c8fd577 replace {{yield}} with <slot/>
8 years ago
Conduitry b869e48bff saner escaping/unescaping of `@` and `#` sigils
8 years ago
Rich Harris a524ab273e fix escaping/unescaping — closes #741
8 years ago
Rich Harris 82559c3775 support ref:foo as a CSS selector (#693)
8 years ago
Rich Harris 815c17cbe7 fix unescaping edge case
8 years ago
Rich Harris f2db3ea828 tidy up, add sourcemaps to add_css function
8 years ago
Rich Harris 2ec0a850fc apply css optimisations to SSR
8 years ago
Rich Harris 2fa784ecc3 handle @foo and #foo edge cases
8 years ago
Rich Harris ebae9f9c28 run prettier
8 years ago
Rich Harris 334772a11d use #foo instead of block.alias("foo")
8 years ago
Rich Harris 9feee3a0bf use @foo for generator.alias("foo")
8 years ago
Rich Harris dcb905aab6 fix each-else blocks that are empty on initial render (#662)
8 years ago
Rich Harris e0917fd874 allow components to have computed member expressions for bindings (fixes #624)
9 years ago
Rich Harris 1a798ec8ad Merge branch 'master' into gh-616
9 years ago
Rich Harris b0a1616e31 add trailing commas to prettier config, only run on .ts files
9 years ago
Conduitry 05a7a262c3 also escape back-ticks and backslashes in text nodes in SSR code (#616)
9 years ago
Rich Harris 84595fb381 run prettier on src, update tests
9 years ago
Rich Harris 7b99d47215 add cascade option, to prevent components inheriting styles (#583)
9 years ago
Rich Harris 8d2607c37d fix server-side rendering of textareas with value/children
9 years ago
Rich-Harris 5cbe6b764a more TS
9 years ago
Rich-Harris 7c3fca57cf more typescript conversion
9 years ago
Rich-Harris 8d07a5f9bd gah, rollup needs the file extensions. which idiot wrote it
9 years ago
Rich-Harris 13b87acfb9 remove .ts file extensions
9 years ago
Rich-Harris 1c5e6e7430 rename all (almost) .js files
9 years ago
Rich-Harris e345287a76 rename root to state, and allow state to be used as context
9 years ago
Rich-Harris ab19649dfa preprocess template, so that we can discover dependencies ahead of time
9 years ago
Rich-Harris 8148230e49 align SSR compiler with DOM compiler
9 years ago
Rich-Harris d93a3698fb all tests passing once more. now the real work begins
9 years ago
Rich-Harris e7d324f305 visitors can just be functions now
9 years ago
Rich-Harris 2d4f9eac00 make visitors responsible for visiting their own children
9 years ago
Rich Harris 4b5754b9a7 centralise logic for manipulating source javascript
9 years ago
Rich Harris 3ead9bfc3f Merge branch 'master' into gh-371
9 years ago
Conduitry 7d03b74576 use maps and sets in many places instead of plain objects
9 years ago
Rich Harris 8558b45337 Merge branch 'master' into gh-371
9 years ago
Conduitry c877b3c615 deconflict `template` variable (#392)
9 years ago
Rich-Harris cefbe45edb SSR support for <:Window> (albeit impossible to test for some reason)
9 years ago
Rich Harris 5866a99b9a treat binding values as expressions
9 years ago
Rich-Harris 92925ede0d fix two-way binding for components inside each-blocks - closes #356
9 years ago
Conduitry 52b3a43e7b accept DOCTYPE element in any case
9 years ago
Rich-Harris 0f60242bb9 self-references (#51)
9 years ago
Rich Harris 98d9cdbea7 allow each blocks to introduce reserved words as contexts (#222)
9 years ago
Rich Harris 23265d5dfd two-way component binding in SSR (#275)
9 years ago
Rich Harris 94aca91d35 fix/skip various SSR tests
9 years ago
Paul Sauve d767e6af75 Fix same issue but in SSR code
9 years ago
Rich-Harris 11dc7dc380 handle component directives at positions other than end (fixes #221)
9 years ago
Rich-Harris e7dd885ecf handle directives on components (fixes #216)
9 years ago
Rich-Harris 603d61729e use SsrGenerator subclass
9 years ago
Rich Harris 8a99178070 lint
9 years ago
Rich Harris 4df7cfa0f8 use shared generator for SSR compiler
9 years ago