two-stroke 6.0.2 → 6.1.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.
package/package.json CHANGED
@@ -10,25 +10,25 @@
10
10
  "type-check": "./bin/type-check.mjs"
11
11
  },
12
12
  "dependencies": {
13
- "@cloudflare/vitest-pool-workers": "^0.9.3",
14
- "@cloudflare/workers-types": "^4.20250923.0",
15
- "@sentry/cli": "^2.55.0",
16
- "@types/node": "^24.5.2",
17
- "@typescript-eslint/eslint-plugin": "^8.44.1",
18
- "@typescript-eslint/parser": "^8.44.1",
13
+ "@cloudflare/vitest-pool-workers": "^0.9.11",
14
+ "@cloudflare/workers-types": "^4.20251008.0",
15
+ "@sentry/cli": "^2.56.0",
16
+ "@types/node": "^24.7.0",
17
+ "@typescript-eslint/eslint-plugin": "^8.46.0",
18
+ "@typescript-eslint/parser": "^8.46.0",
19
19
  "@vitest/coverage-istanbul": "^3.2.4",
20
20
  "eslint-config-prettier": "^10.1.8",
21
- "eslint-config-two-stroke": "^1.2.10",
21
+ "eslint-config-two-stroke": "^1.2.12",
22
22
  "eslint-config-typescript": "^3.0.0",
23
23
  "jose": "^6.1.0",
24
24
  "jwk-subtle": "^1.0.7",
25
25
  "mime": "^4.1.0",
26
- "miniflare": "^4.20250917.0",
27
- "openapi-fetch": "^0.14.0",
26
+ "miniflare": "^4.20251004.0",
27
+ "openapi-fetch": "^0.14.1",
28
28
  "openapi-typescript": "^7.9.1",
29
29
  "pbkdf-subtle": "^1.0.0",
30
30
  "toucan-js": "^4.1.1",
31
- "zod": "^4.1.11"
31
+ "zod": "^4.1.12"
32
32
  },
33
33
  "peerDependencies": {
34
34
  "@sentry/cli": ">=2",
@@ -52,12 +52,12 @@
52
52
  "name": "two-stroke",
53
53
  "packageManager": "yarn@4.6.0",
54
54
  "type": "module",
55
- "version": "6.0.2",
55
+ "version": "6.1.1",
56
56
  "devDependencies": {
57
57
  "@types/eslint": "^9.6.1",
58
- "eslint": "^9.36.0",
58
+ "eslint": "^9.37.0",
59
59
  "prettier": "^3.6.2",
60
- "typescript": "^5.9.2",
60
+ "typescript": "^5.9.3",
61
61
  "vitest": "^3.2.4"
62
62
  }
63
63
  }
package/src/index.ts CHANGED
@@ -145,6 +145,7 @@ export function twoStroke<T extends Env>(
145
145
  params,
146
146
  searchParams: new URL(req.url).searchParams,
147
147
  sentry,
148
+ waitUntil: (p: Promise<void>) => context.waitUntil(p),
148
149
  });
149
150
  else {
150
151
  console.error({
@@ -174,6 +175,7 @@ export function twoStroke<T extends Env>(
174
175
  params,
175
176
  searchParams: new URL(req.url).searchParams,
176
177
  sentry,
178
+ waitUntil: (p: Promise<void>) => context.waitUntil(p),
177
179
  });
178
180
  }
179
181
  if (response.status === undefined || response.status === 200) {
package/src/types.ts CHANGED
@@ -58,6 +58,7 @@ export type Handler<
58
58
  searchParams: URLSearchParams;
59
59
  claims: A;
60
60
  sentry: Toucan;
61
+ waitUntil: (p: Promise<void>) => void;
61
62
  }) => Promise<
62
63
  | {
63
64
  body: z.infer<O>;