Simon Holthausen
1de2144dae
chore: tests for #8872
2023-06-29 09:36:30 +02:00
github-actions[bot]
90860550ae
Version Packages ( #8855 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2023-06-29 09:35:31 +02:00
Simon H
b0a3fa1766
fix: ensure createEventDispatcher and ActionReturn work with generic function types ( #8872 )
...
fixes #8860
This contains a small but unfortunately unavoidable breaking change: If you used `never` to type that the second parameter of `createEventDispatcher` shouldn't be set or that the action accepts no parameters (which the docs recommended for a short time), then you need to change that to `null` and `undefined` respectively
2023-06-28 23:56:40 +02:00
Simon H
1cfed0bf29
fix: relax a11y "no redundant role" rule for li, ul, ol ( #8867 )
...
fixes #8854
2023-06-28 12:29:44 +02:00
hackape
876f894c64
fix: apply transition_in/out to svelte:element with local transition ( #8865 )
...
fixes #8233
2023-06-28 12:29:03 +02:00
Simon H
2b9b99bd35
fix: remove tsconfig.json from published package ( #8859 )
...
fixes #8839
2023-06-27 17:17:03 +02:00
Nguyen Tran
3576c7443e
fix: Make sure 'func' doesn't clash with destructured contexts ( #8840 )
...
Fixes: #8753
2023-06-27 08:22:08 +02:00
Ben McCann
68e6336637
chore: upgrade dependencies ( #8827 )
2023-06-26 09:42:06 +02:00
Eric Liu
abe2ee73e1
docs: fix link to changelog ( #8845 )
2023-06-25 19:58:47 -07:00
Ben McCann
7bab2d4033
docs: fix link in changelog
2023-06-24 15:59:38 -07:00
Simon H
037ac2f55a
docs: update transitions tutorial ( #8822 )
...
fixes #8820
2023-06-23 17:20:40 +02:00
Isaiah Banks
140bed5386
Update CHANGELOG.md ( #8809 )
...
Fix misformatted links in 4.0.0 changelog
2023-06-23 00:06:15 +02:00
github-actions[bot]
0596c4797d
Version Packages ( #8799 )
...
---------
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Co-authored-by: Simon H <5968653+dummdidumm@users.noreply.github.com>
2023-06-22 15:35:57 +02:00
Ben McCann
60eee9a73f
chore: better error messages for CJS users ( #8790 )
2023-06-22 15:20:10 +02:00
Simon Holthausen
8905877bab
fix: add any fallback to generic
...
was like this in Svelte 3
2023-06-22 15:17:29 +02:00
Jimmy Wärting
7cbd36d6b2
chore: Remove the need for node:process
( #8795 )
...
performance.now() exist in all envs we support now
2023-06-22 15:03:15 +02:00
github-actions[bot]
82cc48390c
Version Packages (next) ( #8772 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2023-06-22 13:34:50 +02:00
Simon H
ef1b98f9d9
fix: account for sourcemap in meta info ( #8778 )
...
We need to use a different method for getting the meta info because `locate` is used to help construct the source map that references the preprocessed Svelte file. If we would now add source maps to that `locate` function it would go the the original source directly which means skipping potentially intermediate source maps which we would need in other situations. Sadly we can't map the character offset because for that we would need to the original source contents which we don't have in this context.
fixes #8360
closes #8362
2023-06-22 11:59:28 +02:00
gtmnayan
5702142d9e
feat: attach Svelte major version info to window global ( #8761 )
...
Can be opt out by setting discloseVersion to false
---------
Co-authored-by: Simon H <5968653+dummdidumm@users.noreply.github.com>
Co-authored-by: Ben McCann <322311+benmccann@users.noreply.github.com>
2023-06-22 10:48:23 +02:00
gtmnayan
03942162f8
chore: deindent cjs output for compiler ( #8785 )
...
makes package size a tiny bit smaller
2023-06-22 10:41:23 +02:00
Jimmy Wärting
f76a75b97d
chore: remove btoa fallback ( #8783 )
...
Since we're targeting NodeJS >16 we don't need any Buffer fallback as it's now built in globally from that version onwards.
2023-06-22 10:10:48 +02:00
Puru Vijay
cf32fa2497
fix(site): update tutorial links ( #8780 )
...
Co-authored-by: Ben McCann <322311+benmccann@users.noreply.github.com>
2023-06-21 15:12:58 -07:00
Simon H
203490c3e4
breaking: use CustomEvent
constructor instead of deprecated createEvent
method ( #8775 )
...
closes #8474
2023-06-21 10:07:24 +02:00
Puru Vijay
78749101e7
fix: update/add links to website ( #8729 )
...
---------
Co-authored-by: Ben McCann <322311+benmccann@users.noreply.github.com>
Co-authored-by: Simon H <5968653+dummdidumm@users.noreply.github.com>
Co-authored-by: Simon Holthausen <simon.holthausen@vercel.com>
2023-06-21 09:49:58 +02:00
gtmnayan
de8dfda049
chore: move tests to the correct place ( #8773 )
2023-06-21 09:33:07 +02:00
Ben McCann
4d491d41cc
merge changelog for 3.59.2
2023-06-20 13:35:14 -07:00
Ben McCann
a856128d80
merge master
2023-06-20 12:36:41 -07:00
gtmnayan
914529fa76
feat: smaller destructor chunk ( #8763 )
...
technically a breaking change because someone with a mutation observer could rely on the order of operations
---------
Co-authored-by: Simon H <5968653+dummdidumm@users.noreply.github.com>
2023-06-20 17:42:50 +02:00
Puru Vijay
88504ee90a
docs(sites): Auto-generated CompileOptions ( #8756 )
...
---------
Co-authored-by: Simon H <5968653+dummdidumm@users.noreply.github.com>
Co-authored-by: Simon Holthausen <simon.holthausen@vercel.com>
2023-06-20 09:31:31 +02:00
GrygrFlzr
54f72f4545
fix: update onMount type to allow async to return any ( #8714 )
...
---------
Co-authored-by: Simon H <5968653+dummdidumm@users.noreply.github.com>
2023-06-19 17:58:35 +02:00
Ben McCann
0724261b4d
chore: update code-red ( #8719 )
...
---------
Co-authored-by: Simon Holthausen <simon.holthausen@vercel.com>
Co-authored-by: gtmnayan <gtmnayan@gmail.com>
2023-06-19 15:48:53 +02:00
Simon H
752ee69e6b
chore: a11y tests cleanup ( #8759 )
...
closes #8728
Turns out all the removed previous test failures are indeed correct to be removed, according to the test adjustments in https://github.com/jsx-eslint/eslint-plugin-jsx-a11y/pull/937
2023-06-19 14:05:54 +02:00
github-actions[bot]
520a5784fb
Version Packages (next) ( #8733 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2023-06-18 21:13:25 +02:00
gtmnayan
cc82d5ddcb
fix: expose types for all TS resolution modes, fix SvelteComponent export ( #8721 )
...
also add some legacy import paths which should be changed in usage sites ASAP
---------
Co-authored-by: Simon H <5968653+dummdidumm@users.noreply.github.com>
Co-authored-by: Simon Holthausen <simon.holthausen@vercel.com>
2023-06-18 21:12:00 +02:00
Simon H
aa8cc5d26f
fix: never use html optimization for mustache tags in hydration mode ( #8744 )
...
---------
Co-authored-by: gtmnayan <gtmnayan@gmail.com>
2023-06-16 22:12:35 +02:00
Ben McCann
bdf10f125c
merge
2023-06-16 08:43:39 -07:00
Ben McCann
e8e9c6cc19
chore: update locate-character
and dts-buddy
( #8737 )
2023-06-15 20:48:38 -07:00
Puru Vijay
62bef809b2
Merge remote-tracking branch 'origin/version-4' into sites
2023-06-15 19:29:18 +05:30
Simon H
c587c8aaaa
docs: note limitations of not using shadow root ( #8734 )
...
closes #8686
2023-06-14 22:15:11 +02:00
mimbrown
4f1063723e
fix: Don't break in attributeChangedCallback
if $$component
does not exist yet ( #8701 )
...
Since the custom element class waits one tick before instantiating the `$$component` field, it's possibly undefined when `attributeChangedCallback` is called.
2023-06-14 21:33:17 +02:00
gtmnayan
f580e2e0c8
fix: warn on boolean compilerOptions.css ( #8710 )
...
* warn on boolean compilerOptions.css
* changeset
2023-06-14 21:31:44 +02:00
Ben McCann
20d95ddb23
merge
2023-06-14 12:08:53 -07:00
Rich Harris
b1cafc4573
update type generation script ( #8712 )
...
* chore: playground (#8648 )
* initialize playground
* pnpm up
* tidy up git ignore
* remove fluff
* format
* rm readme
* fix jsconfig error
* add skip-worktree instructions
* reload hack
* simplify
* use rollup
* ughh
* add flag for SSR
* ...
* simplify further
* configure launch.json
* add debugger info to readme
* remove vm modules flag
* use replaceAll instead of replace
* tidy up
* fix: make it run
* add watch to launch config
* Generate type declarations with `dts-buddy` (#8702 )
* use dts-buddy
* remove debug output
* remove existing type generation script
* fix package.json
* update gitignore
* bump dts-buddy
* remove unused action entry point
* add svelte/compiler and svelte/types/compiler/preprocess modules
* bump dts-buddy
* annoying
* changeset
* bump dts-buddy
* get rid of .d.ts files
* another one
* Update packages/svelte/package.json
Co-authored-by: gtmnayan <50981692+gtm-nayan@users.noreply.github.com>
---------
Co-authored-by: Rich Harris <git@rich-harris.dev>
Co-authored-by: gtmnayan <50981692+gtm-nayan@users.noreply.github.com>
* fix: export ComponentType (#8694 )
* fix: export ComponentType
* ughh
* changeset
* fix: derived types (#8700 )
* fix: derived store types
* changeset
* Version Packages (next) (#8709 )
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
* update type generation script
* remove unused stuff
* fix: changeset publish script isn't called release anymore (#8711 )
* chore: remove prepare script (#8713 )
* chore: fix release workflow (#8716 )
* More readable, Fix $$_attributes
* Fix types (#8727 )
* put comment in right place
* bump dts-buddy
---------
Co-authored-by: Rich Harris <git@rich-harris.dev>
* build types
* add svelte/compiler types
* remove prepare script
* fix
* typo
* squelch errors
* Add svelte and kit to twoslash's types field
* squelch more stuff
* Add errors to account for new types
* Remove deps
* formatting tweak
* fix linting, maybe
* the hell
* gah
* Fix types a bit
* bump dts-buddy
* pnpm generate in dev mode
* Cache again
* reduce index
* bump dts-buddy
* remove comment
---------
Co-authored-by: gtmnayan <50981692+gtm-nayan@users.noreply.github.com>
Co-authored-by: Rich Harris <git@rich-harris.dev>
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Co-authored-by: Dominik G <dominik.goepel@gmx.de>
Co-authored-by: Ben McCann <322311+benmccann@users.noreply.github.com>
Co-authored-by: Puru Vijay <devpuruvj@gmail.com>
2023-06-14 11:30:13 -04:00
Ben McCann
83e91782e6
chore: upgrade aria-query and axobject-query ( #8724 )
...
Co-authored-by: gtmnayan <gtmnayan@gmail.com>
2023-06-14 08:23:09 -07:00
Ben McCann
cc1f4bc6ff
chore: upgrade eslint config ( #8717 )
2023-06-14 19:55:12 +05:45
Rich Harris
d6f0b7bd5b
Fix types ( #8727 )
...
* put comment in right place
* bump dts-buddy
---------
Co-authored-by: Rich Harris <git@rich-harris.dev>
2023-06-13 11:30:48 -04:00
Puru Vijay
ad9a672171
Merge version-4
2023-06-10 16:02:51 +05:30
gtmnayan
8bd90219ec
chore: fix release workflow ( #8716 )
2023-06-08 19:32:06 -07:00
Ben McCann
0c6f17274e
chore: remove prepare script ( #8713 )
2023-06-08 14:43:33 -07:00
github-actions[bot]
5963b6fd84
Version Packages (next) ( #8709 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2023-06-08 11:03:52 -04:00