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

59 Commits

Author SHA1 Message Date
Puru Vijay
4b98f7811f chore: update REPL to 0.5.0-next.10 2023-07-03 00:24:02 +05:30
Puru Vijay
678faf4f36 chore(site): update deps 2023-06-29 17:04:57 +05:30
Puru Vijay
7934a7f4d2 chore: update REPL to 0.5.0-next.7 2023-06-28 21:43:10 +05:30
Puru Vijay
00c806df97 chore: Update REPL to 0.5.0-next.6 2023-06-28 12:44:50 +05:30
Geoff Rich
2a93ca9172
site: make REPL user menu keyboard accessible (#8831) 2023-06-27 08:24:45 +02:00
Ben McCann
68e6336637
chore: upgrade dependencies (#8827) 2023-06-26 09:42:06 +02:00
Puru Vijay
dbc714f6c0
fix(site): Style fixes (#8794)
* Style fixes

* Bump site-kit
2023-06-22 17:59:21 +05:30
Puru Vijay
3d21b00fa1
fix: search scrolling (#8792)
* Push basic stuff

* Push

* Bump site-kit
2023-06-22 17:44:21 +05:30
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
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
b8918faf48 chore: Bump REPL to 0.5.0-next.5 2023-06-21 20:50:01 +05:30
Puru Vijay
fe60894066
fix(sites): fix REPL styles (#8770)
* Push

* Push fixes

* Delete vite.config.js.timestamp-1687278902174-a59162675b2f6.mjs

* Remove log

* bump site-ki
2023-06-21 20:44:26 +05:30
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
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
Puru Vijay
aec4137d72
chore(sites): update deps (#8752)
* Push

* Fix Ts 5.1 type generation error
2023-06-18 00:30:34 +05:30
Rich Harris
e964254f6d
simplify nav (#8736)
* simplify nav

* updates

* fix link

* Dont need this anymore

* bump

---------

Co-authored-by: Rich Harris <git@rich-harris.dev>
Co-authored-by: Puru Vijay <devpuruvj@gmail.com>
2023-06-16 16:57:06 -04:00
Puru Vijay
3878c39126 chore: lockfile 6.1 2023-06-17 00:43:05 +05:30
Ben McCann
bdf10f125c merge 2023-06-16 08:43:39 -07:00
Rich Harris
437ca72869
Bump site-kit (#8742)
* bump site-kit

* bump again

---------

Co-authored-by: Rich Harris <git@rich-harris.dev>
2023-06-16 00:30:56 -04:00
Ben McCann
e8e9c6cc19
chore: update locate-character and dts-buddy (#8737) 2023-06-15 20:48:38 -07:00
Puru Vijay
9d33d14ed4
fix(site-2): Home page styles(pt 2) (#8720)
* 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

* Homepage styles

* More tweak, extra CTA

* Bigger lowercase tagline

* Preload overpass for transitions demo

* Tweak for ipad air

* Remove letter spacing

* simplify home page styles (#8738)

* simplify

* fix

* slightly better use of space

* tiny bit more room

* read the docs

* crop image

* very minor tweak

* another breakpoint

* tweak

* actually it works down to 1400px

---------

Co-authored-by: Rich Harris <git@rich-harris.dev>

---------

Co-authored-by: Rich Harris <richard.a.harris@gmail.com>
Co-authored-by: Rich Harris <git@rich-harris.dev>
2023-06-15 16:26:21 -04:00
Puru Vijay
62bef809b2 Merge remote-tracking branch 'origin/version-4' into sites 2023-06-15 19:29:18 +05:30
Rich Harris
5e4a55c98b
bump site-kit (#8731)
Co-authored-by: Rich Harris <git@rich-harris.dev>
2023-06-14 15:25:19 -04: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
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
ad9a672171 Merge version-4 2023-06-10 16:02:51 +05:30
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
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
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
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
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
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
Ben McCann
086f225ea9
chore: remove unused source-map-support depedency (#8622) 2023-05-23 11:13:47 -07:00
Puru Vijay
098a5539f3 Merge remote-tracking branch 'origin/version-4' into sites 2023-05-23 17:06:44 +05:30
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
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
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