Ben McCann
646c0c432b
docs: update FAQ regarding Svelte 5 release date ( #9882 )
11 months ago
Rob B
3a9b1436e8
docs: fix typos ( #9849 )
...
* Update 02-runes.md
Typo fix `whech` -> `which`
* Update 02-runes.md
---------
Co-authored-by: Simon H <5968653+dummdidumm@users.noreply.github.com>
11 months ago
Simon H
df5105ef2e
breaking: change `$inspect` API ( #9838 )
...
* breaking: change `$inspect` API
`$inspect` now takes 1-n arguments, and inspections modification happens through `.with(..)`
closes #9737
* lint
11 months ago
Rich Harris
fc8349817f
docs: replace event handlers with event props on preview site ( #9793 )
...
also add event and snippets section to old vs new
---------
Co-authored-by: Rich Harris <rich.harris@vercel.com>
Co-authored-by: Simon H <5968653+dummdidumm@users.noreply.github.com>
11 months ago
dependabot[bot]
9babce9105
chore(deps-dev): bump vite from 4.5.0 to 4.5.1 ( #9800 )
...
Bumps [vite](https://github.com/vitejs/vite/tree/HEAD/packages/vite ) from 4.5.0 to 4.5.1.
- [Release notes](https://github.com/vitejs/vite/releases )
- [Changelog](https://github.com/vitejs/vite/blob/v4.5.1/packages/vite/CHANGELOG.md )
- [Commits](https://github.com/vitejs/vite/commits/v4.5.1/packages/vite )
---
updated-dependencies:
- dependency-name: vite
dependency-type: direct:development
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
11 months ago
Dominic Gannaway
c7e626ebbb
feat: add unstate utility function ( #9776 )
...
* feat: add unstate utility function
* Update packages/svelte/src/internal/client/proxy/proxy.js
Co-authored-by: Simon H <5968653+dummdidumm@users.noreply.github.com>
* update docs
* add class support
* oops
* lint
* fix docs
* remove symbol and class support
---------
Co-authored-by: Simon H <5968653+dummdidumm@users.noreply.github.com>
Co-authored-by: Rich Harris <richard.a.harris@gmail.com>
12 months ago
Rich Harris
75fc09a79e
Proxied state ( #9739 )
...
* magic objects
* read length eagerly — triggers reconciliation
* nested magic
* tests
* more tests
* fix array memory leak
* skipped, partially passing array test
* Fix each
revert bad changes
* more 1337
* eliminate closures
* maybe this is unnecessary?
* only create sources for own properties
* more
* rename stuff
* shuffle things around
* emit $.proxy
* remove proxy helper from public API
* only create sources for writable properties
* update test
* get tests passing
* fix
* remove state-not-mutated warning, which is no longer valid
* track reassignments separately from mutations
* update test - effects no longer fire on mutations unnecessarily
* move util into utils file
* move each logic into its own module; breathe sigh of relief
* tweaks
* more tweaks
* improve runtime
* fix mistake
* ensure we proxy when assigning to state
* fix test
* handle frozen
* create sources when reading proxy properties inside deriveds
* only mutate in legacy mode
* add immutable to transform state
* remove unused second argument to derived
* remove unused second argument to source, and runtime immutable option to createRoot (not sure what that was doing there?)
* oops, backwards
* dedicated binding.kind for legacy reactive imports
* avoid using prop_source in more cases. bit hacky, could be tidier, but it works
* distinguish between source and mutable_source
* remove immutable option from mount
* remove unused apparatus around immutable option
* deprecate immutable
* fix
* tweak
* better default value handling
* remove unnecessary exports
* whitespace is free
* remove obsolete symbol from proxy
* cleanup ts
* improve runtime perf by removing version reads in has()
* add missing proxy call
* tune perf of has() more
* ensure we only create sources in effect_active()
* fix proxy of computed fields
* simplify and fix issue with indexed each blocks
* fix compiler errors around exported state
* only create source for state that is reassigned
* temporary fix, we should come up with something better than this
* readonly props
* fix test
* add test for bind:
* make readonly dev-only
* docs
* forbid setPrototypeOf
* lol whoops
---------
Co-authored-by: Rich Harris <rich.harris@vercel.com>
Co-authored-by: Dominic Gannaway <dg@domgan.com>
12 months ago
Simon H
402a322317
chore: more validation errors ( #9723 )
...
* invalid directive on component
* duplicate animation
* invalid animation
* no const assignment
* expected token
* invalid-attribute-name
* fixes
* invalid event modifier
* component name
* slot validation
* fix test
* const validation + fix double declaration bug
* omg this validation is skipped in svelte 4, remove it entirely then
* gah
* unskip
* contenteditable
* invalid css selector
* css global selector + css parser fixes
* export default
* dynamic element
* each block
* html tag
* logic block
* reactive declaration
* duplicate script
* namespace
* module context
* slot
* svelte fragment
* textarea
* title
* transition
* window bindings
* changeset
* svelte head, let directive, tweaks
12 months ago
Rich Harris
bde42d5676
`$inspect` rune ( #9705 )
...
* feat: add $log rune
* fix issues
* fix issues
* tune
* avoid static state reference validation
* work around unfortunate browser behavior
* call it ExpectedError
* cleanup
* Fix docs
* tweaks
* tweaks
* lint
* repl, dev: true
* repl dev mode
* Update sites/svelte-5-preview/src/lib/Repl.svelte
* squelch static-state-reference warning
* simplify
* remove redundant code
* Update packages/svelte/src/main/ambient.d.ts
Co-authored-by: Rich Harris <richard.a.harris@gmail.com>
* Update packages/svelte/src/main/ambient.d.ts
Co-authored-by: Rich Harris <richard.a.harris@gmail.com>
* Update packages/svelte/src/main/ambient.d.ts
Co-authored-by: Rich Harris <richard.a.harris@gmail.com>
* only pause/trace on change
* Update packages/svelte/src/main/ambient.d.ts
* Update .changeset/chatty-hotels-grin.md
* Update sites/svelte-5-preview/src/routes/docs/content/01-api/02-runes.md
Co-authored-by: Rich Harris <richard.a.harris@gmail.com>
* $log.break and $log.trace no-op during SSR
* Update sites/svelte-5-preview/src/routes/docs/content/01-api/02-runes.md
Co-authored-by: Rich Harris <richard.a.harris@gmail.com>
* update test
* improve break experience
* fix ts
* remove unnecessary if (DEV) checks - log runes are removed in prod
* ensure hoisting doesnt mess up source maps
* check visited for cyclical values
* rename $log to $inspect, remove children
* custom inspect function
* implement custom inspect functions
* changeset
* update docs
* only fire on change
* lint
* make inspect take a single argument
* ugh eslint
* document console.trace trick
* demos
* fix site
---------
Co-authored-by: Dominic Gannaway <dg@domgan.com>
Co-authored-by: Simon Holthausen <simon.holthausen@vercel.com>
Co-authored-by: Rich Harris <rich.harris@vercel.com>
Co-authored-by: Dominic Gannaway <trueadm@users.noreply.github.com>
12 months ago
Hans
8c2cbb87dd
site: remove banner ( #9620 )
...
Co-authored-by: Ben McCann <322311+benmccann@users.noreply.github.com>
12 months ago
Simon H
75295ac79f
docs: enhance breaking change section ( #9674 )
...
* docs: enhance breaking change section
- mention createRoot first, explain difference to mount
- mentiond bind:this change
- sub headings
- adjust createRoot type that missed the events property
* Update packages/svelte/src/internal/client/render.js
Co-authored-by: Conduitry <git@chor.date>
* clarify
---------
Co-authored-by: Conduitry <git@chor.date>
Co-authored-by: Rich Harris <rich.harris@vercel.com>
12 months ago
Dominic Gannaway
81d3e47d1c
feat: add $effect.root rune ( #9638 )
...
* feat: effect-root-rune
feat: add $effect.root rune
update doc
update doc
fix validation
* cleanup logic
* Update sites/svelte-5-preview/src/routes/docs/content/01-api/02-runes.md
* address feedback
---------
Co-authored-by: Rich Harris <richard.a.harris@gmail.com>
12 months ago
Rich Harris
405e9da4ff
chore: bump esrap ( #9649 )
...
* bump esrap
* changeset
---------
Co-authored-by: Rich Harris <rich.harris@vercel.com>
12 months ago
Yuichiro Yamashita
7825570b07
fix typos ( #9622 )
12 months ago
Rich Harris
f40efb2027
`$effect.active` docs ( #9598 )
...
* docs: $effect.active
* link
---------
Co-authored-by: Rich Harris <rich.harris@vercel.com>
12 months ago
Rich Harris
fe9c0bc19d
chore: bump esrap ( #9590 )
12 months ago
Rich Harris
95c6b65f6f
docs: document class state fields ( #9563 )
...
Co-authored-by: Rich Harris <rich.harris@vercel.com>
12 months ago
Erick Vargas
687b8f58e3
docs: fix typo in Svelte 5 preview docs ( #9507 )
...
intead -> instead
1 year ago
Yuichiro Yamashita
f18adc8b43
docs: Update Breaking changes section ( #9444 )
...
* update docs
* Update sites/svelte-5-preview/src/routes/docs/content/03-appendix/02-breaking-changes.md
Co-authored-by: Ben McCann <322311+benmccann@users.noreply.github.com>
* Update sites/svelte-5-preview/src/routes/docs/content/03-appendix/02-breaking-changes.md
* Update sites/svelte-5-preview/src/routes/docs/content/03-appendix/02-breaking-changes.md
---------
Co-authored-by: Simon H <5968653+dummdidumm@users.noreply.github.com>
Co-authored-by: Ben McCann <322311+benmccann@users.noreply.github.com>
Co-authored-by: Rich Harris <hello@rich-harris.dev>
1 year ago
Rich Harris
6bba70a2a5
Docs ( #9449 )
...
* rename file
* add snippet docs
* add note on deprecation
* they're not attributes
* event docs
* prettier
* remove unnecessary div
* Apply suggestions from code review
Co-authored-by: Simon H <5968653+dummdidumm@users.noreply.github.com>
* make example less confusing
* note breaking props.children change
---------
Co-authored-by: Rich Harris <rich.harris@vercel.com>
Co-authored-by: Simon H <5968653+dummdidumm@users.noreply.github.com>
1 year ago
Yuichiro Yamashita
a6fdc47a0b
chore: show ast on playground ( #9440 )
...
The modern one
1 year ago
Rich Harris
9fc8726f13
skip svelte.dev deploy. this may or may not work ( #9424 )
...
* skip svelte.dev deploy. this may or may not work
* try this
---------
Co-authored-by: Rich Harris <rich.harris@vercel.com>
1 year ago
Rich Harris
a990e5716a
fix tsconfig.json ( #9427 )
...
* fix tsconfig.json
* prettier
* another apparently-necessary fix
---------
Co-authored-by: Rich Harris <rich.harris@vercel.com>
1 year ago
Dominic Gannaway
5768df1300
chore: remove selector api ( #9426 )
...
* chore: remove selector api
1 year ago
gtmnayan
2ae953934d
enable dev mode for preview repl ( #9393 )
...
* enable dev mode for preview repl
* format
* also add dev mode toggle for compiler options
* whoops
1 year ago
Rich Harris
304a29e1cc
fix runes mode indicator ( #9388 )
...
* fix runes mode indicator
* tidy up
---------
Co-authored-by: Rich Harris <rich.harris@vercel.com>
1 year ago
Rich Harris
7bcd33dbe1
Fix diagnostics ( #9385 )
...
* simplify a whole bunch of stuff
* delete more unused stuff
* fix diagnostics
* prettier
---------
Co-authored-by: Rich Harris <rich.harris@vercel.com>
1 year ago
Simon Holthausen
51394a4834
docs: note more breaking changes
1 year ago
Rich Harris
14d7424d75
fix symlink (hopefully) ( #9383 )
...
Co-authored-by: Rich Harris <rich.harris@vercel.com>
1 year ago
Simon H
c6c934afb2
chore: cleanup ( #9381 )
...
* lets see if this works
* fix versions
* sigh
* debugging ci is sooo fun
* oh wow
* fix stuff, changelog, add back readme
* appease prettier
* format stuff
1 year ago
Simon Holthausen
fe8a9ce31d
breaking: init Svelte 5
...
Co-authored-by: Rich Harris <rich.harris@vercel.com>
Co-authored-by: Simon Holthausen <simon.holthausen@vercel.com>
Co-authored-by: Dominic Gannaway <dg@domgan.com>
1 year ago
Simon H
e10be7a8e4
site: summit banner ( #9378 )
1 year ago
Ben McCann
d8e382712c
site: fix type errors in JS files ( #9354 )
1 year ago
Ben McCann
3d20b39289
site: fix 404 page by upgrading SvelteKit and avoiding null reference ( #9337 )
1 year ago
Sanjaiyan Parthipan
522d06a6ad
site: add `type="search"` to search input ( #9263 )
1 year ago
Ben McCann
28d6b34598
chore: fix failing format linting ( #9338 )
1 year ago
Rubin Raithel
9ffe07da2f
fix: svelte.dev site scripts filepath generation ( #9273 )
1 year ago
Irshad Ali
fa89421301
fix(repl): runes bottom banner overlapping fixed ( #9238 )
...
---------
Co-authored-by: Simon H <5968653+dummdidumm@users.noreply.github.com>
Co-authored-by: Simon Holthausen <simon.holthausen@vercel.com>
1 year ago
Simon H
68b40effb2
site: runes banner ( #9228 )
...
* site: runes banner
* well I should get the title right, shouldnt I?
* padding
* fix typo
* tweak
1 year ago
Rich Harris
c50ad34b06
introducing runes ( #9227 )
...
Co-authored-by: Rich Harris <rich.harris@vercel.com>
1 year ago
Puru Vijay
6aca6127ca
site: fix scroll restoration ( #9222 )
1 year ago
Puru Vijay
408ab77420
feat: OnThisPage blog ( #9216 )
...
* feat: OnThisPage blog
### Before submitting the PR, please make sure you do the following
- [ ] It's really useful if your PR references an issue where it is discussed ahead of time. In many cases, features are absent for a reason. For large changes, please create an RFC: https://github.com/sveltejs/rfcs
- [ ] Prefix your PR title with `feat:`, `fix:`, `chore:`, or `docs:`.
- [ ] This message body should clearly illustrate what problems it solves.
- [ ] Ideally, include a test that fails without this PR but passes with it.
### Tests and linting
- [ ] Run the tests with `pnpm test` and lint the project with `pnpm lint`
* Bump site-kit
* Add content
1 year ago
Puru Vijay
1a28d58b5d
feat: Copy code button ( #8995 )
...
* Push
* Bump site-kit
* Add headers to primary snippets
* Update deps
* Bump deos
* redploy
* Back to normal
* Push
* Bump deps
* site: fix rendering of promise in deprecation warning (#9191 )
* copy: true
* Bump site-kit
* Use cache
1 year ago
Rich Harris
8667f0fd7e
add teaser page ( #9210 )
...
* add teaser page
* add origin
* host card externally
* fix
* remove unused styles
* redesign
* black bg
* fix og image
* tweak font-sizes and alignment
---------
Co-authored-by: Rich Harris <rich.harris@vercel.com>
1 year ago
Ben McCann
a5cde37bc6
site: remove view transitions from blog ( #9201 )
1 year ago
Geoff Rich
2188035cea
site: add view transitions and transition blog title ( #9164 )
...
* Add view transitions and transition blog title
* Scope view transitions to /blog routes
1 year ago
Ben McCann
8e76ef156e
site: bump site-kit ( #9157 )
1 year ago
Ben McCann
d6f0981452
site: turn off edge serving for REPL ( #9136 )
...
Our core web vitals have really taken a hit since enabling edge serving. I ran various configs against pagespeed.web.dev and the traditional serverless functions do the best. That's at least partially because I believe serverless functions default to running in us-east-1 where our supabase instance is located. Therefore try going back to Serverless for a while to see the impact.
1 year ago
Paolo Ricciuti
2d0738244e
feat: add vim mode to repl ( #9135 )
...
* feat: add vim mode to repl
* fix adding url search params
---------
Co-authored-by: Puru Vijay <devpuruvj@gmail.com>
1 year ago
Ben McCann
2f5d573a9d
site: preload fonts ( #9132 )
...
Co-authored-by: Puru Vijay <devpuruvj@gmail.com>
1 year ago
Puru Vijay
f2ead82a40
chore(sites): Bump deps ( #9115 )
...
* Push
* Bump deps
* Bumps deps
1 year ago
Ben McCann
670200c78c
site: remove unused font files ( #9119 )
1 year ago
Ben McCann
5a8c1d2caf
site: fix removal of tutorial from search engines ( #9117 )
1 year ago
Puru Vijay
3173fdde89
chore: Sitekit footer ( #9072 )
...
* Push
* Bump site-kit
1 year ago
Puru Vijay
dd04d753d2
chore: Try Section ( #9059 )
...
* Commit
* bump deps
* remove redundant @types
1 year ago
Puru Vijay
f10ec8350d
fix(site): Optimise contributors donors images ( #8956 )
1 year ago
Puru Vijay
fc7c7770b9
Push ( #8967 )
1 year ago
Puru Vijay
9da320b151
chore(site): LightningCSS ( #8929 )
...
* use lighteningcss
* Update sites/svelte.dev/package.json
Co-authored-by: Ben McCann <322311+benmccann@users.noreply.github.com>
* Update vite
* use browserlist
---------
Co-authored-by: Ben McCann <322311+benmccann@users.noreply.github.com>
1 year ago
gtmnayan
33fd631b5f
chore: upgrade dependencies ( #8939 )
...
Co-authored-by: Ben McCann <322311+benmccann@users.noreply.github.com>
1 year ago
Romain l'Ourson
258ccf204b
docs: add category heading in docs pages ( #8918 )
...
Co-authored-by: Romain Crestey <romain.crestey@radiofrance.com>
Co-authored-by: Ben McCann <322311+benmccann@users.noreply.github.com>
1 year ago
Ben McCann
85d49404d3
site: specify width/height and fix prettier ( #8917 )
1 year ago
Puru Vijay
a11bc21549
chore: bump repl 0.5.0-next.12
1 year ago
gtmnayan
895709c6a2
docs: update svg transition example for v4 ( #8947 )
1 year ago
gtmnayan
ff76531bd6
fix: correct contributors image file name ( #8942 )
1 year ago
Ben McCann
f218699d71
site: block tutorial from search engines ( #8932 )
1 year ago
Puru Vijay
70426be84a
feat(site): Deploy to edge ( #8873 )
...
* Try edge
* Fix errors
* Improvements
* Minor fixes
* Simplify docs layout logic
* Persist session true
* try regions all
* Push new promise-based infra
* pnpm install
* Remote debugging
* Refine
* try to disable prerender for examples
* text
* Weird hack
* url
* log params
* Try param matcher
* try some restructuring
* Leftover
* remove console log
* More async, remove node-fetch
* Fix
* New fixes
* Undo changes
* back to site-kit next 18
1 year ago
Puru Vijay
76baa07879
feat: On this page mobile ( #8782 )
1 year ago
Puru Vijay
2d6dacdb4c
chore: REPL 0.5.0-next.11
1 year ago
Ben McCann
f80d4914a6
site: add a robots.txt ( #8913 )
1 year ago
Puru Vijay
4b98f7811f
chore: update REPL to 0.5.0-next.10
1 year ago
Em Zhan
12f8e9047a
chore: update svelte.dev README ( #8894 )
...
* Fix svelte.dev running locally instructions
After a clean clone, the `svelte` package needs to have its `/types`
directory generated for `pnpm dev` to work
* Update note about REPL
Firefox supports `import` in workers since version 114; confirmed that
the REPL works with `pnpm dev` in Firefox
1 year ago
gtmnayan
a590bc12a7
site: fix docs "edit this page" link ( #8888 )
1 year ago
gtmnayan
867806f983
chore: fix site deploys ( #8878 )
...
force Vercel to rebuild sharp everytime - it's prone to breaking at some point and we'd have to clear the cache
1 year ago
Puru Vijay
678faf4f36
chore(site): update deps
1 year ago
Puru Vijay
7934a7f4d2
chore: update REPL to 0.5.0-next.7
1 year ago
Puru Vijay
00c806df97
chore: Update REPL to 0.5.0-next.6
1 year ago
Geoff Rich
2a93ca9172
site: make REPL user menu keyboard accessible ( #8831 )
1 year ago
Ben McCann
68e6336637
chore: upgrade dependencies ( #8827 )
1 year ago
Simon H
037ac2f55a
docs: update transitions tutorial ( #8822 )
...
fixes #8820
1 year ago
Ignatius Bagus
a29feeca25
docs: fix tutorial edit link ( #8812 )
...
Fixes #8811
1 year ago
Puru Vijay
08fe2bc596
fix: Use version 4 for examples and tutorial ( #8806 )
...
* Use version 4 for examples and tutorial
* Remove redundant import
1 year ago
Puru Vijay
5439714509
REPL default to v4
1 year ago
Puru Vijay
d78dd89230
fix(site): REPL gist as string again
1 year ago
Puru Vijay
0b09e1f4d0
fix(repl): components -> files
1 year ago
Puru Vijay
980b325989
fix: Apps styles ( #8797 )
...
* Push
* Remove reference to $types
1 year ago
Puru Vijay
d8599c8267
chore(site): Reorganize imports
1 year ago
Puru Vijay
dbc714f6c0
fix(site): Style fixes ( #8794 )
...
* Style fixes
* Bump site-kit
1 year ago
Puru Vijay
3d21b00fa1
fix: search scrolling ( #8792 )
...
* Push basic stuff
* Push
* Bump site-kit
1 year ago
Puru Vijay
3c8a07136a
fix(site): renderer new link format ( #8787 )
...
* adapt
* Uncomment
* Push
* Bump site-kit
1 year ago
Puru Vijay
c808ebf2c4
fix: Flash of inAccurate coloR Theme (FART)
1 year ago
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>
1 year ago
Puru Vijay
cf32fa2497
fix(site): update tutorial links ( #8780 )
...
Co-authored-by: Ben McCann <322311+benmccann@users.noreply.github.com>
1 year ago
Ben McCann
68570424a2
site: alternate footer design ( #8774 )
1 year ago
Puru Vijay
b8918faf48
chore: Bump REPL to 0.5.0-next.5
1 year ago
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
1 year ago
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>
1 year ago
gtmnayan
f8139e5a6e
chore(site): fix build ( #8762 )
...
* fix: 404 instead of 500
* omit legacy entrypoints
* fix prefetch
1 year ago
Puru Vijay
67b4e4ff1c
docs: normalize svelte compiler headings ( #8755 )
...
The `svelte.` prefix was a remnant of CJS times
1 year ago
Ben McCann
be7a266e4a
docs: fix broken link ( #8746 )
1 year ago
gtmnayan
882e079a17
chore: exclude sites from build script ( #8754 )
1 year ago
gtmnayan
d4416c0bf8
chore: cleanup generated files ( #8749 )
1 year ago
Simon Holthausen
0eca1c758a
make sites private
1 year ago
Puru Vijay
aec4137d72
chore(sites): update deps ( #8752 )
...
* Push
* Fix Ts 5.1 type generation error
1 year ago
Puru Vijay
ae38d6425e
fix(site-2): Prerender nav data ( #8747 )
...
* simplify nav
* updates
* fix link
* Dont need this anymore
* Push
* minor re-arrangement
---------
Co-authored-by: Rich Harris <git@rich-harris.dev>
1 year ago
Rich Harris
312f94443a
fix terminal ( #8748 )
...
Co-authored-by: Rich Harris <git@rich-harris.dev>
1 year ago
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>
1 year ago
Ben McCann
9ce144355c
site: update terminal section, move survey text lower, lowercase headings ( #8745 )
1 year ago
Rich Harris
437ca72869
Bump site-kit ( #8742 )
...
* bump site-kit
* bump again
---------
Co-authored-by: Rich Harris <git@rich-harris.dev>
1 year ago
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>
1 year ago
Rich Harris
5e4a55c98b
bump site-kit ( #8731 )
...
Co-authored-by: Rich Harris <git@rich-harris.dev>
1 year ago
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>
1 year ago
Puru Vijay
744c596c89
fix(site-2): docs redirect page ( #8718 )
1 year ago
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
1 year ago
Puru Vijay
fbd1d0a3b9
Try?
1 year ago
Ben McCann
53b8158fc5
site: fix svelte-check errors ( #8696 )
1 year ago
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>
1 year ago
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>
1 year ago
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
1 year ago
Puru Vijay
4cde4eaada
docs(site-2): Action, TypeScript ( #8588 )
1 year ago
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>
1 year ago
Puru Vijay
273c7318d2
feat(site-2): docs edit button ( #8593 )
...
* Add edit button
* Update deps
2 years ago
Puru Vijay
543e93bcf4
fix(site-2): Use dynamic LOCAL_SVELTE_PATH
2 years ago
Puru Vijay
bb0d34bbd0
feat(site-2): Accessibility ( #8579 )
...
* Push
* Push
* Fix Contents order
* Skip link to left sidemenu
* Add text class
* use top-nav slot
* Improve imagetools
* Fix aria-label
* Bump site-kit
2 years ago
gtmnayan
d652ddbbd0
make the triangle bot less verbose
2 years ago
Puru Vijay
f3396cfd4c
chore(site-2): Run prettier
2 years ago
Puru Vijay
21a0141b8c
feat(site-2, v4): pnpm workspace ( #8586 )
...
* Push
* Push
2 years ago
Puru Vijay
f363af7cca
site -> documentation ( #8585 )
2 years ago
Puru Vijay
c967b81311
chore(site-2): Update deps
2 years ago
Puru Vijay
1e2ad9233e
fix: Post merge pnpm issues
2 years ago
Puru Vijay
fbd3ccdf80
Merge remote-tracking branch 'origin/version-4' into sites
2 years ago
Puru Vijay
5a671cbfc0
feat(site-2): New REPL ( #8545 )
2 years ago
Puru Vijay
52028a09ba
fix(site-2): Restyle home page ( #8454 )
...
Co-authored-by: Ben McCann <322311+benmccann@users.noreply.github.com>
2 years ago
Puru Vijay
fd9088bbf5
chore: Reinstall packages
2 years ago
Puru Vijay
9bee59cc4f
feat(site-2): TS in docs ( #8452 )
...
* Commit
* Push working type generation code
* Fix type gen script invocation
* Delete type-info.js
* Change build script
* Recreate package lock
* mkdir generated
* Add type references to some pages
* Add TS-able snippets to docs examples
* Fix some stuff
* Add types to individual functions
* Add to store page
* Refactor compile-types.js
* Move ts sourcefile stuff to compile-types
* Remove commented code
* Half attempt at export aliases
* Add
* Fix, add disclaimer for svelte/internal
* Disable /docs prerendering
* Remove internals page
* Remove redundant stuff
* Make search work with it
* Fix compile types logic
* Add file: comment,
* Add two-slash to docs pages
* Get type links working
* Remove console.log
* Add action module
* Fix actions logic
* Make compile-types logic more robust
* Bump site-kit
* Fix gitignore
* Use moduleResolution bundler
* Don't apply shiki-twoslash to auto generated code snippets from render
* Recreate package lock
* Make TSbpage undraft
* Fix svelte component types
* Remove console.log
* No more sveltekit
* Make regex smarter
* Update sites/svelte.dev/scripts/type-gen/compile-types.js
Co-authored-by: Simon H <5968653+dummdidumm@users.noreply.github.com>
* Rebuild package lock
* Remove commented out code
* Update deps
* Remove $$_attributes
---------
Co-authored-by: Simon H <5968653+dummdidumm@users.noreply.github.com>
2 years ago
Puru Vijay
b9ea60cff4
fix(site-2): Remove marked warnings ( #8574 )
2 years ago
Puru Vijay
3b4ab35b4e
feat(site-2): Use entries ( #8570 )
...
* Push
* Image stuff
* Use entries
* Update deps
* Update kit
2 years ago
Puru Vijay
23d63c760a
chore: Rebuild package.lock
2 years ago
Puru Vijay
ce686c95d1
chore: Upgrade to Vite 4.3 ( #8524 )
2 years ago
Puru Vijay
45f2890261
feat(site-2): Remove legacy site-kit stuff ( #8501 )
...
* Push
* Update site-kit
* Update svelte REPL
* Remove rollup URL
* meh
* Modify sidebar colors
* Bump deps
2 years ago
Puru Vijay
92a06e971c
chore: run npm install
2 years ago
Puru Vijay
92e62c9316
Update deps
2 years ago
Puru Vijay
71d173a4c0
feat: Add home slot
2 years ago
Puru Vijay
ec733593e6
fix: Old site redirects
2 years ago
Ben McCann
009ce45e63
site: tweak content layout ( #8483 )
2 years ago
Puru Vijay
99979959c0
Update readme ( #8453 )
2 years ago
Puru Vijay
1e982c1e6d
chore: Run prettier
2 years ago
Puru Vijay
04d4592299
chore: Update deps
2 years ago
Puru Vijay
050c1031b7
feat(site-2): Make blog logic consistent with other content ( #8447 )
2 years ago
Puru Vijay
b569018fef
feat(site-2): Split docs ( #8435 )
...
* Update links
* Move blog to site/content
* Update site/content/docs/02-component-format.md
* Fix docs links
* Add global prettierrc
* Auto format
* Fix git merge artifact
* Fix errors
* Update html to svelte(remaining ones)
* Add 2 blog posts
* Modify prettierrc
* Minor design fix
* Switch package lock to spaces, prettier ignore
* Regenerate package lock
* prettier format
* Push
* Remove console.logs
* Minor fixes
* Fix search
* Fix heading <code> style
* Fix search some more
* Code cleanup
* Update deps
* Move content around
* Allow drafts
* Redirect logic
* Don't render anything on docs if /docs
* Shorten the regex patterns
* Fix some more
* Hack the build into working
* Modernize docs links
* Add content to introduction
* Modify the content
* fix content links
* Reduce duplication in redirect regex
* Differences from Kit page
* Fix link
* Make OnThisPage visible on all docs
* Misc changes
* Move differences page to introduction
* Run prettier
* Prerender examples api routes
* Modify introdution page
* replace positions of readonly and get
* Minor blog style enhancement
---------
Co-authored-by: Rich Harris <richard.a.harris@gmail.com>
2 years ago
Puru Vijay
95abaec32a
chore(site-2): Update deps
2 years ago
Puru Vijay
db2d07f236
feat(site-2): Update links, move blog out of SK folder to content ( #8289 )
...
* Update links
* Move blog to site/content
* Update site/content/docs/02-component-format.md
* Fix docs links
* Add global prettierrc
* Auto format
* Fix git merge artifact
* Fix errors
* Update html to svelte(remaining ones)
* Add 2 blog posts
* Modify prettierrc
* Minor design fix
* Switch package lock to spaces, prettier ignore
* Regenerate package lock
* prettier format
* Update deps
* Hack the build into working
* add missing blog post
---------
Co-authored-by: Rich Harris <richard.a.harris@gmail.com>
Co-authored-by: Rich Harris <git@rich-harris.dev>
2 years ago
Puru Vijay
5976de8f82
feat(site-2): Fully remove api.svelte.dev ( #8432 )
...
* Localize the examples dependents
* Localize FAQ
* Try to fix examples API
* Remove examples api
* Prerender, use vercel adapter, disable PUT action for now
* Don't call get_examples_data on top
* Move repl PUT to its own routew
* Don't prerender REPL page
* Change console warn
* Prerender tutorial the smart way
* Use getContext in root
* work around some weird content encoding glitch
* Try the pre-generate route
* Apply the suggestions
* Fix embed examples
* Remove comment
* remove commented-out code
* Update sites/svelte.dev/src/routes/_components/Demo.svelte
Co-authored-by: Rich Harris <richard.a.harris@gmail.com>
* remove unused code
* add note to self, remove ts-ignore
* move adapter-vercel to devDependencies
* remove some unused deps
* huh we need flexsearch after all? weird
* we need sourcemap-codec as well — what the hell. are these deps missing from a dep?
---------
Co-authored-by: Rich Harris <git@rich-harris.dev>
Co-authored-by: Rich Harris <richard.a.harris@gmail.com>
2 years ago
Puru Vijay
9793b41817
feat(site-2): Local examples ( #8431 )
...
* feat(docs): Local tutorial
* Refactor some stuff
* Better error handling
* Fix search imports
* Prerender tutorial
* try prerendering hack
* fix super stupid display hidden bug
* Shorten the rendered URL
* Shorten URL code even more
* Prerender in svelte.config.js
* Refactor
* Fix ScreenToggle dark mode styles
* Initial POC
* Rvert to old hack
* Fix svelte-document.jpg
2 years ago
Puru Vijay
35e7a852fc
feat(site-2): Local tutorial ( #8427 )
...
* feat(docs): Local tutorial
* Refactor some stuff
* Better error handling
* Fix search imports
* Prerender tutorial
* try prerendering hack
* fix super stupid display hidden bug
* Shorten the rendered URL
* Shorten URL code even more
2 years ago
Puru Vijay
99611ad82e
Fix search
2 years ago
Simon Holthausen
bad1780d48
chore: bump site-kit, use new components
...
- use search components
- use shell component
2 years ago
Puru Vijay
339ea85d55
fix(site-2): styles ( #8288 )
2 years ago
Puru Vijay
df2bb23af4
feat: search and backlink compatability ( #8286 )
...
* Copy the right files
* Finish search
* FIx accessibility issues
* Add original site compatibility back in
* Remove console.log
* Reorganize imports
* Minor refactor
* Fix undefined heading issue
* Replace state on redirect
* Don't redirect to docs/introduction from navbar
* Cleanup search
* Cleanup some more(html entities)
* Remove console log
* Minor style tweaks
* Put search in middle
2 years ago
Puru Vijay
dd960327f2
Update deps
2 years ago
Puru Vijay
79db9b180d
feat: Proper dark mode ( #8274 )
...
* Push
* Update svelte REPL
* Light mode fixes
* Fox height issues
* Moar dark mode fixes
* More changes
* Fix zen mode height issue
2 years ago
Puru Vijay
69349319eb
feat: multi-page docs ( #8253 )
...
* Rename markdown to blog
* Multi-page docs
* Ignore missing ID for now
* heading
* Add code snippets(temporary)
* /docs redirects to introduction
* Remove ukraine petition
* OnThisPage
* Remove console.log
* Update deps
* Fix accessibility warning
* Update site-kit
2 years ago
Puru Vijay
7afee765fc
Add blurb back in
2 years ago
Puru Vijay
60806f74b9
[feat]: Move svelte.dev here ( #8237 )
...
* Push
* Remove `rootDir`
* Use tsconfig instead of jsconfig
* Push recent changes
* Better dark mode
* empty commit to try and trigger a deploy
* bump kit
* Fix site-kit dep
* Comment out blurb
* Update site-kit to 3.2.1
* Externalise sourcemap-codec
* Install sourcemap-codec as dep
---------
Co-authored-by: Rich Harris <hello@rich-harris.dev>
2 years ago
Puru Vijay
ae2a089221
feat: Initialize sites
2 years ago