0
0
mirror of https://github.com/sveltejs/svelte.git synced 2024-11-29 08:32:05 +01:00
Commit Graph

7408 Commits

Author SHA1 Message Date
Ben McCann
276d2f86ba merge version-4 branch 2023-06-04 08:15:01 -07: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
Rich Harris
27538fc598
tweak docs content (#8675)
* update intro

* update tutorial links

* unitalicise code spans

* Update documentation/docs/01-getting-started/01-introduction.md

Co-authored-by: Ben McCann <322311+benmccann@users.noreply.github.com>

* Update documentation/docs/01-getting-started/01-introduction.md

Co-authored-by: Ben McCann <322311+benmccann@users.noreply.github.com>

* Update documentation/docs/01-getting-started/01-introduction.md

Co-authored-by: Ben McCann <322311+benmccann@users.noreply.github.com>

* Update documentation/docs/01-getting-started/01-introduction.md

Co-authored-by: Ben McCann <322311+benmccann@users.noreply.github.com>

---------

Co-authored-by: Rich Harris <git@rich-harris.dev>
Co-authored-by: Ben McCann <322311+benmccann@users.noreply.github.com>
2023-06-01 15:44:16 -04:00
Rich Harris
c33377f17d
Merge branch 'version-4' into sites 2023-06-01 11:55:28 -04:00
Rich Harris
042a6785be
tidy up sites branch (#8671)
* remove VITE_API_BASE stuff

* use site-kit <Section> component

* remove comments

---------

Co-authored-by: Rich Harris <git@rich-harris.dev>
2023-06-01 11:34:35 -04:00
Rich Harris
83d56713ef
move FAQ to /docs/faq (#8672)
* move FAQ to /docs/faq

* remove some more junk

* simplify

* escape

* move redirect to server, prerender

---------

Co-authored-by: Rich Harris <git@rich-harris.dev>
2023-06-01 11:34:17 -04:00
Ben McCann
f74dddd1d5
docs: correct link in changelog 2023-05-31 20:48:05 -07:00
Puru Vijay
2efd78cba4 Merge remote-tracking branch 'origin/version-4' into sites 2023-05-31 01:12:01 +05:30
Puru Vijay
38a70bcce1
fix(site-2): REPL component and minor fixes (#8616)
* Push

* Update deps

* Allow autocomplete on embed pages

* nit

* Remove unnecessary import

* Remove debug

* Update deps stiff

* Cleanup

* Remove prerender auto from repl page

* Use REPL next.4
2023-05-30 15:26:56 -04: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
Puru Vijay
eb18769e59 Merge remote-tracking branch 'origin/version-4' into sites 2023-05-30 03:42:58 +05:30
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
Puru Vijay
d8139430ff Merge remote-tracking branch 'origin/version-4' into sites 2023-05-28 01:24:02 +05:30
Puru Vijay
bd51e6f3ea Merge remote-tracking branch 'origin/version-4' into sites 2023-05-28 01:19:27 +05:30
Puru Vijay
4cde4eaada
docs(site-2): Action, TypeScript (#8588) 2023-05-26 21:15:44 -07: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
Puru Vijay
9f0fe3070f chore: Remove svelte v3 files 2023-05-25 18:54:33 +05:30
Puru Vijay
cf0d815b73 fix: lint errors 2023-05-25 18:37:43 +05:30
Puru Vijay
7b0d6388de chore: rerun pnpm install 2023-05-25 18:21:25 +05:30
Puru Vijay
993b40201c
feat(site-2): New Markdown renderer, FAQ, Blog, Tutorial, Docs, (#8603)
* New FAQ, new renderer

* Push blog stuff

* Fix blog posts

* Add tutorial to be rendered

* Update documentation/content/blog/2023-03-09-zero-config-type-safety.md

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

* Update documentation/content/blog/2023-03-09-zero-config-type-safety.md

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

* Revamp a lot of renderer, make it (soft) compatible with sveltekit

* Remove markdown types

* Clean up faq +page

* Document stuff

* Make the options more explicity

* chore(site-2): Restructure docs pt 2 (#8604)

* Push

* Update readme

* Push

* inor accessibility fix

* minr stuff

* Add prepare

* Run prettier

* Remove test script

* pnpm update

* Update sites/svelte.dev/src/routes/examples/[slug]/+page.svelte

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

* Update sites/svelte.dev/package.json

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

---------

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

---------

Co-authored-by: Simon H <5968653+dummdidumm@users.noreply.github.com>
2023-05-25 18:19:38 +05:30
Puru Vijay
0050f06886 chore: Remove from gitignore 2023-05-25 16:44:11 +05:30
Puru Vijay
2312133ad5 Gitignore compiler.js files 2023-05-25 16:41:49 +05:30
Puru Vijay
46f71b3ba3 fix: preprocess snippet 2023-05-25 16:37:34 +05:30
Puru Vijay
ad949c5490 Merge remote-tracking branch 'origin/version-4' into sites 2023-05-25 16:30:20 +05:30
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
Puru Vijay
b47e21c16f chore: Commit internal_exports 2023-05-23 17:07:11 +05:30
Puru Vijay
098a5539f3 Merge remote-tracking branch 'origin/version-4' into sites 2023-05-23 17:06:44 +05:30
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