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

44 Commits

Author SHA1 Message Date
Not-Jayden
e3422e182b
docs: Don't recommend TypeScript type assertions for reactive declarations (#8824)
strictly speaking that's not the same and could hide some type errors
2023-06-27 08:27:59 +02:00
Valentin Grégoire
c0d92628dd
docs: Make white text on white background visible. (#8852) 2023-06-26 17:40:28 +02:00
Alimurtuza
bbcb5f58ae
docs: handle warnings in examples page (#8836)
ignore some, fix others

---------

Co-authored-by: Simon H <5968653+dummdidumm@users.noreply.github.com>
2023-06-26 10:44:29 +02:00
Gwang Jin Kim
d3297e2a25
docs: Remove duplicate note (#8843) 2023-06-25 16:06:46 +02:00
Theodore Brown
223db7f19d
docs: fix TypeScript event name typos (#8844) 2023-06-25 16:06:06 +02:00
Khurram Jalil
ad2168016b
Fixed #8828 (#8832) 2023-06-24 13:36:24 +05:30
iamkneel
7dea31327e
docs: format "MutationObserver" as code (#8830) 2023-06-24 07:59:16 +05:45
Simon H
037ac2f55a
docs: update transitions tutorial (#8822)
fixes #8820
2023-06-23 17:20:40 +02:00
Alimurtuza
79e7ccc415
docs: fix white text on white BG in examples (#8821)
fixes ##8816
2023-06-23 16:36:42 +02:00
Cesar Napoleon Mejia Leiva
a83e438b5e
docs: fix style directive with important modifier example (#8802) 2023-06-23 14:49:36 +02:00
Simon Holthausen
94cfdbcee1 docs: fix snippet
closes #8817
2023-06-23 14:43:43 +02:00
Martin Hobert
5ddf4ca779
docs: fix attribute example in basic markup (#8813)
---------

Co-authored-by: Simon H <5968653+dummdidumm@users.noreply.github.com>
2023-06-23 12:23:18 +02:00
gtmnayan
ea18bd7e98
docs: use @latest on the migrate command (#8814) 2023-06-23 12:22:32 +02:00
Simon H
797b711e3a
docs: tweaks (#8798)
- link to createEventDispatcher typings
- svelte action type error fix
- migration guide tweak
- add back blog post that has gone missing
2023-06-22 19:16:42 +02:00
Ben McCann
20c9bd1463 update stats for final release 2023-06-22 07:43:42 -07:00
Ben McCann
936ce2bce3 svelte 4 blog post 2023-06-22 07:05:43 -07:00
Simon Holthausen
23fc113d31 docs: note type enhancements breaking change 2023-06-22 14:46:34 +02:00
Ben McCann
b582baa570
docs: list minimum versions for r-p-s and svelte-loader (#8788) 2023-06-22 09:57:15 +02:00
Puru Vijay
3c8a07136a
fix(site): renderer new link format (#8787)
* adapt

* Uncomment

* Push

* Bump site-kit
2023-06-22 08:42:09 +05:30
Puru Vijay
22cc4756e0
feat(site): site-kit renderer (#8757)
* Push

* Weirdass fix

* Unified renderer

* Move a bit

* Accomodate to new renderer

* update site-kit

* bump site-kit

* Fix script

* Bump site-kit

---------

Co-authored-by: Ben McCann <322311+benmccann@users.noreply.github.com>
2023-06-22 06:39:20 +05:30
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
Ben McCann
be5742aefe docs: update link 2023-06-21 15:00:04 -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
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
gtmnayan
f8139e5a6e
chore(site): fix build (#8762)
* fix: 404 instead of 500
* omit legacy entrypoints
* fix prefetch
2023-06-20 12:48:58 +05:45
Puru Vijay
67b4e4ff1c
docs: normalize svelte compiler headings (#8755)
The `svelte.` prefix was a remnant of CJS times
2023-06-19 14:13:34 +02:00
Simon H
75917ee1a5
docs: migration page (#8739) 2023-06-19 11:55:14 +02:00
Simon H
4e569d1895
docs: Svelte 3/4 differences (#8740)
note some inline, drive-by-fix in custom element docs
closes #8703
2023-06-16 15:08:05 +02:00
Puru Vijay
62bef809b2 Merge remote-tracking branch 'origin/version-4' into sites 2023-06-15 19:29:18 +05:30
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
Puru Vijay
aa5bb4a3db
feat: Better docs nav (#8605)
* DocsNav

* Push

* Nav title on each page

* Install jridgewell sourcemap codec. Why it breaking suddenly

* Use theme store

* Use $nav_title

* use $page.data.nav_title

* Disable global prerendering

* Fix Suppprters section

* use new method

* Initially hidden nav functionality

* Minor fixes

* Simplify into one single nav

* Accomodate to the bottom nav

* Minor fixes

* nit

* Add selected to other pages as well

* New way of passing to navbar

* Code cleanup

* Directly pass list instead of components

* 14 days

* Fix comment

* Discord icon

* Bump site-kit finally
2023-06-12 21:59:34 +05:30
Puru Vijay
ad849cc795
chore(site-2): What's new in Svelte June 2023 (#8705) 2023-06-08 02:48:07 +05:30
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
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
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
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
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
Ben McCann
3067e7a1aa
docs: update SvelteKit alternatives section (#8596) 2023-05-18 08:33:15 -07:00
Puru Vijay
f3396cfd4c chore(site-2): Run prettier 2023-05-14 11:20:43 +05:30
Puru Vijay
21a0141b8c
feat(site-2, v4): pnpm workspace (#8586)
* Push

* Push
2023-05-14 11:13:44 +05:30
Puru Vijay
f363af7cca
site -> documentation (#8585) 2023-05-13 08:06:21 -07:00