two-stroke 6.2.4 → 6.3.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,12 @@
1
+ runs:
2
+ using: "composite"
3
+ steps:
4
+ - uses: actions/setup-node@v4
5
+ with:
6
+ node-version: "24"
7
+
8
+ - run: corepack enable
9
+ shell: bash
10
+
11
+ - run: pnpm install
12
+ shell: bash
@@ -0,0 +1,14 @@
1
+ # Autogenerated by https://github.com/change-engine/ecu/github
2
+ version: 2
3
+ updates:
4
+ - package-ecosystem: "github-actions"
5
+ directory: "/"
6
+ schedule:
7
+ interval: "daily"
8
+ time: "05:57"
9
+
10
+ - package-ecosystem: "npm"
11
+ directory: "/"
12
+ schedule:
13
+ interval: "daily"
14
+ time: "05:57"
@@ -0,0 +1,20 @@
1
+ name: CI
2
+
3
+ on: [push]
4
+
5
+ permissions:
6
+ contents: read
7
+
8
+ defaults:
9
+ run:
10
+ shell: bash
11
+
12
+ jobs:
13
+ ci:
14
+ runs-on: ubuntu-latest
15
+ steps:
16
+ - uses: actions/checkout@v6
17
+
18
+ - uses: ./.github/actions/install
19
+
20
+ - run: pnpm eslint
@@ -0,0 +1,32 @@
1
+ # Autogenerated by https://github.com/change-engine/ecu/github
2
+
3
+ name: Dependabot auto-approve
4
+ on:
5
+ pull_request_target:
6
+ types: [opened]
7
+
8
+ permissions:
9
+ pull-requests: write
10
+ contents: write
11
+
12
+ jobs:
13
+ dependabot:
14
+ runs-on: ubuntu-slim
15
+ if: ${{ github.actor == 'dependabot[bot]' }}
16
+ steps:
17
+ - name: Dependabot metadata
18
+ id: metadata
19
+ uses: dependabot/fetch-metadata@v2.4.0
20
+ with:
21
+ github-token: "${{ secrets.GITHUB_TOKEN }}"
22
+ - name: Approve a PR
23
+ if: ${{steps.metadata.outputs.update-type != 'version-update:semver-major'}}
24
+ run: gh pr review --approve "$PR_URL"
25
+ env:
26
+ PR_URL: ${{github.event.pull_request.html_url}}
27
+ GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
28
+ - name: Enable auto-merge for Dependabot PRs
29
+ run: gh pr merge --auto --merge "$PR_URL"
30
+ env:
31
+ PR_URL: ${{github.event.pull_request.html_url}}
32
+ GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
@@ -0,0 +1,25 @@
1
+ name: Release
2
+
3
+ on:
4
+ push:
5
+ tags:
6
+ - "v*"
7
+
8
+ permissions:
9
+ contents: read
10
+
11
+ defaults:
12
+ run:
13
+ shell: bash
14
+
15
+ jobs:
16
+ ci:
17
+ runs-on: ubuntu-latest
18
+ steps:
19
+ - uses: actions/checkout@v6
20
+
21
+ - uses: ./.github/actions/install
22
+
23
+ - run: pnpm publish --no-git-checks
24
+ env:
25
+ "npm_config_//registry.npmjs.org/:_authToken": ${{ secrets.NPM_AUTH_TOKEN }}
package/package.json CHANGED
@@ -10,23 +10,23 @@
10
10
  "type-check": "./bin/type-check.mjs"
11
11
  },
12
12
  "dependencies": {
13
- "@cloudflare/vitest-pool-workers": "^0.10.10",
14
- "@cloudflare/workers-types": "^4.20251125.0",
13
+ "@cloudflare/vitest-pool-workers": "^0.10.12",
14
+ "@cloudflare/workers-types": "^4.20251202.0",
15
15
  "@sentry/cli": "^2.58.2",
16
16
  "@types/node": "^24.10.1",
17
- "@typescript-eslint/eslint-plugin": "^8.48.0",
18
- "@typescript-eslint/parser": "^8.48.0",
19
- "@vitest/coverage-istanbul": "^4.0.13",
17
+ "@typescript-eslint/eslint-plugin": "^8.48.1",
18
+ "@typescript-eslint/parser": "^8.48.1",
19
+ "@vitest/coverage-istanbul": "^4.0.15",
20
20
  "eslint-config-prettier": "^10.1.8",
21
21
  "eslint-config-two-stroke": "^1.2.16",
22
22
  "eslint-config-typescript": "^3.0.0",
23
- "jose": "^6.1.2",
24
- "jwk-subtle": "^1.0.7",
23
+ "jose": "^6.1.3",
24
+ "jwk-subtle": "^1.1.3",
25
25
  "mime": "^4.1.0",
26
- "miniflare": "^4.20251118.1",
26
+ "miniflare": "^4.20251128.0",
27
27
  "openapi-fetch": "^0.15.0",
28
28
  "openapi-typescript": "^7.10.1",
29
- "pbkdf-subtle": "^1.0.0",
29
+ "pbkdf-subtle": "^1.1.4",
30
30
  "toucan-js": "^4.1.1",
31
31
  "zod": "^4.1.13"
32
32
  },
@@ -40,7 +40,7 @@
40
40
  },
41
41
  "description": "Simple Cloudflare Worker framework.",
42
42
  "engines": {
43
- "node": "^22.16.0"
43
+ "node": "^24.9.0"
44
44
  },
45
45
  "eslintConfig": {
46
46
  "extends": [
@@ -50,14 +50,17 @@
50
50
  "license": "MIT",
51
51
  "main": "src/index.ts",
52
52
  "name": "two-stroke",
53
- "packageManager": "yarn@4.6.0",
53
+ "prettier": {
54
+ "printWidth": 100
55
+ },
54
56
  "type": "module",
55
- "version": "6.2.4",
57
+ "version": "6.3.1",
56
58
  "devDependencies": {
57
59
  "@types/eslint": "^9.6.1",
58
60
  "eslint": "^9.39.1",
59
- "prettier": "^3.6.2",
61
+ "prettier": "^3.7.4",
60
62
  "typescript": "^5.9.3",
61
- "vitest": "<4"
63
+ "vite": "^7.2.6",
64
+ "vitest": "^3.2.4"
62
65
  }
63
66
  }
package/src/types.ts CHANGED
@@ -41,7 +41,8 @@ export type Route<T extends Env, A> =
41
41
 
42
42
  export type ExtractParameterNames<S extends string> =
43
43
  S extends `${string}{${infer Name}}${infer Rest}`
44
- ? Record<Name, string> & ExtractParameterNames<Rest>
44
+ ?
45
+ Record<Name, string> & ExtractParameterNames<Rest>
45
46
  : Record<string, string>;
46
47
 
47
48
  export type Handler<