From db2d07f2360191b68022ba3e64a86401edd15296 Mon Sep 17 00:00:00 2001 From: Puru Vijay <47742487+PuruVJ@users.noreply.github.com> Date: Sun, 2 Apr 2023 20:54:33 +0530 Subject: [PATCH] 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 Co-authored-by: Rich Harris --- .github/ISSUE_TEMPLATE.md | 9 +- .github/ISSUE_TEMPLATE/bug_report.yml | 4 +- .github/ISSUE_TEMPLATE/feature_request.yml | 2 +- .github/PULL_REQUEST_TEMPLATE.md | 4 +- .github/workflows/ci.yml | 2 +- .prettierignore | 11 + .prettierrc | 8 + CHANGELOG.md | 2844 ++++++----- CONTRIBUTING.md | 4 +- README.md | 7 - package-lock.json | 41 + package.json | 1 + ...-11-26-frameworks-without-the-framework.md | 28 +- ...17-08-07-the-easiest-way-to-get-started.md | 3 +- .../2017-09-06-the-zen-of-just-writing-css.md | 33 +- ...per-towards-the-ideal-web-app-framework.md | 0 .../content/blog/2018-04-18-version-2.md | 33 +- .../blog/2018-12-26-svelte-css-in-js.md | 1 - ...2018-12-27-virtual-dom-is-pure-overhead.md | 46 +- .../2019-01-31-svelte-on-the-changelog.md | 10 +- .../blog/2019-04-15-setting-up-your-editor.md | 12 +- .../2019-04-16-svelte-for-new-developers.md | 21 +- .../blog/2019-04-20-write-less-code.md | 26 +- ...19-04-22-svelte-3-rethinking-reactivity.md | 24 +- .../blog/2020-07-17-svelte-and-typescript.md | 17 +- ...-10-01-whats-new-in-svelte-october-2020.md | 44 +- ...11-01-whats-new-in-svelte-november-2020.md | 6 +- ...020-11-05-whats-the-deal-with-sveltekit.md | 19 +- ...12-01-whats-new-in-svelte-december-2020.md | 10 +- ...-01-01-whats-new-in-svelte-january-2021.md | 3 - ...02-01-whats-new-in-svelte-february-2021.md | 7 +- ...21-03-01-whats-new-in-svelte-march-2021.md | 23 +- .../content/blog/2021-03-23-sveltekit-beta.md | 2 - ...21-04-01-whats-new-in-svelte-april-2021.md | 7 +- ...2021-05-01-whats-new-in-svelte-may-2021.md | 12 +- ...021-06-01-whats-new-in-svelte-june-2021.md | 22 +- ...021-07-01-whats-new-in-svelte-july-2021.md | 13 +- ...1-08-01-whats-new-in-svelte-august-2021.md | 8 +- ...9-01-whats-new-in-svelte-september-2021.md | 5 +- ...-10-01-whats-new-in-svelte-october-2021.md | 13 +- ...11-01-whats-new-in-svelte-november-2021.md | 7 +- ...12-01-whats-new-in-svelte-december-2021.md | 11 +- ...-01-01-whats-new-in-svelte-january-2022.md | 12 +- ...-01-13-accelerating-sveltes-development.md | 8 +- ...02-01-whats-new-in-svelte-february-2022.md | 14 +- ...22-03-01-whats-new-in-svelte-march-2022.md | 14 +- ...22-04-01-whats-new-in-svelte-april-2022.md | 18 +- ...2022-05-01-whats-new-in-svelte-may-2022.md | 19 +- ...022-06-01-whats-new-in-svelte-june-2022.md | 16 +- ...022-07-01-whats-new-in-svelte-july-2022.md | 13 +- ...2-08-01-whats-new-in-svelte-august-2022.md | 14 +- ...9-01-whats-new-in-svelte-september-2022.md | 15 +- ...-10-01-whats-new-in-svelte-october-2022.md | 28 +- ...11-01-whats-new-in-svelte-november-2022.md | 14 +- ...12-01-whats-new-in-svelte-december-2022.md | 17 +- .../2022-12-14-announcing-sveltekit-1.0.md | 0 ...-01-01-whats-new-in-svelte-january-2023.md | 13 +- ...02-01-whats-new-in-svelte-february-2023.md | 0 ...23-03-01-whats-new-in-svelte-march-2023.md | 136 + .../2023-03-09-zero-config-type-safety.md | 164 + ...23-04-01-whats-new-in-svelte-april-2023.md | 109 + site/content/docs/01-getting-started.md | 3 +- site/content/docs/02-component-format.md | 43 +- site/content/docs/03-template-syntax.md | 243 +- site/content/docs/04-run-time.md | 294 +- site/content/docs/05-compile-time.md | 241 +- .../00-introduction/00-hello-world/meta.json | 2 +- .../01-dynamic-attributes/meta.json | 2 +- .../00-introduction/02-styling/meta.json | 2 +- .../03-nested-components/meta.json | 2 +- .../00-introduction/04-html-tags/meta.json | 2 +- .../examples/00-introduction/meta.json | 2 +- .../00-reactive-assignments/meta.json | 2 +- .../01-reactive-declarations/meta.json | 2 +- .../02-reactive-statements/meta.json | 2 +- site/content/examples/01-reactivity/meta.json | 2 +- .../02-props/00-declaring-props/meta.json | 2 +- .../02-props/01-default-values/meta.json | 2 +- .../02-props/02-spread-props/meta.json | 2 +- site/content/examples/02-props/meta.json | 2 +- .../examples/03-logic/00-if-blocks/meta.json | 2 +- .../03-logic/01-else-blocks/meta.json | 2 +- .../03-logic/02-else-if-blocks/meta.json | 2 +- .../03-logic/03-each-blocks/meta.json | 2 +- .../03-logic/04-keyed-each-blocks/meta.json | 2 +- .../03-logic/05-await-blocks/meta.json | 2 +- site/content/examples/03-logic/meta.json | 2 +- .../04-events/00-dom-events/meta.json | 2 +- .../04-events/01-inline-handlers/meta.json | 2 +- .../04-events/02-event-modifiers/meta.json | 2 +- .../04-events/03-component-events/meta.json | 2 +- .../04-events/04-event-forwarding/meta.json | 2 +- .../05-dom-event-forwarding/meta.json | 2 +- site/content/examples/04-events/meta.json | 2 +- .../05-bindings/00-text-inputs/meta.json | 2 +- .../05-bindings/01-numeric-inputs/meta.json | 2 +- .../05-bindings/02-checkbox-inputs/meta.json | 2 +- .../05-bindings/03-group-inputs/meta.json | 2 +- .../05-bindings/04-textarea-inputs/meta.json | 2 +- .../05-bindings/06-select-bindings/meta.json | 2 +- .../07-multiple-select-bindings/meta.json | 2 +- .../08-each-block-bindings/meta.json | 2 +- .../05-bindings/09-media-elements/meta.json | 2 +- .../05-bindings/10-dimensions/meta.json | 2 +- .../05-bindings/11-bind-this/meta.json | 2 +- .../12-component-bindings/meta.json | 2 +- site/content/examples/05-bindings/meta.json | 2 +- .../06-lifecycle/00-onmount/meta.json | 2 +- .../06-lifecycle/01-ondestroy/meta.json | 2 +- .../06-lifecycle/01-ondestroy/utils.js | 2 +- .../examples/06-lifecycle/02-update/meta.json | 2 +- .../examples/06-lifecycle/03-tick/meta.json | 2 +- site/content/examples/06-lifecycle/meta.json | 2 +- .../07-stores/00-writable-stores/meta.json | 2 +- .../07-stores/00-writable-stores/stores.js | 2 +- .../07-stores/01-auto-subscriptions/meta.json | 2 +- .../07-stores/01-auto-subscriptions/stores.js | 2 +- .../07-stores/02-readable-stores/meta.json | 2 +- .../07-stores/02-readable-stores/stores.js | 2 +- .../07-stores/03-derived-stores/meta.json | 2 +- .../07-stores/03-derived-stores/stores.js | 5 +- .../07-stores/04-custom-stores/meta.json | 2 +- .../07-stores/04-custom-stores/stores.js | 6 +- site/content/examples/07-stores/meta.json | 2 +- .../examples/08-motion/00-tweened/meta.json | 2 +- .../examples/08-motion/01-spring/meta.json | 2 +- site/content/examples/08-motion/meta.json | 2 +- .../09-transitions/00-transition/meta.json | 2 +- .../meta.json | 2 +- .../09-transitions/02-in-and-out/meta.json | 2 +- .../03-custom-css-transitions/meta.json | 2 +- .../04-custom-js-transitions/meta.json | 2 +- .../05-transition-events/meta.json | 2 +- .../06-deferred-transitions/images.js | 2 +- .../06-deferred-transitions/meta.json | 2 +- .../content/examples/09-transitions/meta.json | 2 +- .../10-animations/00-animate/meta.json | 2 +- site/content/examples/10-animations/meta.json | 2 +- .../examples/11-easing/00-easing/eases.js | 6 +- .../examples/11-easing/00-easing/meta.json | 2 +- site/content/examples/11-easing/meta.json | 2 +- .../examples/12-svg/01-clock/meta.json | 2 +- .../examples/12-svg/02-bar-chart/meta.json | 2 +- .../examples/12-svg/03-area-chart/data.js | 6 +- .../examples/12-svg/03-area-chart/meta.json | 2 +- .../examples/12-svg/04-scatterplot/data.js | 2 +- .../examples/12-svg/04-scatterplot/meta.json | 2 +- .../05-svg-transitions/custom-transitions.js | 10 +- .../12-svg/05-svg-transitions/meta.json | 2 +- .../12-svg/05-svg-transitions/shape.js | 2 +- site/content/examples/12-svg/meta.json | 2 +- .../13-actions/00-actions/click_outside.js | 6 +- .../examples/13-actions/00-actions/meta.json | 2 +- .../longpress.js | 12 +- .../01-adding-parameters-to-actions/meta.json | 2 +- .../13-actions/03-actions-pannable/meta.json | 2 +- .../03-actions-pannable/pannable.js | 26 +- site/content/examples/13-actions/meta.json | 2 +- .../examples/14-classes/00-classes/meta.json | 2 +- .../14-classes/01-class-shorthand/meta.json | 2 +- site/content/examples/14-classes/meta.json | 2 +- .../15-composition/00-slots/meta.json | 2 +- .../01-slot-fallbacks/meta.json | 2 +- .../15-composition/02-named-slots/meta.json | 2 +- .../15-composition/03-slot-props/meta.json | 2 +- .../04-conditional-slots/meta.json | 2 +- .../15-composition/05-modal/meta.json | 2 +- .../content/examples/15-composition/meta.json | 2 +- .../16-context/00-context-api/mapbox.js | 2 +- .../16-context/00-context-api/meta.json | 2 +- site/content/examples/16-context/meta.json | 2 +- .../00-svelte-self/meta.json | 2 +- .../01-svelte-component/meta.json | 2 +- .../02-svelte-element/meta.json | 2 +- .../03-svelte-window/meta.json | 2 +- .../04-svelte-window-bindings/meta.json | 2 +- .../06-svelte-body/meta.json | 2 +- .../07-svelte-head/meta.json | 2 +- .../examples/17-special-elements/meta.json | 2 +- .../01-module-exports/meta.json | 2 +- .../examples/18-module-context/meta.json | 2 +- .../examples/19-debugging/00-debug/meta.json | 2 +- site/content/examples/19-debugging/meta.json | 2 +- .../20-7guis/01-7guis-counter/meta.json | 2 +- .../20-7guis/02-7guis-temperature/meta.json | 2 +- .../20-7guis/03-7guis-flight-booker/meta.json | 2 +- .../20-7guis/04-7guis-timer/meta.json | 2 +- .../examples/20-7guis/05-7guis-crud/meta.json | 2 +- .../20-7guis/06-7guis-circles/meta.json | 2 +- site/content/examples/20-7guis/meta.json | 2 +- .../21-miscellaneous/01-hacker-news/meta.json | 2 +- .../02-immutable-data/flash.js | 2 +- .../02-immutable-data/meta.json | 2 +- .../examples/21-miscellaneous/meta.json | 2 +- .../faq/1100-is-svelte-v2-still-available.md | 2 +- .../faq/800-how-do-i-test-svelte-apps.md | 7 +- .../01-introduction/01-basics/text.md | 9 +- .../01-introduction/02-adding-data/text.md | 6 +- .../03-dynamic-attributes/text.md | 18 +- .../01-introduction/04-styling/text.md | 4 +- .../05-nested-components/text.md | 6 +- .../01-introduction/06-making-an-app/text.md | 4 +- .../tutorial/01-introduction/meta.json | 2 +- .../01-reactive-assignments/text.md | 4 +- .../02-reactive-declarations/text.md | 4 +- .../03-reactive-statements/text.md | 4 +- .../04-updating-arrays-and-objects/text.md | 4 +- site/content/tutorial/02-reactivity/meta.json | 2 +- .../03-props/01-declaring-props/text.md | 6 +- .../03-props/02-default-values/text.md | 10 +- .../tutorial/03-props/03-spread-props/text.md | 4 +- site/content/tutorial/03-props/meta.json | 2 +- .../tutorial/04-logic/01-if-blocks/text.md | 14 +- .../tutorial/04-logic/02-else-blocks/text.md | 12 +- .../04-logic/03-else-if-blocks/text.md | 4 +- .../tutorial/04-logic/04-each-blocks/text.md | 22 +- .../04-logic/05-keyed-each-blocks/text.md | 10 +- .../tutorial/04-logic/06-await-blocks/text.md | 6 +- site/content/tutorial/04-logic/meta.json | 2 +- .../tutorial/05-events/01-dom-events/text.md | 4 +- .../05-events/02-inline-handlers/text.md | 6 +- .../05-events/03-event-modifiers/text.md | 26 +- .../05-events/04-component-events/text.md | 2 +- .../05-events/05-event-forwarding/text.md | 12 +- .../05-events/06-dom-event-forwarding/text.md | 8 +- site/content/tutorial/05-events/meta.json | 2 +- .../06-bindings/01-text-inputs/text.md | 8 +- .../06-bindings/02-numeric-inputs/text.md | 8 +- .../06-bindings/03-checkbox-inputs/text.md | 6 +- .../06-bindings/04-group-inputs/text.md | 16 +- .../06-bindings/05-textarea-inputs/text.md | 9 +- .../06-bindings/06-select-bindings/text.md | 2 +- .../07-multiple-select-bindings/text.md | 2 +- .../08-contenteditable-bindings/text.md | 8 +- .../09-each-block-bindings/text.md | 12 +- .../06-bindings/10-media-elements/text.md | 33 +- .../06-bindings/11-dimensions/text.md | 4 +- .../tutorial/06-bindings/12-bind-this/text.md | 8 +- .../06-bindings/13-component-bindings/text.md | 6 +- .../06-bindings/14-component-this/text.md | 8 +- site/content/tutorial/06-bindings/meta.json | 2 +- .../tutorial/07-lifecycle/01-onmount/text.md | 6 +- .../07-lifecycle/02-ondestroy/app-a/utils.js | 2 +- .../07-lifecycle/02-ondestroy/app-b/utils.js | 2 +- .../07-lifecycle/02-ondestroy/text.md | 12 +- .../tutorial/07-lifecycle/03-update/text.md | 2 +- .../tutorial/07-lifecycle/04-tick/text.md | 4 +- site/content/tutorial/07-lifecycle/meta.json | 2 +- .../01-writable-stores/app-a/stores.js | 2 +- .../01-writable-stores/app-b/stores.js | 2 +- .../08-stores/01-writable-stores/text.md | 6 +- .../02-auto-subscriptions/app-a/stores.js | 2 +- .../02-auto-subscriptions/app-b/stores.js | 2 +- .../08-stores/02-auto-subscriptions/text.md | 11 +- .../08-stores/03-readable-stores/text.md | 2 +- .../04-derived-stores/app-a/stores.js | 5 +- .../04-derived-stores/app-b/stores.js | 5 +- .../08-stores/04-derived-stores/text.md | 9 +- .../05-custom-stores/app-a/stores.js | 2 +- .../05-custom-stores/app-b/stores.js | 6 +- .../08-stores/05-custom-stores/text.md | 5 +- .../06-store-bindings/app-a/stores.js | 5 +- .../06-store-bindings/app-b/stores.js | 5 +- .../08-stores/06-store-bindings/text.md | 12 +- site/content/tutorial/08-stores/meta.json | 2 +- .../tutorial/09-motion/01-tweened/text.md | 14 +- .../tutorial/09-motion/02-spring/text.md | 15 +- site/content/tutorial/09-motion/meta.json | 2 +- .../10-transitions/01-transition/text.md | 6 +- .../text.md | 10 +- .../10-transitions/03-in-and-out/text.md | 8 +- .../04-custom-css-transitions/text.md | 41 +- .../05-custom-js-transitions/text.md | 7 +- .../06-transition-events/text.md | 14 +- .../07-local-transitions/text.md | 4 +- .../08-deferred-transitions/text.md | 8 +- .../10-transitions/09-key-blocks/text.md | 2 +- .../content/tutorial/10-transitions/meta.json | 2 +- .../tutorial/11-animations/01-animate/text.md | 8 +- site/content/tutorial/11-animations/meta.json | 2 +- .../01-actions/app-b/click_outside.js | 6 +- .../tutorial/12-actions/01-actions/text.md | 16 +- .../app-a/longpress.js | 12 +- .../app-b/longpress.js | 12 +- .../02-adding-parameters-to-actions/text.md | 12 +- site/content/tutorial/12-actions/meta.json | 2 +- .../13-advanced-styling/01-classes/text.md | 14 +- .../02-class-shorthand/text.md | 7 +- .../04-style-directive/text.md | 6 +- .../tutorial/13-advanced-styling/meta.json | 2 +- .../tutorial/14-composition/01-slots/text.md | 10 +- .../14-composition/02-slot-fallbacks/text.md | 8 +- .../14-composition/03-named-slots/text.md | 14 +- .../14-composition/04-optional-slots/text.md | 6 +- .../14-composition/05-slot-props/text.md | 14 +- .../content/tutorial/14-composition/meta.json | 2 +- .../15-context/01-context-api/app-a/mapbox.js | 2 +- .../15-context/01-context-api/app-b/mapbox.js | 2 +- .../15-context/01-context-api/text.md | 4 +- site/content/tutorial/15-context/meta.json | 2 +- .../01-svelte-self/text.md | 14 +- .../02-svelte-component/text.md | 14 +- .../03-svelte-element/text.md | 6 +- .../04-svelte-window/text.md | 4 +- .../05-svelte-window-bindings/text.md | 20 +- .../06-svelte-document/text.md | 4 +- .../07-svelte-body/text.md | 5 +- .../08-svelte-head/text.md | 6 +- .../09-svelte-options/app-a/flash.js | 2 +- .../09-svelte-options/app-b/flash.js | 2 +- .../09-svelte-options/text.md | 20 +- .../10-svelte-fragment/text.md | 2 +- .../tutorial/16-special-elements/meta.json | 2 +- .../17-module-context/01-sharing-code/text.md | 2 +- .../02-module-exports/text.md | 14 +- .../tutorial/17-module-context/meta.json | 2 +- .../tutorial/18-special-tags/01-debug/text.md | 2 +- .../18-special-tags/02-html-tags/text.md | 2 +- .../tutorial/18-special-tags/meta.json | 2 +- .../19-next-steps/01-congratulations/text.md | 2 +- site/content/tutorial/19-next-steps/meta.json | 2 +- sites/svelte.dev/.gitignore | 2 +- sites/svelte.dev/.prettierrc | 6 - sites/svelte.dev/package-lock.json | 4463 +---------------- sites/svelte.dev/package.json | 20 +- sites/svelte.dev/src/lib/db/client.js | 3 +- sites/svelte.dev/src/lib/server/blog/index.js | 16 +- .../svelte.dev/src/lib/server/blog/marked.js | 10 +- sites/svelte.dev/src/lib/server/docs/index.js | 16 +- .../src/lib/server/examples/get-examples.js | 8 +- .../src/lib/server/markdown/index.js | 8 +- .../src/lib/server/tutorial/get-tutorial.js | 10 +- .../src/lib/server/tutorial/index.js | 4 +- .../routes/(authed)/repl/[id].json/+server.js | 8 +- .../src/routes/auth/callback/+server.js | 14 +- .../src/routes/blog/+page.server.js | 2 +- .../src/routes/blog/[slug]/+page.server.js | 2 +- .../routes/blog/[slug]/card.png/+server.js | 14 +- .../src/routes/blog/rss.xml/+server.js | 6 +- .../src/routes/content.json/+server.js | 2 +- .../src/routes/content.json/content.server.js | 16 +- .../src/routes/docs/+layout.server.js | 4 +- .../src/routes/docs/[slug]/+page.server.js | 2 +- .../routes/examples/[slug]/+page.server.js | 2 +- .../src/routes/search/+page.server.js | 2 +- .../routes/tutorial/[slug]/+page.server.js | 2 +- sites/svelte.dev/svelte.config.js | 8 +- sites/svelte.dev/vite.config.js | 28 +- src/runtime/internal/dev.ts | 6 +- 349 files changed, 3464 insertions(+), 7286 deletions(-) create mode 100644 .prettierignore create mode 100644 .prettierrc rename {sites/svelte.dev => site}/content/blog/2016-11-26-frameworks-without-the-framework.md (86%) rename {sites/svelte.dev => site}/content/blog/2017-08-07-the-easiest-way-to-get-started.md (98%) rename {sites/svelte.dev => site}/content/blog/2017-09-06-the-zen-of-just-writing-css.md (87%) rename {sites/svelte.dev => site}/content/blog/2017-12-31-sapper-towards-the-ideal-web-app-framework.md (100%) rename {sites/svelte.dev => site}/content/blog/2018-04-18-version-2.md (94%) rename {sites/svelte.dev => site}/content/blog/2018-12-26-svelte-css-in-js.md (99%) rename {sites/svelte.dev => site}/content/blog/2018-12-27-virtual-dom-is-pure-overhead.md (87%) rename {sites/svelte.dev => site}/content/blog/2019-01-31-svelte-on-the-changelog.md (86%) rename {sites/svelte.dev => site}/content/blog/2019-04-15-setting-up-your-editor.md (85%) rename {sites/svelte.dev => site}/content/blog/2019-04-16-svelte-for-new-developers.md (90%) rename {sites/svelte.dev => site}/content/blog/2019-04-20-write-less-code.md (91%) rename {sites/svelte.dev => site}/content/blog/2019-04-22-svelte-3-rethinking-reactivity.md (91%) rename {sites/svelte.dev => site}/content/blog/2020-07-17-svelte-and-typescript.md (95%) rename {sites/svelte.dev => site}/content/blog/2020-10-01-whats-new-in-svelte-october-2020.md (89%) rename {sites/svelte.dev => site}/content/blog/2020-11-01-whats-new-in-svelte-november-2020.md (97%) rename {sites/svelte.dev => site}/content/blog/2020-11-05-whats-the-deal-with-sveltekit.md (93%) rename {sites/svelte.dev => site}/content/blog/2020-12-01-whats-new-in-svelte-december-2020.md (98%) rename {sites/svelte.dev => site}/content/blog/2021-01-01-whats-new-in-svelte-january-2021.md (99%) rename {sites/svelte.dev => site}/content/blog/2021-02-01-whats-new-in-svelte-february-2021.md (99%) rename {sites/svelte.dev => site}/content/blog/2021-03-01-whats-new-in-svelte-march-2021.md (94%) rename {sites/svelte.dev => site}/content/blog/2021-03-23-sveltekit-beta.md (99%) rename {sites/svelte.dev => site}/content/blog/2021-04-01-whats-new-in-svelte-april-2021.md (99%) rename {sites/svelte.dev => site}/content/blog/2021-05-01-whats-new-in-svelte-may-2021.md (99%) rename {sites/svelte.dev => site}/content/blog/2021-06-01-whats-new-in-svelte-june-2021.md (95%) rename {sites/svelte.dev => site}/content/blog/2021-07-01-whats-new-in-svelte-july-2021.md (99%) rename {sites/svelte.dev => site}/content/blog/2021-08-01-whats-new-in-svelte-august-2021.md (99%) rename {sites/svelte.dev => site}/content/blog/2021-09-01-whats-new-in-svelte-september-2021.md (99%) rename {sites/svelte.dev => site}/content/blog/2021-10-01-whats-new-in-svelte-october-2021.md (99%) rename {sites/svelte.dev => site}/content/blog/2021-11-01-whats-new-in-svelte-november-2021.md (99%) rename {sites/svelte.dev => site}/content/blog/2021-12-01-whats-new-in-svelte-december-2021.md (98%) rename {sites/svelte.dev => site}/content/blog/2022-01-01-whats-new-in-svelte-january-2022.md (98%) rename {sites/svelte.dev => site}/content/blog/2022-01-13-accelerating-sveltes-development.md (97%) rename {sites/svelte.dev => site}/content/blog/2022-02-01-whats-new-in-svelte-february-2022.md (99%) rename {sites/svelte.dev => site}/content/blog/2022-03-01-whats-new-in-svelte-march-2022.md (99%) rename {sites/svelte.dev => site}/content/blog/2022-04-01-whats-new-in-svelte-april-2022.md (99%) rename {sites/svelte.dev => site}/content/blog/2022-05-01-whats-new-in-svelte-may-2022.md (98%) rename {sites/svelte.dev => site}/content/blog/2022-06-01-whats-new-in-svelte-june-2022.md (99%) rename {sites/svelte.dev => site}/content/blog/2022-07-01-whats-new-in-svelte-july-2022.md (99%) rename {sites/svelte.dev => site}/content/blog/2022-08-01-whats-new-in-svelte-august-2022.md (98%) rename {sites/svelte.dev => site}/content/blog/2022-09-01-whats-new-in-svelte-september-2022.md (99%) rename {sites/svelte.dev => site}/content/blog/2022-10-01-whats-new-in-svelte-october-2022.md (96%) rename {sites/svelte.dev => site}/content/blog/2022-11-01-whats-new-in-svelte-november-2022.md (99%) rename {sites/svelte.dev => site}/content/blog/2022-12-01-whats-new-in-svelte-december-2022.md (99%) rename {sites/svelte.dev => site}/content/blog/2022-12-14-announcing-sveltekit-1.0.md (100%) rename {sites/svelte.dev => site}/content/blog/2023-01-01-whats-new-in-svelte-january-2023.md (98%) rename {sites/svelte.dev => site}/content/blog/2023-02-01-whats-new-in-svelte-february-2023.md (100%) create mode 100644 site/content/blog/2023-03-01-whats-new-in-svelte-march-2023.md create mode 100644 site/content/blog/2023-03-09-zero-config-type-safety.md create mode 100644 site/content/blog/2023-04-01-whats-new-in-svelte-april-2023.md delete mode 100644 sites/svelte.dev/.prettierrc diff --git a/.github/ISSUE_TEMPLATE.md b/.github/ISSUE_TEMPLATE.md index 7daff3f1ab..220af11834 100644 --- a/.github/ISSUE_TEMPLATE.md +++ b/.github/ISSUE_TEMPLATE.md @@ -1,7 +1,7 @@ ------- +--- Before filing an issue we'd appreciate it if you could take a moment to ensure there isn't already an open issue or pull-request. ------ +--- If there's an existing issue, please add a :+1: reaction to the description of the issue. One way we prioritize issues is by the number of :+1: reactions on @@ -23,7 +23,6 @@ as you can including the following. - Svelte version (Please check you can reproduce the issue with the latest release!) - Whether your project uses Webpack or Rollup -- *Repeatable steps to reproduce the issue* +- _Repeatable steps to reproduce the issue_ -Thanks for being part of Svelte! -------- +## Thanks for being part of Svelte! diff --git a/.github/ISSUE_TEMPLATE/bug_report.yml b/.github/ISSUE_TEMPLATE/bug_report.yml index 38a971864b..2e484e5ca2 100644 --- a/.github/ISSUE_TEMPLATE/bug_report.yml +++ b/.github/ISSUE_TEMPLATE/bug_report.yml @@ -1,6 +1,6 @@ name: "\U0001F41E Bug report" description: Report an issue with Svelte -labels: ["triage: bug"] +labels: ['triage: bug'] body: - type: markdown attributes: @@ -26,7 +26,7 @@ body: id: logs attributes: label: Logs - description: "Please include browser console and server logs around the time this bug occurred. Optional if provided reproduction. Please try not to insert an image but copy paste the log text." + description: 'Please include browser console and server logs around the time this bug occurred. Optional if provided reproduction. Please try not to insert an image but copy paste the log text.' render: shell - type: textarea id: system-info diff --git a/.github/ISSUE_TEMPLATE/feature_request.yml b/.github/ISSUE_TEMPLATE/feature_request.yml index 2174f851a0..08aa9adcb9 100644 --- a/.github/ISSUE_TEMPLATE/feature_request.yml +++ b/.github/ISSUE_TEMPLATE/feature_request.yml @@ -1,4 +1,4 @@ -name: "Feature Request" +name: 'Feature Request' description: Request a new Svelte feature labels: [enhancement] body: diff --git a/.github/PULL_REQUEST_TEMPLATE.md b/.github/PULL_REQUEST_TEMPLATE.md index 05b48f2ae0..7937ecb7d5 100644 --- a/.github/PULL_REQUEST_TEMPLATE.md +++ b/.github/PULL_REQUEST_TEMPLATE.md @@ -1,8 +1,10 @@ ### 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 -- [ ] Run the tests with `npm test` and lint the project with `npm run lint` + +- [ ] Run the tests with `npm test` and lint the project with `npm run lint` diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 1e0ce53864..2de835c347 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -1,7 +1,7 @@ name: CI on: push: - branches: [ master ] + branches: [master] pull_request: permissions: contents: read # to fetch code (actions/checkout) diff --git a/.prettierignore b/.prettierignore new file mode 100644 index 0000000000..17880ca360 --- /dev/null +++ b/.prettierignore @@ -0,0 +1,11 @@ +/*.js +/*.mjs +/package.json +package-lock.json +elements/* +scripts/* +/src +/test +.svelte-kit +types +.vercel \ No newline at end of file diff --git a/.prettierrc b/.prettierrc new file mode 100644 index 0000000000..de6794b8e5 --- /dev/null +++ b/.prettierrc @@ -0,0 +1,8 @@ +{ + "singleQuote": true, + "printWidth": 100, + "useTabs": true, + "tabWidth": 2, + "trailingComma": "none", + "plugins": ["prettier-plugin-svelte"] +} diff --git a/CHANGELOG.md b/CHANGELOG.md index d5568dce50..71c736d2a3 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,2545 +2,2533 @@ ## 3.58.0 -* Add `bind:innerText` for `contenteditable` elements ([#3311](https://github.com/sveltejs/svelte/issues/3311)) -* Add support for CSS `@container` queries ([#6969](https://github.com/sveltejs/svelte/issues/6969)) -* Respect `preserveComments` in DOM output ([#7182](https://github.com/sveltejs/svelte/pull/7182)) -* Allow use of `document` for `target` in typings ([#7554](https://github.com/sveltejs/svelte/pull/7554)) -* Add `a11y-interactive-supports-focus` warning ([#8392](https://github.com/sveltejs/svelte/pull/8392)) -* Fix equality check when updating dynamic text ([#5931](https://github.com/sveltejs/svelte/issues/5931)) -* Relax `a11y-no-noninteractive-element-to-interactive-role` warning ([#8402](https://github.com/sveltejs/svelte/pull/8402)) -* Properly handle microdata attributes ([#8413](https://github.com/sveltejs/svelte/issues/8413)) -* Prevent name collision when using computed destructuring variables ([#8417](https://github.com/sveltejs/svelte/issues/8417)) -* Fix escaping ` +```svelte + +```svelte +