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

7407 Commits

Author SHA1 Message Date
Puru Vijay
2d6dacdb4c chore: REPL 0.5.0-next.11 2023-07-05 12:41:47 +05:30
Ben McCann
f80d4914a6
site: add a robots.txt (#8913) 2023-07-05 08:52:06 +02:00
github-actions[bot]
a12643cbb8
Version Packages (#8911)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2023-07-04 22:43:20 +02:00
Simon H
136aebd8eb
fix: repair invalid raw html content during hydration (#8912)
When the HTML that is coming from raw html is invalid, the browser reshuffles things. Bail in that case to try to repair more often. Should help with https://github.com/withastro/astro/issues/7557
2023-07-04 22:41:51 +02:00
Simon H
35221c8811
fix: claim svg tags in raw mustache tags correctly (#8910)
fixes #8904
2023-07-04 21:46:53 +02:00
github-actions[bot]
800f6c076b
Version Packages (#8902)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2023-07-03 22:52:08 +02:00
Simon H
8de9dc6144
fix: handle falsy srcset values (#8901)
fixes #8899
2023-07-03 22:50:23 +02:00
Paul "Joey" Clark
58e95c6aca
docs: Remove old redundant text (#8893)
The quote marks were already removed in db2d07f236
2023-07-03 22:31:20 +02:00
Mayank Jain
d8a381e049
docs: Updated button width in documentation/reactivity (#8897)
* Updated button width in documentation/reactivity

Fixed button width in order to avoid the changing width of the button in the result when the text changes from 'time' to 'times'

* Made style changes as per the guidelines

* Replicated changes made in app-a to app-b

* Update App.svelte

* Update App.svelte

---------

Co-authored-by: Puru Vijay <47742487+PuruVJ@users.noreply.github.com>
2023-07-03 20:45:52 +05:30
Simon Holthausen
d4a1b5482f docs: update old blog post a bit
since it's high on google search ranks we should update it to not confuse people
2023-07-03 15:36:09 +02:00
github-actions[bot]
ae752c9693
Version Packages (#8877)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2023-07-03 15:17:44 +02:00
Simon H
0aa03df086
fix: reflect all custom element prop updates back to attribute (#8898)
fixes #8879
2023-07-03 15:16:13 +02:00
Simon H
4b3eb72346
fix: shrink custom element baseline a bit (#8858)
- use shorter class property names as they are not minified
- reuse some dom helper methods

#8826
2023-07-03 14:45:13 +02:00
Simon H
2f5e371046
chore: run tsc properly (#8884)
Runs type check as part of the CI. This needs a new path alias in the tsconfig so that TS resolves the svelte import in the ambient file directly to the correct d.ts file and doesn't load Svelte through the node_modules, at which point it would load the generated ambient type definitions and throw a duplicate definitions error.

Also removes a tgz that was accidentally added
2023-07-03 14:23:34 +02:00
Simon H
d2ff04f9fe
fix: use non-destructive hydration for all @html tags (#8880)
html tags that could be optimized to use innerHTML in mount ignored any hydration code, which leads to everything getting unmounted and mounted again. This takes the non-optimized path for hydration, too.

fixes https://github.com/sveltejs/kit/issues/10245
2023-07-03 14:22:00 +02:00
Simon H
b9328a5077
docs: more details on transition migration 2023-07-03 12:20:05 +02:00
Puru Vijay
4b98f7811f chore: update REPL to 0.5.0-next.10 2023-07-03 00:24:02 +05:30
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
2023-07-02 16:16:16 +02:00
Dani Sandoval
4d71ab72c1
docs: "What's new in Svelte" July newsletter (#8853) 2023-06-30 19:06:47 +02:00
Brad Dougherty
cfa5447ea5
docs: fix typo in v4 migration guide (#8890) 2023-06-30 19:00:39 +02:00
gtmnayan
a590bc12a7
site: fix docs "edit this page" link (#8888) 2023-06-30 08:26:23 -07:00
Simon H
1a3e50b6b7
fix: check srcset when hydrating to prevent needless requests (#8868)
---------

Co-authored-by: Ben McCann <322311+benmccann@users.noreply.github.com>
2023-06-30 10:57:40 +02:00
Puru Vijay
d3d1fb563f
blog: post about svelte.dev overhaul (#8766)
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: gtmnayan <50981692+gtm-nayan@users.noreply.github.com>
2023-06-29 10:29:47 -07:00
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
2023-06-29 15:49:38 +02:00
Puru Vijay
678faf4f36 chore(site): update deps 2023-06-29 17:04:57 +05:30
L
270cfce065
chore: adding default for disclose version (#8874) 2023-06-29 11:42:00 +02:00
Simon Holthausen
1de2144dae chore: tests for #8872 2023-06-29 09:36:30 +02:00
github-actions[bot]
90860550ae
Version Packages (#8855)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2023-06-29 09:35:31 +02:00
Simon H
b0a3fa1766
fix: ensure createEventDispatcher and ActionReturn work with generic function types (#8872)
fixes #8860

This contains a small but unfortunately unavoidable breaking change: If you used `never` to type that the second parameter of `createEventDispatcher` shouldn't be set or that the action accepts no parameters (which the docs recommended for a short time), then you need to change that to `null` and `undefined` respectively
2023-06-28 23:56:40 +02:00
Puru Vijay
7934a7f4d2 chore: update REPL to 0.5.0-next.7 2023-06-28 21:43:10 +05:30
Simon H
1cfed0bf29
fix: relax a11y "no redundant role" rule for li, ul, ol (#8867)
fixes #8854
2023-06-28 12:29:44 +02:00
hackape
876f894c64
fix: apply transition_in/out to svelte:element with local transition (#8865)
fixes #8233
2023-06-28 12:29:03 +02:00
Simon Holthausen
1c7ed55385 docs: add a11y-no-static-element-interactions
closes #8862
2023-06-28 11:23:01 +02:00
Puru Vijay
00c806df97 chore: Update REPL to 0.5.0-next.6 2023-06-28 12:44:50 +05:30
Simon H
2b9b99bd35
fix: remove tsconfig.json from published package (#8859)
fixes #8839
2023-06-27 17:17:03 +02:00
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
Geoff Rich
2a93ca9172
site: make REPL user menu keyboard accessible (#8831) 2023-06-27 08:24:45 +02:00
Nguyen Tran
3576c7443e
fix: Make sure 'func' doesn't clash with destructured contexts (#8840)
Fixes: #8753
2023-06-27 08:22:08 +02:00
Valentin Grégoire
c0d92628dd
docs: Make white text on white background visible. (#8852) 2023-06-26 17:40:28 +02:00
TheBlckbird
e887c21e51
docs: change Typescript to JSDoc in Readme.md (#8851)
---------

Co-authored-by: gtmnayan <50981692+gtm-nayan@users.noreply.github.com>
2023-06-26 15:51: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
Ben McCann
68e6336637
chore: upgrade dependencies (#8827) 2023-06-26 09:42:06 +02:00
Eric Liu
abe2ee73e1
docs: fix link to changelog (#8845) 2023-06-25 19:58:47 -07: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
Ben McCann
7bab2d4033
docs: fix link in changelog 2023-06-24 15:59:38 -07: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