-
-
Notifications
You must be signed in to change notification settings - Fork 2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: update Vercel, Cloudflare, and Netlify adapter major versions (#…
…13142) * update adapter versions * changeset * add test * update cf adapter version to 5
- Loading branch information
1 parent
c8164ad
commit d512606
Showing
5 changed files
with
31 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
'@sveltejs/adapter-auto': major | ||
--- | ||
|
||
feat: update Vercel, Cloudflare Pages, and Netlify adapter major versions |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
import { assert, test } from 'vitest'; | ||
import { adapters } from 'adapters.js'; | ||
import { existsSync, readFileSync } from 'node:fs'; | ||
|
||
test('adapter versions are up to date', () => { | ||
for (const adapter of adapters) { | ||
const dir = adapter.module.replace('@sveltejs/', ''); | ||
const package_json = `../${dir}/package.json`; | ||
if (!existsSync(package_json)) { | ||
continue; | ||
} | ||
const adapter_version = JSON.parse(readFileSync(package_json, 'utf-8')).version; | ||
const [major] = adapter_version.split('.'); | ||
assert.equal(adapter.version, major, `${adapter.name} adapter is outdated`); | ||
} | ||
}); |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.