0
0
mirror of https://github.com/sveltejs/svelte.git synced 2024-11-24 00:07:30 +01:00
Commit Graph

8 Commits

Author SHA1 Message Date
Rich Harris
a531625896
chore: generate coverage report when deploying site (#11110)
* chore: generate coverage report when deploying site

* always generate report
2024-04-10 16:07:38 -04:00
Rich Harris
90f8b63bee
fix: run onDestroy cleanup during SSR (#10297)
fixes #10296
Also make sure to use the server export conditions when resolving Svelte imports from inside the server compiler output

---------

Co-authored-by: Rich Harris <rich.harris@vercel.com>
Co-authored-by: Simon Holthausen <simon.holthausen@vercel.com>
2024-02-06 16:09:51 +01:00
S. Elliott Johnson
d309a9d47a
feat: Variadic snippets (#9988)
* give this another try

* fix: lint

* fix: Forgot to save

* feat: it works boiiii

* look, ok, it did work, i just needed to update the snapshots

* bruh

* changeset

* feat: ok I think the client snippet block finally works

* feat: current tests pass; I'm sure I'm missing stuff for new things

* fix: snapshot

* feat: I think non-destructured rest should work now?

* chore: duplicated computation

* feat: Tests (passing and failing

* feat: it's... alive?

* chore: Clean up my messes

* chore: devtime stuff

* fix: fmt

* chore: see if this fixes repl

* chore: make naming more offensive

* fix: Don't throw on missing keys, return undefined as it usually would

* Update packages/svelte/src/compiler/phases/1-parse/state/tag.js

Co-authored-by: Simon H <5968653+dummdidumm@users.noreply.github.com>

* Update packages/svelte/src/compiler/phases/1-parse/state/tag.js

Co-authored-by: Simon H <5968653+dummdidumm@users.noreply.github.com>

* fix: Hopefully default param values now work

* dumb

* types

* feat: Test it

* fix: Turns out javascript parameters are optional

* feat: The Final Solution

* document function

* feat: Better bracket matching, unit tests

* feat: exclude test files from publish

* feat: More unit tests

* feat: Use more efficient parsing for @const

* Update .changeset/curvy-cups-cough.md

Co-authored-by: Simon H <5968653+dummdidumm@users.noreply.github.com>

* Update packages/svelte/package.json

Co-authored-by: Simon H <5968653+dummdidumm@users.noreply.github.com>

* Update packages/svelte/src/compiler/phases/1-parse/utils/bracket.js

Co-authored-by: Simon H <5968653+dummdidumm@users.noreply.github.com>

* fix: changesets

* chore: additional comments

* fix: kill foreach

* fix: foreach again

* feat: Docs

* Revert "fix: kill foreach"

This reverts commit 9a688cc543.

* fix: My own stupidity

* fix: style

* fix - maybe

* Update sites/svelte-5-preview/src/routes/docs/content/01-api/03-snippets.md

* Update tag.js

Co-authored-by: Rich Harris <richard.a.harris@gmail.com>

* Update .changeset/curvy-cups-cough.md

Co-authored-by: Simon H <5968653+dummdidumm@users.noreply.github.com>

* chore: Remove rest params

* Delete .changeset/eighty-rivers-wash.md

* fix: Honestly idk why it was broken but it's fixed now

* fix: var name lol

* fix: typegen

* fix: idk

* fix: It looks like a bunch of unformatted shit came in through main?? idk

* Revert "fix: It looks like a bunch of unformatted shit came in through main?? idk"

This reverts commit ab851d5627.

* fix: format again

* this is getting ridiculous

* Update tag.js

Co-authored-by: Rich Harris <richard.a.harris@gmail.com>

* fix errors

* simplify a bit

* use read_context

* use read_context for const as well

* remove unused code

* unused import

* unused export

* remove spread args. sorry elliott

* tidy up SnippetBlock interface

* fix test

* simplify

* tweak

* revert example, so that it matches the surrounding text

* move PropsWithChildren back to public.d.ts

* update typing docs, so that it flows from previous example

* temporarily revert const parsing changes, to get prettier working again (???)

* oops

---------

Co-authored-by: Simon H <5968653+dummdidumm@users.noreply.github.com>
Co-authored-by: Rich Harris <richard.a.harris@gmail.com>
Co-authored-by: Rich Harris <rich.harris@vercel.com>
2024-01-30 21:22:47 -05:00
Simon Holthausen
fe8a9ce31d breaking: init Svelte 5
Co-authored-by: Rich Harris <rich.harris@vercel.com>
Co-authored-by: Simon Holthausen <simon.holthausen@vercel.com>
Co-authored-by: Dominic Gannaway <dg@domgan.com>
2023-11-10 15:48:23 +01:00
Puru Vijay
bd51e6f3ea Merge remote-tracking branch 'origin/version-4' into sites 2023-05-28 01:19:27 +05:30
gtmnayan
3df9d8466f
chore: speed up test execution (#8598)
- shard runtime tests for better use of Vite's test parallelization
- merge custom element and other browser tests to run in one test suite and use esbuild in it
- on some setups only generate code output when test fails
2023-05-22 15:46:27 +02:00
S. Elliott Johnson
fd9d61a7b7
chore: TS to JSDoc Conversion (#8569)
---------

Co-authored-by: Simon Holthausen <simon.holthausen@vercel.com>
2023-05-19 15:59:42 +02:00
gtmnayan
783bd9899e
chore: swap mocha with vitest (#8584)
Also swap out the require hook hacks with a less-hacky-but-still-somewhat-hacky loader for the Svelte files

---------

Co-authored-by: Simon Holthausen <simon.holthausen@vercel.com>
Co-authored-by: Rich Harris <richard.a.harris@gmail.com>
2023-05-17 21:00:20 +02:00