diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 18d323d..5d65812 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -7,24 +7,24 @@ on: jobs: release: name: Release (${{ github.event.workflow_run.head_commit.id }}) - if: ${{ github.ref_name == 'main' && github.event.workflow_run.conclusion == 'success' }} + if: ${{ github.ref_name == 'main' && github.event.workflow_run.conclusion == 'success' && github.repository_owner == 'Data-Only-Greater'}} runs-on: ubuntu-latest steps: - name: Checkout - uses: actions/checkout@v3 + uses: actions/checkout@v4 with: fetch-depth: 0 - name: Setup Node.js - uses: actions/setup-node@v3 + uses: actions/setup-node@v4 with: node-version: 'lts/*' registry-url: 'https://registry.npmjs.org' - name: Install package dependencies - run: yarn install + run: npm install - name: Build package - run: yarn run build + run: npm run build - name: Install semantic release - run: yarn add -D semantic-release @semantic-release/changelog @semantic-release/git conventional-changelog-conventionalcommits + run: npm install -D semantic-release @semantic-release/changelog @semantic-release/git conventional-changelog-conventionalcommits - name: Semantic Release run: npx semantic-release env: diff --git a/.github/workflows/unit_tests.yml b/.github/workflows/unit_tests.yml index 7fd44ca..96faee8 100644 --- a/.github/workflows/unit_tests.yml +++ b/.github/workflows/unit_tests.yml @@ -7,30 +7,30 @@ jobs: fail-fast: false matrix: os: [windows-latest, ubuntu-latest] - node-version: [16, 18] + node-version: [18, 20] runs-on: ${{ matrix.os }} steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - name: Install Node - uses: actions/setup-node@v3 + uses: actions/setup-node@v4 with: node-version: ${{ matrix.node-version }} - name: Install dependencies - run: yarn install + run: npm install - name: Test - run: yarn run test run --reporter verbose + run: npm run test -- run --reporter verbose coverage: needs: 'test' runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - name: Install Node - uses: actions/setup-node@v3 + uses: actions/setup-node@v4 with: - node-version: 18 + node-version: 20 - name: Install dependencies - run: yarn install + run: npm install - name: Generate coverage report - run: yarn run coverage + run: npm run coverage - name: Upload coverage reports to Codecov with GitHub Action uses: codecov/codecov-action@v3 diff --git a/.gitignore b/.gitignore index 8e14e3c..fdaf727 100644 --- a/.gitignore +++ b/.gitignore @@ -4,6 +4,6 @@ node_modules dist coverage -yarn.lock +package-lock.json !release.config.js !lambda/*.js diff --git a/package.json b/package.json index 4e786ac..7ccb038 100644 --- a/package.json +++ b/package.json @@ -27,7 +27,7 @@ }, "types": "./index.d.ts", "scripts": { - "build": "yarn clean && tsc --project tsconfig.build.json && yarn copy-files", + "build": "npm run clean && tsc --project tsconfig.build.json && npm run copy-files", "build:doc": "jsdoc2md --files index.ts --configure ./jsdoc2md.json > index.md", "clean": "rimraf dist/", "copy-files": "copyfiles lambda/** package.json README.md LICENSE dist", @@ -37,32 +37,35 @@ "coverage": "vitest run --coverage" }, "devDependencies": { - "@aws-sdk/credential-provider-node": "^3.309.0", - "@aws-sdk/protocol-http": "^3.306.0", - "@aws-sdk/signature-v4": "^3.306.0", - "@babel/cli": "^7.21.0", - "@babel/core": "^7.21.3", - "@babel/preset-env": "^7.20.2", - "@babel/preset-typescript": "^7.21.0", - "@sveltejs/kit": "^1.15.2", - "@types/fs-extra": "^11.0.1", - "@vitest/coverage-c8": "^0.29.7", + "@aws-sdk/credential-provider-node": "^3.576.0", + "@babel/cli": "^7.24.5", + "@babel/core": "^7.24.5", + "@babel/preset-env": "^7.24.5", + "@babel/preset-typescript": "^7.24.1", + "@smithy/protocol-http": "^4.0.0", + "@smithy/signature-v4": "^3.0.0", + "@sveltejs/kit": "^2.5.8", + "@types/fs-extra": "^11.0.4", + "@vitest/coverage-v8": "^1.6.0", "copyfiles": "^2.4.1", "jsdoc-babel": "^0.5.0", - "jsdoc-to-markdown": "^8.0.0", - "prettier": "^2.8.4", - "rimraf": "^4.4.1", - "typescript": "^5.0.2", - "vitest": "^0.29.7" + "jsdoc-to-markdown": "^8.0.1", + "prettier": "^3.2.5", + "rimraf": "^5.0.7", + "typescript": "^5.4.5", + "vitest": "^1.6.0" }, "dependencies": { - "@aws-crypto/sha256-js": "^4.0.0", - "esbuild": "^0.17.10", - "fs-extra": "^11.1.1", - "set-cookie-parser": "^2.5.1" + "@aws-crypto/sha256-js": "^5.2.0", + "esbuild": "^0.21.2", + "fs-extra": "^11.2.0", + "set-cookie-parser": "^2.6.0" }, + "engines": { + "node": ">=18.13" + }, "peerDependencies": { - "@sveltejs/kit": "^1.15.2" + "@sveltejs/kit": "^2.5.8" }, "release": { "branches": [ diff --git a/tsconfig.build.json b/tsconfig.build.json index 3c8f380..ee4e79d 100644 --- a/tsconfig.build.json +++ b/tsconfig.build.json @@ -1,8 +1,8 @@ { "compilerOptions": { - "module": "es2022", + "module": "nodenext", "target": "es2022", - "moduleResolution": "node", + "moduleResolution": "nodenext", "declaration": true, "strict": true, "noImplicitAny": true, @@ -20,7 +20,7 @@ "esModuleInterop": true, "allowSyntheticDefaultImports": true, "allowJs": false, - "typeRoots": ["./node_modules/@types"], + "typeRoots": ["./node_modules/@types", "./node_modules"], "types": ["vitest/globals"], "outDir": "dist" }, diff --git a/tsconfig.json b/tsconfig.json index 8f57756..b2f7930 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -1,8 +1,8 @@ { "compilerOptions": { - "module": "es2022", + "module": "nodenext", "target": "es2022", - "moduleResolution": "node", + "moduleResolution": "nodenext", "declaration": true, "strict": true, "noImplicitAny": true, @@ -20,7 +20,7 @@ "esModuleInterop": true, "allowSyntheticDefaultImports": true, "allowJs": false, - "typeRoots": ["./node_modules/@types"], + "typeRoots": ["./node_modules/@types/", "./node_modules"], "types": ["vitest/globals"] }, "exclude": ["vitest.config.ts", "dist"]