Skip to content

Commit 789e2a3

Browse files
committed
fix!: Upgrade to Sveltekit 2 (#5)
Update dependencies to SvelteKit 2. Node 16 is no longer supported.
1 parent 7d3397b commit 789e2a3

File tree

6 files changed

+48
-45
lines changed

6 files changed

+48
-45
lines changed

.github/workflows/release.yml

+6-6
Original file line numberDiff line numberDiff line change
@@ -7,24 +7,24 @@ on:
77
jobs:
88
release:
99
name: Release (${{ github.event.workflow_run.head_commit.id }})
10-
if: ${{ github.ref_name == 'main' && github.event.workflow_run.conclusion == 'success' }}
10+
if: ${{ github.ref_name == 'main' && github.event.workflow_run.conclusion == 'success' && github.repository_owner == 'Data-Only-Greater'}}
1111
runs-on: ubuntu-latest
1212
steps:
1313
- name: Checkout
14-
uses: actions/checkout@v3
14+
uses: actions/checkout@v4
1515
with:
1616
fetch-depth: 0
1717
- name: Setup Node.js
18-
uses: actions/setup-node@v3
18+
uses: actions/setup-node@v4
1919
with:
2020
node-version: 'lts/*'
2121
registry-url: 'https://registry.npmjs.org'
2222
- name: Install package dependencies
23-
run: yarn install
23+
run: npm install
2424
- name: Build package
25-
run: yarn run build
25+
run: npm run build
2626
- name: Install semantic release
27-
run: yarn add -D semantic-release @semantic-release/changelog @semantic-release/git conventional-changelog-conventionalcommits
27+
run: npm install -D semantic-release @semantic-release/changelog @semantic-release/git conventional-changelog-conventionalcommits
2828
- name: Semantic Release
2929
run: npx semantic-release
3030
env:

.github/workflows/unit_tests.yml

+11-11
Original file line numberDiff line numberDiff line change
@@ -7,30 +7,30 @@ jobs:
77
fail-fast: false
88
matrix:
99
os: [windows-latest, ubuntu-latest]
10-
node-version: [16, 18]
10+
node-version: [18, 20]
1111
runs-on: ${{ matrix.os }}
1212
steps:
13-
- uses: actions/checkout@v3
13+
- uses: actions/checkout@v4
1414
- name: Install Node
15-
uses: actions/setup-node@v3
15+
uses: actions/setup-node@v4
1616
with:
1717
node-version: ${{ matrix.node-version }}
1818
- name: Install dependencies
19-
run: yarn install
19+
run: npm install
2020
- name: Test
21-
run: yarn run test run --reporter verbose
21+
run: npm run test -- run --reporter verbose
2222
coverage:
2323
needs: 'test'
2424
runs-on: ubuntu-latest
2525
steps:
26-
- uses: actions/checkout@v3
26+
- uses: actions/checkout@v4
2727
- name: Install Node
28-
uses: actions/setup-node@v3
28+
uses: actions/setup-node@v4
2929
with:
30-
node-version: 18
30+
node-version: 20
3131
- name: Install dependencies
32-
run: yarn install
32+
run: npm install
3333
- name: Generate coverage report
34-
run: yarn run coverage
34+
run: npm run coverage
3535
- name: Upload coverage reports to Codecov with GitHub Action
36-
uses: codecov/codecov-action@v3
36+
uses: codecov/codecov-action@v4

.gitignore

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,6 @@
44
node_modules
55
dist
66
coverage
7-
yarn.lock
7+
package-lock.json
88
!release.config.js
99
!lambda/*.js

package.json

+24-21
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
},
2828
"types": "./index.d.ts",
2929
"scripts": {
30-
"build": "yarn clean && tsc --project tsconfig.build.json && yarn copy-files",
30+
"build": "npm run clean && tsc --project tsconfig.build.json && npm run copy-files",
3131
"build:doc": "jsdoc2md --files index.ts --configure ./jsdoc2md.json > index.md",
3232
"clean": "rimraf dist/",
3333
"copy-files": "copyfiles lambda/** package.json README.md LICENSE dist",
@@ -37,32 +37,35 @@
3737
"coverage": "vitest run --coverage"
3838
},
3939
"devDependencies": {
40-
"@aws-sdk/credential-provider-node": "^3.309.0",
41-
"@aws-sdk/protocol-http": "^3.306.0",
42-
"@aws-sdk/signature-v4": "^3.306.0",
43-
"@babel/cli": "^7.21.0",
44-
"@babel/core": "^7.21.3",
45-
"@babel/preset-env": "^7.20.2",
46-
"@babel/preset-typescript": "^7.21.0",
47-
"@sveltejs/kit": "^1.15.2",
48-
"@types/fs-extra": "^11.0.1",
49-
"@vitest/coverage-c8": "^0.29.7",
40+
"@aws-sdk/credential-provider-node": "^3.576.0",
41+
"@babel/cli": "^7.24.5",
42+
"@babel/core": "^7.24.5",
43+
"@babel/preset-env": "^7.24.5",
44+
"@babel/preset-typescript": "^7.24.1",
45+
"@smithy/protocol-http": "^4.0.0",
46+
"@smithy/signature-v4": "^3.0.0",
47+
"@sveltejs/kit": "^2.5.8",
48+
"@types/fs-extra": "^11.0.4",
49+
"@vitest/coverage-v8": "^1.6.0",
5050
"copyfiles": "^2.4.1",
5151
"jsdoc-babel": "^0.5.0",
52-
"jsdoc-to-markdown": "^8.0.0",
53-
"prettier": "^2.8.4",
54-
"rimraf": "^4.4.1",
55-
"typescript": "^5.0.2",
56-
"vitest": "^0.29.7"
52+
"jsdoc-to-markdown": "^8.0.1",
53+
"prettier": "^3.2.5",
54+
"rimraf": "^5.0.7",
55+
"typescript": "^5.4.5",
56+
"vitest": "^1.6.0"
5757
},
5858
"dependencies": {
59-
"@aws-crypto/sha256-js": "^4.0.0",
60-
"esbuild": "^0.17.10",
61-
"fs-extra": "^11.1.1",
62-
"set-cookie-parser": "^2.5.1"
59+
"@aws-crypto/sha256-js": "^5.2.0",
60+
"esbuild": "^0.21.2",
61+
"fs-extra": "^11.2.0",
62+
"set-cookie-parser": "^2.6.0"
6363
},
64+
"engines": {
65+
"node": ">=18.13"
66+
},
6467
"peerDependencies": {
65-
"@sveltejs/kit": "^1.15.2"
68+
"@sveltejs/kit": "^2.5.8"
6669
},
6770
"release": {
6871
"branches": [

tsconfig.build.json

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
{
22
"compilerOptions": {
3-
"module": "es2022",
3+
"module": "nodenext",
44
"target": "es2022",
5-
"moduleResolution": "node",
5+
"moduleResolution": "nodenext",
66
"declaration": true,
77
"strict": true,
88
"noImplicitAny": true,
@@ -20,7 +20,7 @@
2020
"esModuleInterop": true,
2121
"allowSyntheticDefaultImports": true,
2222
"allowJs": false,
23-
"typeRoots": ["./node_modules/@types"],
23+
"typeRoots": ["./node_modules/@types", "./node_modules"],
2424
"types": ["vitest/globals"],
2525
"outDir": "dist"
2626
},

tsconfig.json

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
{
22
"compilerOptions": {
3-
"module": "es2022",
3+
"module": "nodenext",
44
"target": "es2022",
5-
"moduleResolution": "node",
5+
"moduleResolution": "nodenext",
66
"declaration": true,
77
"strict": true,
88
"noImplicitAny": true,
@@ -20,7 +20,7 @@
2020
"esModuleInterop": true,
2121
"allowSyntheticDefaultImports": true,
2222
"allowJs": false,
23-
"typeRoots": ["./node_modules/@types"],
23+
"typeRoots": ["./node_modules/@types/", "./node_modules"],
2424
"types": ["vitest/globals"]
2525
},
2626
"exclude": ["vitest.config.ts", "dist"]

0 commit comments

Comments
 (0)