Skip to content

version 4 #8480

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 211 commits into from
Jun 20, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
211 commits
Select commit Hold shift + click to select a range
ae2a089
feat: Initialize sites
PuruVJ Jan 25, 2023
7d3f565
Merge remote-tracking branch 'origin/master' into sites
PuruVJ Jan 30, 2023
952ca44
empty commit to try and trigger a deploy
Rich-Harris Feb 2, 2023
60806f7
[feat]: Move svelte.dev here (#8237)
PuruVJ Feb 2, 2023
7afee76
Add blurb back in
PuruVJ Feb 3, 2023
6934931
feat: multi-page docs (#8253)
PuruVJ Feb 7, 2023
a3f3602
Merge remote-tracking branch 'origin/master' into sites
PuruVJ Feb 7, 2023
f4c593f
Merge remote-tracking branch 'origin/sites' into sites
PuruVJ Feb 7, 2023
79db9b1
feat: Proper dark mode (#8274)
PuruVJ Feb 13, 2023
dd96032
Update deps
PuruVJ Feb 14, 2023
1b12546
Merge remote-tracking branch 'origin/master' into sites
PuruVJ Feb 16, 2023
df2bb23
feat: search and backlink compatability (#8286)
PuruVJ Feb 16, 2023
ec8b7e8
Merge remote-tracking branch 'origin/master' into sites
PuruVJ Mar 8, 2023
b45fe80
Merge remote-tracking branch 'origin/master' into sites
PuruVJ Mar 18, 2023
95c346c
Merge remote-tracking branch 'origin/master' into sites
PuruVJ Mar 23, 2023
339ea85
fix(site-2): styles (#8288)
PuruVJ Mar 24, 2023
bad1780
chore: bump site-kit, use new components
dummdidumm Mar 28, 2023
99611ad
Fix search
PuruVJ Mar 28, 2023
35e7a85
feat(site-2): Local tutorial (#8427)
PuruVJ Mar 29, 2023
9793b41
feat(site-2): Local examples (#8431)
PuruVJ Mar 29, 2023
5976de8
feat(site-2): Fully remove api.svelte.dev (#8432)
PuruVJ Apr 2, 2023
f4edb38
Merge branch 'master' into sites
Apr 2, 2023
db2d07f
feat(site-2): Update links, move blog out of SK folder to content (#8…
PuruVJ Apr 2, 2023
95abaec
chore(site-2): Update deps
PuruVJ Apr 2, 2023
b569018
feat(site-2): Split docs (#8435)
PuruVJ Apr 3, 2023
050c103
feat(site-2): Make blog logic consistent with other content (#8447)
PuruVJ Apr 3, 2023
beb3f65
docs(site-2): CJS to ESM for code snippets (#8449)
PuruVJ Apr 3, 2023
04d4592
chore: Update deps
PuruVJ Apr 5, 2023
1e982c1
chore: Run prettier
PuruVJ Apr 5, 2023
9997995
Update readme (#8453)
PuruVJ Apr 5, 2023
009ce45
site: tweak content layout (#8483)
benmccann Apr 11, 2023
ec73359
fix: Old site redirects
PuruVJ Apr 11, 2023
71d173a
feat: Add home slot
PuruVJ Apr 11, 2023
92e62c9
Update deps
PuruVJ Apr 12, 2023
36658da
Fix broken links
PuruVJ Apr 12, 2023
59b7c44
Merge remote-tracking branch 'origin/master' into sites
PuruVJ Apr 15, 2023
92a06e9
chore: run npm install
PuruVJ Apr 15, 2023
45f2890
feat(site-2): Remove legacy site-kit stuff (#8501)
PuruVJ Apr 17, 2023
b95ae0e
fix: html space entities lost in component slot (#8464)
xxkl1 Apr 11, 2023
54bb1f4
breaking: send in/out to transition fn (#8318)
tivac Apr 11, 2023
f0cdf77
chore: remove node<14 tests (#8482)
dummdidumm Apr 11, 2023
932cb66
chore: simplify Svelte 4 CI (#8487)
benmccann Apr 12, 2023
4236269
chore: bump engines field (#8489)
benmccann Apr 12, 2023
d7cffa6
chore: upgrade to TypeScript 5 (#8488)
benmccann Apr 12, 2023
99b6a25
chore: Svelte 4 dependency upgrades (#8486)
benmccann Apr 12, 2023
2813814
chore: upgrade rollup (#8491)
benmccann Apr 12, 2023
caef440
chore: run fewer CI jobs (#8496)
benmccann Apr 13, 2023
8e51b51
breaking: improve types for `createEventDispatcher` (#7224)
ivanhofer Apr 14, 2023
c81522f
breaking: conditional ActionReturn type if Parameter is void (#7442)
tanhauhau Apr 14, 2023
d587175
feat: add `a11y-no-static-element-interactions` compiler rule (#8251)
timmcca-be Apr 14, 2023
1728a89
fix: bind null option and input values consistently (#8328)
theodorejb Apr 14, 2023
68bf3e8
feat: add a11y `no-noninteractive-element-interactions` (#8391)
ngtr6788 Apr 14, 2023
5d4f3bd
chore: remove Node 8 and 10 logic (#8503)
baseballyama Apr 15, 2023
2f42347
chore: produce single bundle for runtime with multiple entrypoints (#…
gtm-nayan Apr 18, 2023
236ffa8
breaking: update onMount type definition to prevent async function re…
chrskerr Apr 18, 2023
f30faa7
feat: improve duplicate key error for keyed each blocks (#8411)
rafistrauss Apr 18, 2023
be64520
breaking: remove legacy package.json files (#8515)
benmccann Apr 18, 2023
d64e86a
chore: switch from npm to pnpm (#8514)
benmccann Apr 18, 2023
6f8cdf3
chore: run CI tests on Node 20 (#8519)
benmccann Apr 19, 2023
df2f656
feat: improve hydration, claim static html elements using innerHTML i…
tanhauhau Apr 20, 2023
1e9e843
Merge
PuruVJ Apr 20, 2023
ce686c9
chore: Upgrade to Vite 4.3 (#8524)
PuruVJ Apr 20, 2023
572f537
breaking: deprecate SvelteComponentTyped, add generics to SvelteCompo…
dummdidumm Apr 24, 2023
8ffd211
chore: fix CI setup for unit tests (#8530)
benmccann Apr 26, 2023
384927d
chore: TypeScript to JavaScript + JSDoc for tests (#8526)
baseballyama Apr 26, 2023
0677d89
chore: fix CI on Node 20 (#8528)
baseballyama Apr 26, 2023
12f4f6c
Merge remote-tracking branch 'origin/master' into sites
PuruVJ Apr 30, 2023
23d63c7
chore: Rebuild package.lock
PuruVJ Apr 30, 2023
d083f8a
feat: custom elements rework (#8457)
dummdidumm May 2, 2023
ea73930
fix: allow $store to be used with changing values including nullish v…
ramonsnir May 4, 2023
19e163f
feat: pass update function to store setup callbacks (#6750)
rmunn May 4, 2023
c036396
fix: treat slots as if they don't exist when using CSS adjacent and g…
ngtr6788 May 4, 2023
afd3849
fix: provide a workaround for `unsafe-inline` CSP that also works in …
Karlinator May 4, 2023
81cfab9
Update CHANGELOG.md
benmccann May 4, 2023
37c8bd7
fix: var scope should not extend outside the reactive block (#6800)
RaiVaibhav May 5, 2023
418f4c2
Merge branch 'master' into version-4
dummdidumm May 5, 2023
6fbb36d
fix: improve setup of default export and remove `svelte/ssr` (#8516)
benmccann May 5, 2023
5e486c1
docs: fix links in changelog
benmccann May 8, 2023
56df761
breaking: set verison to 4, remove engines.pnpm and bump engines.node…
dominikg May 8, 2023
573acf9
Merge branch 'master' into version-4
dummdidumm May 8, 2023
b6a400a
chore: add prettier (#8543)
baseballyama May 8, 2023
3b4ab35
feat(site-2): Use entries (#8570)
PuruVJ May 9, 2023
b9ea60c
fix(site-2): Remove marked warnings (#8574)
PuruVJ May 10, 2023
9bee59c
feat(site-2): TS in docs (#8452)
PuruVJ May 11, 2023
fd9088b
chore: Reinstall packages
PuruVJ May 11, 2023
52028a0
fix(site-2): Restyle home page (#8454)
PuruVJ May 12, 2023
5a671cb
feat(site-2): New REPL (#8545)
PuruVJ May 12, 2023
fbd3ccd
Merge remote-tracking branch 'origin/version-4' into sites
PuruVJ May 13, 2023
1e2ad92
fix: Post merge pnpm issues
PuruVJ May 13, 2023
c967b81
chore(site-2): Update deps
PuruVJ May 13, 2023
f363af7
site -> documentation (#8585)
PuruVJ May 13, 2023
21a0141
feat(site-2, v4): pnpm workspace (#8586)
PuruVJ May 14, 2023
f3396cf
chore(site-2): Run prettier
PuruVJ May 14, 2023
202d119
chore: convert puppeteer tests to playwright (#8577)
gtm-nayan May 15, 2023
d652ddb
make the triangle bot less verbose
gtm-nayan May 15, 2023
bb0d34b
feat(site-2): Accessibility (#8579)
PuruVJ May 16, 2023
543e93b
fix(site-2): Use dynamic LOCAL_SVELTE_PATH
PuruVJ May 16, 2023
a39c7f3
Merge remote-tracking branch 'origin/version-4' into sites
PuruVJ May 16, 2023
273c731
feat(site-2): docs edit button (#8593)
PuruVJ May 17, 2023
783bd98
chore: swap mocha with vitest (#8584)
gtm-nayan May 17, 2023
3067e7a
docs: update SvelteKit alternatives section (#8596)
benmccann May 18, 2023
cf5561c
Merge remote-tracking branch 'origin/version-4' into sites
PuruVJ May 19, 2023
fd9d61a
chore: TS to JSDoc Conversion (#8569)
elliott-with-the-longest-name-on-github May 19, 2023
d35d904
rename ts to js
dummdidumm May 19, 2023
61218d3
chore(test): tidy up html equal (#8599)
gtm-nayan May 19, 2023
0c99aa8
chore: update eslint config (#8608)
benmccann May 20, 2023
0467219
chore: switch to released version of eslint-config
benmccann May 21, 2023
f09a942
silence wrong tsconfig errors
dummdidumm May 22, 2023
7e9af10
chore(test): link compiler directly from source (#8612)
gtm-nayan May 22, 2023
3df9d84
chore: speed up test execution (#8598)
gtm-nayan May 22, 2023
7cec17c
fix flaky test
gtm-nayan May 22, 2023
098a553
Merge remote-tracking branch 'origin/version-4' into sites
PuruVJ May 23, 2023
b47e21c
chore: Commit internal_exports
PuruVJ May 23, 2023
f223bc1
feat: change preprocessor ordering, allow attributes modification (#8…
dummdidumm May 23, 2023
c2cec95
chore(test): move some error tests out of runtime (#8600)
gtm-nayan May 23, 2023
d6b02ed
chore(test): use esm output for Svelte files (#8614)
gtm-nayan May 23, 2023
5ed440b
chore: remove unused codemod-lazy-props.mjs (#8619)
benmccann May 23, 2023
086f225
chore: remove unused source-map-support depedency (#8622)
benmccann May 23, 2023
d658e70
chore(test): fix path to compiler
gtm-nayan May 24, 2023
a40af4d
chore: unbundled esm (#8613)
dummdidumm May 24, 2023
ad949c5
Merge remote-tracking branch 'origin/version-4' into sites
PuruVJ May 25, 2023
46f71b3
fix: preprocess snippet
PuruVJ May 25, 2023
2312133
Gitignore compiler.js files
PuruVJ May 25, 2023
0050f06
chore: Remove from gitignore
PuruVJ May 25, 2023
993b402
feat(site-2): New Markdown renderer, FAQ, Blog, Tutorial, Docs, (#8603)
PuruVJ May 25, 2023
7b0d638
chore: rerun pnpm install
PuruVJ May 25, 2023
cf0d815
fix: lint errors
PuruVJ May 25, 2023
9f0fe30
chore: Remove svelte v3 files
PuruVJ May 25, 2023
5a4b48b
fix: type error
dummdidumm May 25, 2023
df361a2
chore: warn about `:` in attributes and props (#8633)
dummdidumm May 26, 2023
734cc19
feat: apply inert to outroing elements (#8628)
dummdidumm May 26, 2023
a521064
fix(perf): use classList.toggle instead of add/remove (#8629)
akx May 26, 2023
5dd707d
feat: make transitions local by default (#8632)
dummdidumm May 26, 2023
d969855
feat: allow #each to iterate over iterables (#8626)
dummdidumm May 26, 2023
a3f52f9
fix: error when animation directive is on component (#8641)
ngtr6788 May 26, 2023
198dbcf
chore: warn on passed format option
dummdidumm May 26, 2023
5c6d111
Do not expose default slot let bindings to named slots (#6049)
tanhauhau May 26, 2023
1c581bc
chore: changelog
dummdidumm May 26, 2023
ddfff4d
chore: convert to monorepo (#8644)
benmccann May 26, 2023
4cde4ea
docs(site-2): Action, TypeScript (#8588)
PuruVJ May 27, 2023
bd51e6f
Merge remote-tracking branch 'origin/version-4' into sites
PuruVJ May 27, 2023
d813943
Merge remote-tracking branch 'origin/version-4' into sites
PuruVJ May 27, 2023
79f9d8f
chore: remove type * for better backwards compatibility
dummdidumm May 27, 2023
eb18769
Merge remote-tracking branch 'origin/version-4' into sites
PuruVJ May 29, 2023
0e19350
docs: update changelog with required version of vite-plugin-svelte (#…
benmccann May 30, 2023
b41c440
docs: update changelog to follow changesets format (#8642)
benmccann May 30, 2023
b061937
docs: update changelog with minimum `rollup-plugin-svelte` and `svelt…
benmccann May 30, 2023
fe06a39
fix: store types and some other internal types that got lost in the c…
gtm-nayan May 30, 2023
0ce4187
docs: use pnpm and new commands to check the code base (#8667)
ngtr6788 May 30, 2023
38a70bc
fix(site-2): REPL component and minor fixes (#8616)
PuruVJ May 30, 2023
2efd78c
Merge remote-tracking branch 'origin/version-4' into sites
PuruVJ May 30, 2023
f74dddd
docs: correct link in changelog
benmccann Jun 1, 2023
83d5671
move FAQ to /docs/faq (#8672)
Rich-Harris Jun 1, 2023
042a678
tidy up `sites` branch (#8671)
Rich-Harris Jun 1, 2023
c33377f
Merge branch 'version-4' into sites
Rich-Harris Jun 1, 2023
27538fc
tweak docs content (#8675)
Rich-Harris Jun 1, 2023
f2ff684
chore: setup changesets (#8668)
benmccann Jun 1, 2023
5902cca
chore: upgrade to pnpm 8.6.0 (#8693)
benmccann Jun 4, 2023
276d2f8
merge version-4 branch
benmccann Jun 4, 2023
53b8158
site: fix svelte-check errors (#8696)
benmccann Jun 5, 2023
ad849cc
chore(site-2): What's new in Svelte June 2023 (#8705)
PuruVJ Jun 7, 2023
15bdadb
chore: playground (#8648)
gtm-nayan Jun 7, 2023
1046dab
Generate type declarations with `dts-buddy` (#8702)
Rich-Harris Jun 8, 2023
0b15bb6
fix: export ComponentType (#8694)
gtm-nayan Jun 8, 2023
264da48
fix: derived types (#8700)
gtm-nayan Jun 8, 2023
5963b6f
Version Packages (next) (#8709)
github-actions[bot] Jun 8, 2023
ba58327
fix: changeset publish script isn't called release anymore (#8711)
dominikg Jun 8, 2023
0c6f172
chore: remove prepare script (#8713)
benmccann Jun 8, 2023
8bd9021
chore: fix release workflow (#8716)
gtm-nayan Jun 9, 2023
fbd1d0a
Try?
PuruVJ Jun 9, 2023
ad9a672
Merge version-4
PuruVJ Jun 10, 2023
aa5bb4a
feat: Better docs nav (#8605)
PuruVJ Jun 12, 2023
744c596
fix(site-2): docs redirect page (#8718)
PuruVJ Jun 12, 2023
d6f0b7b
Fix types (#8727)
Rich-Harris Jun 13, 2023
cc1f4bc
chore: upgrade eslint config (#8717)
benmccann Jun 14, 2023
83e9178
chore: upgrade aria-query and axobject-query (#8724)
benmccann Jun 14, 2023
b1cafc4
update type generation script (#8712)
Rich-Harris Jun 14, 2023
20d95dd
merge
benmccann Jun 14, 2023
5e4a55c
bump site-kit (#8731)
Rich-Harris Jun 14, 2023
f580e2e
fix: warn on boolean compilerOptions.css (#8710)
gtm-nayan Jun 14, 2023
4f10637
fix: Don't break in `attributeChangedCallback` if `$$component` does …
mimbrown Jun 14, 2023
c587c8a
docs: note limitations of not using shadow root (#8734)
dummdidumm Jun 14, 2023
62bef80
Merge remote-tracking branch 'origin/version-4' into sites
PuruVJ Jun 15, 2023
9d33d14
fix(site-2): Home page styles(pt 2) (#8720)
PuruVJ Jun 15, 2023
e8e9c6c
chore: update `locate-character` and `dts-buddy` (#8737)
benmccann Jun 16, 2023
437ca72
Bump site-kit (#8742)
Rich-Harris Jun 16, 2023
4e569d1
docs: Svelte 3/4 differences (#8740)
dummdidumm Jun 16, 2023
bdf10f1
merge
benmccann Jun 16, 2023
9ce1443
site: update terminal section, move survey text lower, lowercase head…
benmccann Jun 16, 2023
3878c39
chore: lockfile 6.1
PuruVJ Jun 16, 2023
aa8cc5d
fix: never use html optimization for mustache tags in hydration mode …
dummdidumm Jun 16, 2023
e964254
simplify nav (#8736)
Rich-Harris Jun 16, 2023
312f944
fix terminal (#8748)
Rich-Harris Jun 16, 2023
ae38d64
fix(site-2): Prerender nav data (#8747)
PuruVJ Jun 17, 2023
aec4137
chore(sites): update deps (#8752)
PuruVJ Jun 17, 2023
cc82d5d
fix: expose types for all TS resolution modes, fix SvelteComponent ex…
gtm-nayan Jun 18, 2023
520a578
Version Packages (next) (#8733)
github-actions[bot] Jun 18, 2023
0eca1c7
make sites private
dummdidumm Jun 18, 2023
75917ee
docs: migration page (#8739)
dummdidumm Jun 19, 2023
752ee69
chore: a11y tests cleanup (#8759)
dummdidumm Jun 19, 2023
d4416c0
chore: cleanup generated files (#8749)
gtm-nayan Jun 19, 2023
882e079
chore: exclude sites from build script (#8754)
gtm-nayan Jun 19, 2023
be7a266
docs: fix broken link (#8746)
benmccann Jun 19, 2023
67b4e4f
docs: normalize svelte compiler headings (#8755)
PuruVJ Jun 19, 2023
0724261
chore: update code-red (#8719)
benmccann Jun 19, 2023
54f72f4
fix: update onMount type to allow async to return any (#8714)
GrygrFlzr Jun 19, 2023
f8139e5
chore(site): fix build (#8762)
gtm-nayan Jun 20, 2023
88504ee
docs(sites): Auto-generated CompileOptions (#8756)
PuruVJ Jun 20, 2023
914529f
feat: smaller destructor chunk (#8763)
gtm-nayan Jun 20, 2023
a856128
merge master
benmccann Jun 20, 2023
4d491d4
merge changelog for 3.59.2
benmccann Jun 20, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
The diff you're trying to view is too large. We only load the first 3000 changed files.
8 changes: 8 additions & 0 deletions .changeset/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
# Changesets

Hello and welcome! This folder has been automatically generated by `@changesets/cli`, a build tool that works
with multi-package repos, or single-package repos to help you version and publish your code. You can
find the full documentation for it [in our repository](https://github.com/changesets/changesets)

We have a quick list of common questions to get you started engaging with this project in
[our documentation](https://github.com/changesets/changesets/blob/main/docs/common-questions.md)
5 changes: 5 additions & 0 deletions .changeset/beige-boxes-rhyme.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'svelte': patch
---

fix: export ComponentType from `svelte` entrypoint
11 changes: 11 additions & 0 deletions .changeset/config.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"$schema": "https://unpkg.com/@changesets/[email protected]/schema.json",
"changelog": ["@svitejs/changesets-changelog-github-compact", { "repo": "sveltejs/svelte" }],
"commit": false,
"fixed": [],
"linked": [],
"access": "public",
"baseBranch": "version-4",
"bumpVersionsWithWorkspaceProtocolOnly": true,
"ignore": ["!(@sveltejs/*|svelte)"]
}
5 changes: 5 additions & 0 deletions .changeset/eighty-tigers-rhyme.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'svelte': patch
---

feat: smaller minified output for destructor chunks
5 changes: 5 additions & 0 deletions .changeset/fair-geese-repeat.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'svelte': patch
---

fix: never use html optimization for mustache tags in hydration mode
5 changes: 5 additions & 0 deletions .changeset/gentle-pumas-chew.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'svelte': patch
---

fix: derived store types
5 changes: 5 additions & 0 deletions .changeset/green-sheep-learn.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'svelte': patch
---

Generate type declarations with dts-buddy
5 changes: 5 additions & 0 deletions .changeset/mighty-suns-occur.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'svelte': patch
---

fix: ensure types are loaded with all TS settings
18 changes: 18 additions & 0 deletions .changeset/pre.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
{
"mode": "pre",
"tag": "next",
"initialVersions": {
"svelte": "4.0.0-next.1",
"playground": "0.0.0",
"svelte.dev": "1.0.0"
},
"changesets": [
"beige-boxes-rhyme",
"fair-geese-repeat",
"gentle-pumas-chew",
"green-sheep-learn",
"mighty-suns-occur",
"stale-cougars-wink",
"tame-peaches-destroy"
]
}
5 changes: 5 additions & 0 deletions .changeset/stale-cougars-wink.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'svelte': patch
---

warn on boolean compilerOptions.css
5 changes: 5 additions & 0 deletions .changeset/tame-peaches-destroy.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'svelte': patch
---

fix: export correct SvelteComponent type
14 changes: 0 additions & 14 deletions .eslintrc.js

This file was deleted.

9 changes: 4 additions & 5 deletions .github/ISSUE_TEMPLATE.md
Original file line number Diff line number Diff line change
@@ -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
Expand All @@ -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!
4 changes: 2 additions & 2 deletions .github/ISSUE_TEMPLATE/bug_report.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: "\U0001F41E Bug report"
description: Report an issue with Svelte
labels: ["triage: bug"]
labels: ['triage: bug']
body:
- type: markdown
attributes:
Expand All @@ -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
Expand Down
2 changes: 1 addition & 1 deletion .github/ISSUE_TEMPLATE/feature_request.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: "Feature Request"
name: 'Feature Request'
description: Request a new Svelte feature
labels: [enhancement]
body:
Expand Down
8 changes: 5 additions & 3 deletions .github/PULL_REQUEST_TEMPLATE.md
Original file line number Diff line number Diff line change
@@ -1,12 +1,14 @@
# HEADS UP: BIG RESTRUCTURING UNDERWAY

The Svelte repo is currently in the process of heavy restructuring for Svelte 4. After that, work on Svelte 5 will likely change a lot on the compiler aswell. For that reason, please don't open PRs that are large in scope, touch more than a couple of files etc. In other words, bug fixes are fine, but feature PRs will likely not be merged.
The Svelte repo is currently in the process of heavy restructuring for Svelte 4. After that, work on Svelte 5 will likely change a lot in the compiler as well. For that reason, please don't open PRs that are large in scope, touch more than a couple of files, etc. In other words, bug fixes are fine, but feature PRs will likely not be merged.

### 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`
### Tests and linting

- [ ] Run the tests with `pnpm test` and lint the project with `pnpm lint`
101 changes: 26 additions & 75 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -1,101 +1,52 @@
name: CI
on:
push:
branches: [ master ]
branches: [master]
pull_request:
permissions:
contents: read # to fetch code (actions/checkout)

env:
# We only install Chromium manually
PLAYWRIGHT_SKIP_BROWSER_DOWNLOAD: '1'

jobs:
Setup:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, windows-latest, macOS-latest]
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 18
cache: npm
- run: npm install
env:
SKIP_PREPARE: true
- run: npm run build
env:
PUBLISH: true
- name: Upload build assets
id: upload-artifact
uses: actions/upload-artifact@v3
with:
name: build-assets
path: |
index.*
compiler.*
ssr.*
action/
animate/
easing/
internal/
motion/
store/
transition/
types/
Tests:
needs: Setup
runs-on: ${{ matrix.os }}
timeout-minutes: 15
strategy:
matrix:
node-version: [8, 10, 12, 14, 16, 18]
os: [ubuntu-latest, windows-latest, macOS-latest]
include:
- node-version: 16
os: ubuntu-latest
- node-version: 16
os: windows-latest
- node-version: 16
os: macOS-latest
- node-version: 18
os: ubuntu-latest
- node-version: 20
os: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: pnpm/[email protected]
- uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
cache: npm
- name: Download build assets
uses: actions/download-artifact@v3
id: download-artifact
with:
name: build-assets
- name: Get Node version ${{ runner.os }}
run: echo "NODE_VERSION=`node --version`" >> $GITHUB_ENV
if: runner.os != 'Windows'
- name: Get Node version ${{ runner.os }}
run: |
chcp 65001
echo ("NODE_VERSION=$(node --version)") >> $env:GITHUB_ENV
if: runner.os == 'Windows'
- run: npm install --save-dev puppeteer@13
if: ${{ runner.os == 'Linux' && (!startsWith(env.NODE_VERSION, 'v8.') && !startsWith(env.NODE_VERSION, 'v10.')) }}
- run: npm install
env:
SKIP_PREPARE: true
- run: npm run test:integration
cache: pnpm
- run: pnpm install --frozen-lockfile
- run: pnpm playwright install chromium
- run: pnpm test
env:
CI: true
Lint:
runs-on: ubuntu-latest
timeout-minutes: 5
steps:
- uses: actions/checkout@v3
- uses: pnpm/[email protected]
- uses: actions/setup-node@v3
with:
cache: npm
- run: 'npm i && npm run lint'
Unit:
runs-on: ${{ matrix.os }}
timeout-minutes: 10
strategy:
matrix:
os: [ubuntu-latest, windows-latest, macOS-latest]
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
cache: npm
- run: npm install
env:
SKIP_PREPARE: true
- run: npm run test:unit
node-version: 16
cache: pnpm
- run: 'pnpm i && pnpm check && pnpm lint'
41 changes: 41 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
name: Release

on:
push:
branches:
- version-4

permissions: {}
jobs:
release:
# prevents this action from running on forks
if: github.repository == 'sveltejs/svelte'
permissions:
contents: write # to create release (changesets/action)
pull-requests: write # to create pull request (changesets/action)
name: Release
runs-on: ubuntu-latest
steps:
- name: Checkout Repo
uses: actions/checkout@v3
with:
# This makes Actions fetch all Git history so that Changesets can generate changelogs with the correct commits
fetch-depth: 0
- uses: pnpm/[email protected]
- name: Setup Node.js
uses: actions/setup-node@v3
with:
node-version: 18.x
cache: pnpm

- run: pnpm install --frozen-lockfile

- name: Create Release Pull Request or Publish to npm
id: changesets
uses: changesets/action@v1
with:
version: pnpm changeset:version
publish: pnpm changeset:publish
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
22 changes: 2 additions & 20 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,24 +1,6 @@
.idea
.DS_Store
.vscode
.vscode/*
!.vscode/launch.json
node_modules
*.map
/src/compiler/compile/internal_exports.ts
/compiler.d.ts
/compiler.*js
/index.*js
/ssr.*js
/action
/internal
/store
/easing
/motion
/transition
/animate
/scratch/
/test/*/samples/_
/yarn-error.log
_actual*.*
_output
/types
.eslintcache
14 changes: 0 additions & 14 deletions .mocharc.js

This file was deleted.

15 changes: 0 additions & 15 deletions .mocharc.unit.js

This file was deleted.

Loading