0
0
mirror of https://github.com/sveltejs/svelte.git synced 2024-12-01 17:30:59 +01:00
Commit Graph

7180 Commits

Author SHA1 Message Date
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
gtmnayan
15bdadb2ae
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
2023-06-07 19:22:45 -04:00
Ben McCann
5902ccab81
chore: upgrade to pnpm 8.6.0 (#8693) 2023-06-04 11:50:13 +05:45
Ben McCann
f2ff684b5f
chore: setup changesets (#8668)
Co-authored-by: dominikg <dominik.goepel@gmx.de>
2023-06-01 13:22:34 -07:00
Ben McCann
f74dddd1d5
docs: correct link in changelog 2023-05-31 20:48:05 -07:00
Nguyen Tran
0ce41875f0
docs: use pnpm and new commands to check the code base (#8667)
Co-authored-by: Ben McCann <322311+benmccann@users.noreply.github.com>
2023-05-30 12:19:51 -07:00
gtmnayan
fe06a39229
fix: store types and some other internal types that got lost in the conversion (#8658) 2023-05-30 12:17:38 -07:00
Ben McCann
b0619377b1
docs: update changelog with minimum rollup-plugin-svelte and svelte-loader versions (#8666) 2023-05-30 12:07:54 -07:00
Ben McCann
b41c4407c2
docs: update changelog to follow changesets format (#8642) 2023-05-30 12:06:28 -07:00
Ben McCann
0e19350e62
docs: update changelog with required version of vite-plugin-svelte (#8654) 2023-05-30 12:16:48 -04:00
Simon Holthausen
79f9d8f41f chore: remove type * for better backwards compatibility
doesnt need ts 5.0 then, at least for now
2023-05-27 23:53:55 +02:00
Ben McCann
ddfff4df8c
chore: convert to monorepo (#8644) 2023-05-26 16:17:13 -07:00
Simon Holthausen
1c581bc56f chore: changelog 2023-05-26 23:17:49 +02:00
Tan Li Hau
5c6d111065
Do not expose default slot let bindings to named slots (#6049)
* should not extend scope for across slots

* disallow named slots inheriting let: scope from default slots

* fix tests

* fix test

* fix

* add runtime tests

* rename test since it doesn't inherit anymore

* fix lint

* remove warnings

* add compile script

* document script

* improve warning

* fix test

* handle renames

* fix lint

* gather names from all parents instead of just the nearest

* remove unused import

* add reminder

---------

Co-authored-by: gtmnayan <gtmnayan@gmail.com>
2023-05-26 20:49:32 +02:00
Simon Holthausen
198dbcf714 chore: warn on passed format option 2023-05-26 19:37:21 +02:00
Nguyen Tran
a3f52f9348
fix: error when animation directive is on component (#8641)
Fixes #8639
2023-05-26 17:31:18 +02:00
Simon H
d9698551fb
feat: allow #each to iterate over iterables (#8626)
closes #7425
Uses a new ensure_array_like function to use Array.from in case the variable doesn't have a length property ('length' in 'some string' fails, therefore obj?.length). This ensures other places can stay unmodified. Using for (const x of y) constructs would require large changes across the each block code where it's uncertain that it would work for all cases since the array length is needed in various places.
2023-05-26 13:29:43 +02:00
Simon H
5dd707d4f5
feat: make transitions local by default (#8632)
To make them global, add the |global modifier
This is a breaking change
closes #6686
2023-05-26 13:26:03 +02:00
Aarni Koskela
a52106405d
fix(perf): use classList.toggle instead of add/remove (#8629)
`classList.toggle(..., flag)` has been a part of the DOM standard forever,
so better use it instead of possibly causing browser deopts by using dynamic attribute access.
The `!!` is required because an `undefined` flag means flipping the current state.

---------

Co-authored-by: Dominik G <dominik.goepel@gmx.de>
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: Rich Harris <hello@rich-harris.dev>
2023-05-26 13:24:35 +02:00
Simon H
734cc19846
feat: apply inert to outroing elements (#8628)
that way they are invisible to assistive technology and can't be interacted with, which makes sense since the element is already "dead" and only transitioning out at this point
closes #8445
2023-05-26 13:07:27 +02:00
Simon H
df361a2d6d
chore: warn about : in attributes and props (#8633)
closes #6823

---------

Co-authored-by: Ben McCann <322311+benmccann@users.noreply.github.com>
Co-authored-by: Rich Harris <git@rich-harris.dev>
2023-05-26 13:04:50 +02:00
Simon Holthausen
5a4b48bb44 fix: type error 2023-05-25 18:26:20 +02:00
Simon H
a40af4dd11
chore: unbundled esm (#8613)
- remove esm bundle step
- introduce generated version.js because we can no longer use replace because we don't bundle esm
- remove register hook, cjs compiler output and cjs runtime
- keep umd compiler version for prettier/eslint/browser but without sourcemaps
- move devdependencies to dependencies where necessary
- various cleanup

---------

Co-authored-by: Ben McCann <322311+benmccann@users.noreply.github.com>
Co-authored-by: gtmnayan <50981692+gtm-nayan@users.noreply.github.com>
2023-05-24 15:31:09 +02:00
gtmnayan
d658e7036e chore(test): fix path to compiler 2023-05-24 09:53:38 +05:45
Ben McCann
086f225ea9
chore: remove unused source-map-support depedency (#8622) 2023-05-23 11:13:47 -07:00
Ben McCann
5ed440ba50
chore: remove unused codemod-lazy-props.mjs (#8619) 2023-05-23 21:54:29 +05:45
gtmnayan
d6b02ed009
chore(test): use esm output for Svelte files (#8614) 2023-05-23 17:52:56 +02:00
gtmnayan
c2cec9597e
chore(test): move some error tests out of runtime (#8600) 2023-05-23 17:41:06 +02:00
Simon H
f223bc1c53
feat: change preprocessor ordering, allow attributes modification (#8618)
- change mapping order
- add support to modify attributes of script/style tags
- add source mapping tests to preprocessor tests
2023-05-23 17:39:54 +02:00
gtmnayan
7cec17c4cb fix flaky test 2023-05-22 20:06:22 +05:45
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
gtmnayan
7e9af10dce
chore(test): link compiler directly from source (#8612) 2023-05-22 14:17:43 +02:00
Simon Holthausen
f09a942130 silence wrong tsconfig errors 2023-05-22 11:40:39 +02:00
Ben McCann
0467219701 chore: switch to released version of eslint-config 2023-05-20 20:32:35 -07:00
Ben McCann
0c99aa8904
chore: update eslint config (#8608)
Co-authored-by: gtmnayan <gtmnayan@gmail.com>
2023-05-19 20:21:54 -07:00
gtmnayan
61218d3c9c
chore(test): tidy up html equal (#8599) 2023-05-19 08:37:30 -07:00
Simon Holthausen
d35d9045f6 rename ts to js 2023-05-19 16:02:41 +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
gtmnayan
202d119e9a
chore: convert puppeteer tests to playwright (#8577) 2023-05-15 09:04:12 +05:45
Yuichiro Yamashita
b6a400a549
chore: add prettier (#8543) 2023-05-08 23:32:52 +02:00
Simon Holthausen
573acf9073 Merge branch 'master' into version-4 2023-05-08 17:34:58 +02:00
Dominik G
56df761f95
breaking: set verison to 4, remove engines.pnpm and bump engines.node to >=16 (#8566) 2023-05-08 16:30:24 +02:00
Ben McCann
5e486c19ad
docs: fix links in changelog 2023-05-08 07:09:29 -07:00
Conduitry
64b8c8b33c -> v3.59.1 2023-05-08 09:58:26 -04:00
Simon H
b6288ecdb7
fix: Handle dynamic values in a11y-autocomplete-valid (#8567)
Fixes #8562
Fixes #8565
2023-05-08 15:41:02 +02:00
Ben McCann
6fbb36d1fe
fix: improve setup of default export and remove svelte/ssr (#8516) 2023-05-05 17:33:08 +02:00