0
0
mirror of https://github.com/sveltejs/svelte.git synced 2024-11-29 16:36:44 +01:00
Commit Graph

26 Commits

Author SHA1 Message Date
Simon H
1a3e50b6b7
fix: check srcset when hydrating to prevent needless requests (#8868)
---------

Co-authored-by: Ben McCann <322311+benmccann@users.noreply.github.com>
2023-06-30 10:57:40 +02:00
L
270cfce065
chore: adding default for disclose version (#8874) 2023-06-29 11:42:00 +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
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
Simon Holthausen
5d301aafb9 chore: exit prerelease mode 2023-06-22 15:23:25 +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
Simon H
203490c3e4
breaking: use CustomEvent constructor instead of deprecated createEvent method (#8775)
closes #8474
2023-06-21 10:07:24 +02:00
Simon Holthausen
963cbcdb06 chore: adjust changeset config 2023-06-21 09:47:55 +02: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
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
gtmnayan
f580e2e0c8
fix: warn on boolean compilerOptions.css (#8710)
* warn on boolean compilerOptions.css

* changeset
2023-06-14 21:31:44 +02: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
gtmnayan
264da48887
fix: derived types (#8700)
* fix: derived store types

* changeset
2023-06-08 11:02:10 -04:00
gtmnayan
0b15bb6928
fix: export ComponentType (#8694)
* fix: export ComponentType

* ughh

* changeset
2023-06-08 09:57:15 -04:00
Rich Harris
1046daba6a
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>
2023-06-08 09:48:11 -04:00
Ben McCann
f2ff684b5f
chore: setup changesets (#8668)
Co-authored-by: dominikg <dominik.goepel@gmx.de>
2023-06-01 13:22:34 -07:00