Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/canary.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ jobs:
fetch-depth: 0
- uses: actions/setup-node@v6
with:
node-version: 22
node-version: 24
cache: 'npm'
registry-url: 'https://registry.npmjs.org'
- run: npm install -g npm@latest
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ jobs:
- uses: actions/checkout@v6
- uses: actions/setup-node@v6
with:
node-version: 22
node-version: 24
cache: 'npm'
- run: npm ci
- run: npx playwright install --with-deps chromium
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ jobs:
- uses: actions/checkout@v6
- uses: actions/setup-node@v6
with:
node-version: 22
node-version: 24
cache: 'npm'
- run: npm ci
- run: npm run build
Expand Down
2 changes: 1 addition & 1 deletion .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -1 +1 @@
prettier --check $(git diff --cached --name-only --diff-filter=ACMR)
prettier --check --ignore-unknown $(git diff --cached --name-only --diff-filter=ACMR)
1 change: 1 addition & 0 deletions .nvmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
24
14 changes: 6 additions & 8 deletions api/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,25 +32,23 @@
},
"scripts": {
"watch": "tsc --watch",
"prebuild": "rimraf dist",
"prebuild": "rm -rf dist",
"build": "tsc",
"pretest": "rimraf dist-test && tsc -p tsconfig.test.json",
"pretest": "rm -rf dist-test && tsc -p tsconfig.test.json",
"test": "node --test dist-test/tests/*.test.js"
},
"devDependencies": {
"@tsconfig/node18": "^18.2.2",
"@types/cookie": "^0.6.0",
"@types/node": "^18.19.0",
"rimraf": "^5.0.1",
"typescript": "^5.2.2"
"@tsconfig/node18": "^18.2.7",
"@types/node": "^24.0.0",
"typescript": "^6.0.3"
},
"engines": {
"node": ">=18"
},
"dependencies": {
"@hellocoop/definitions": "^1.0.13",
"@hellocoop/helper-server": "^2.2.5",
"cookie": "^1.0.1",
"cookie": "^1.1.1",
"jose": "^5.10.0"
},
"gitHead": "2708ae6a0cf0cb970bed968ab62955e639c9e897"
Expand Down
1 change: 1 addition & 0 deletions api/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
"include": ["src/**/*.ts"],
"compilerOptions": {
"forceConsistentCasingInFileNames": true,
"types": ["node"],
"resolveJsonModule": true,
"declarationMap": true,
"declaration": true,
Expand Down
27 changes: 15 additions & 12 deletions better-auth/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -40,28 +40,31 @@
"test": "vitest --run",
"test:watch": "vitest --watch",
"watch": "tsc --watch --declaration",
"prebuild": "rimraf dist",
"prebuild": "rm -rf dist",
"build": "tsc --declaration"
},
"peerDependencies": {
"better-auth": "^1.0.0",
"react": "^18.0.0 || ^19.0.0"
},
"devDependencies": {
"@tsconfig/node18": "^18.2.2",
"@types/node": "*",
"@types/react": "^18.0.0",
"better-auth": "^1.5.6",
"react": "^18.0.0",
"rimraf": "^5.0.1",
"typescript": "^5.2.2",
"vitest": "^4.0.0"
"@tsconfig/node18": "^18.2.7",
"@types/node": "^24.0.0",
"@types/react": "^19.2.18",
"better-auth": "^1.7.3",
"react": "^19.2.8",
"typescript": "^6.0.3",
"vitest": "^4.1.11"
},
"engines": {
"node": ">=18"
},
"gitHead": "8fd9702d71dffa88f965cbdee29349395496b49b",
"dependencies": {
"@hellocoop/definitions": "^1.0.13"
},
"gitHead": "8fd9702d71dffa88f965cbdee29349395496b49b"
"@better-auth/core": "^1.7.3",
"@better-fetch/fetch": "^1.3.1",
"better-call": "^1.4.0",
"jose": "^6.2.3",
"zod": "^4.5.4"
}
}
7 changes: 2 additions & 5 deletions better-auth/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -627,11 +627,8 @@ export const hellocoop = (options: GenericOAuthOptions) => {
},
}

const { state, codeVerifier } = await generateState(
modifiedCtx,
undefined,
undefined,
)
const { state, codeVerifier } =
await generateState(modifiedCtx)
const authUrl = await createAuthorizationURL({
id: 'hellocoop',
options: {
Expand Down
5 changes: 3 additions & 2 deletions better-auth/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,11 @@
"declaration": true,
"rootDir": "./src",
"target": "ES2022",
"strict": true,
"outDir": "./dist",
"module": "CommonJS",
"moduleResolution": "node",
"ignoreDeprecations": "6.0",
"strict": true,
"outDir": "./dist",
"jsx": "react",
"lib": ["ES2022", "DOM"]
}
Expand Down
9 changes: 5 additions & 4 deletions definitions/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,14 +32,15 @@
},
"scripts": {
"watch": "tsc --watch --declaration",
"prebuild": "rimraf dist node_modules",
"prebuild": "rm -rf dist node_modules",
"build": "tsc --declaration"
},
"engines": {
"node": ">=18"
},
"gitHead": "96cc2f3fa1a3724a4a96b19cc7c5d97f04cc49f8",
"devDependencies": {
"rimraf": "^5.0.1"
},
"gitHead": "96cc2f3fa1a3724a4a96b19cc7c5d97f04cc49f8"
"@tsconfig/node18": "^18.2.7",
"typescript": "^6.0.3"
}
}
2 changes: 1 addition & 1 deletion definitions/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"compilerOptions": {
"declarationMap": true,
"declaration": true,
"baseUrl": "./src/",
"rootDir": "./src",
"lib": ["dom", "dom.iterable", "esnext"],
"target": "es2019",
"jsx": "react",
Expand Down
15 changes: 7 additions & 8 deletions email-verification/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -49,27 +49,26 @@
"test": "vitest --run",
"test:watch": "vitest --watch",
"build": "npm run build:clean && npm run build:cjs && npm run build:esm && npm run build:types",
"build:clean": "rimraf dist",
"build:clean": "rm -rf dist",
"build:cjs": "tsc -p tsconfig.cjs.json && node scripts/fixup-dist.cjs",
"build:esm": "tsc -p tsconfig.esm.json",
"build:types": "tsc -p tsconfig.types.json",
"watch": "tsc --watch",
"prebuild": "rimraf dist"
"prebuild": "rm -rf dist"
},
"type": "module",
"engines": {
"node": ">=20"
},
"dependencies": {
"@hellocoop/httpsig": "^2.3.0",
"jose": "^5.0.0"
"jose": "^5.10.0"
},
"devDependencies": {
"@tsconfig/node18": "^18.2.2",
"@types/node": "^20.0.0",
"rimraf": "^5.0.5",
"typescript": "^5.0.0",
"vitest": "^4.0.0"
"@tsconfig/node18": "^18.2.7",
"@types/node": "^24.0.0",
"typescript": "^6.0.3",
"vitest": "^4.1.11"
},
"gitHead": "2708ae6a0cf0cb970bed968ab62955e639c9e897"
}
2 changes: 2 additions & 0 deletions email-verification/tsconfig.cjs.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@
"extends": "./tsconfig.json",
"compilerOptions": {
"module": "CommonJS",
"moduleResolution": "node",
"ignoreDeprecations": "6.0",
"outDir": "./dist/cjs",
"declaration": false,
"declarationMap": false
Expand Down
2 changes: 1 addition & 1 deletion email-verification/tsconfig.esm.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"extends": "./tsconfig.json",
"compilerOptions": {
"module": "ESNext",
"module": "NodeNext",
"outDir": "./dist/esm",
"declaration": false,
"declarationMap": false
Expand Down
5 changes: 3 additions & 2 deletions email-verification/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
"extends": "@tsconfig/node18/tsconfig.json",
"compilerOptions": {
"target": "ES2022",
"module": "ESNext",
"moduleResolution": "node",
"module": "NodeNext",
"moduleResolution": "NodeNext",
"declaration": true,
"declarationMap": true,
"sourceMap": true,
Expand All @@ -14,6 +14,7 @@
"skipLibCheck": true,
"forceConsistentCasingInFileNames": true,
"resolveJsonModule": true,
"types": ["node"],
"allowSyntheticDefaultImports": true
},
"include": ["src/**/*"],
Expand Down
7 changes: 7 additions & 0 deletions eslint.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,13 @@ export default [
},
},
},
{
// .cjs files are CommonJS by definition; require() is the only option
files: ['**/*.cjs'],
rules: {
'@typescript-eslint/no-require-imports': 'off',
},
},
{
rules: {
'@typescript-eslint/no-explicit-any': 'off', // allow typescript "any" type
Expand Down
File renamed without changes.
22 changes: 9 additions & 13 deletions express/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,32 +36,28 @@
"scripts": {
"test": "npm run build && npx playwright test --reporter=line",
"watch": "tsc --watch --declaration",
"prebuild": "rimraf dist node_modules",
"prebuild": "rm -rf dist node_modules",
"build": "tsc --declaration"
},
"peerDependencies": {
"express": "^4 ||^5"
},
"devDependencies": {
"@playwright/test": "^1.42.1",
"@tsconfig/node18": "^18.2.2",
"@types/cookie": "^0.6.0",
"@types/express": "^5.0.1",
"@types/node": "*",
"express": "^5.1.0",
"rimraf": "^5.0.1",
"typescript": "^5.2.2"
"@playwright/test": "^1.63.0",
"@tsconfig/node18": "^18.2.7",
"@types/express": "^5.0.6",
"@types/node": "^24.0.0",
"dotenv": "^17.4.2",
"express": "^5.2.1",
"typescript": "^6.0.3"
},
"engines": {
"node": ">=18"
},
"dependencies": {
"@hellocoop/api": "^2.6.0",
"@hellocoop/definitions": "^1.0.13",
"@hellocoop/helper-server": "^2.2.5",
"cookie": "^1.0.1",
"cors": "^2.8.5",
"dotenv": "^16.3.1"
"cookie": "^1.1.1"
},
"gitHead": "2708ae6a0cf0cb970bed968ab62955e639c9e897"
}
2 changes: 1 addition & 1 deletion express/playwright.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ export default defineConfig({
/* Run your local dev server before starting the tests */
webServer: [
{
command: 'cd app && node express.js',
command: 'cd app && node express.mjs',
url: 'http://127.0.0.1:3000',
// stdout: 'pipe',
timeout: 10000,
Expand Down
3 changes: 1 addition & 2 deletions express/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@
"target": "ES2022",
"strict": true,
"outDir": "./dist",
"module": "CommonJS", // Use CommonJS for module system
"moduleResolution": "node" // Set moduleResolution to "node" for compatibility with Node.js 18
"types": ["node"]
}
}
16 changes: 8 additions & 8 deletions fastify/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
},
"scripts": {
"watch": "tsc --watch --declaration",
"prebuild": "rimraf dist node_modules",
"prebuild": "rm -rf dist node_modules",
"build": "tsc --declaration",
"test": "npm run build && docker compose -f ./spec/docker-compose.yml up --build --abort-on-container-exit",
"test:debug": "npm run build && docker compose -f ./spec/docker-compose.yml -f ./spec/docker-compose.debug.yml up --build --abort-on-container-exit",
Expand All @@ -46,19 +46,19 @@
"fastify": "^4 || ^5"
},
"devDependencies": {
"@tsconfig/node18": "^18.2.2",
"fastify": "^5.3.0",
"rimraf": "^5.0.1",
"typescript": "^5.2.2"
"@tsconfig/node18": "^18.2.7",
"fastify": "^5.12.3",
"typescript": "^6.0.3"
},
"engines": {
"node": ">=18"
},
"dependencies": {
"@fastify/formbody": "^8.0.2",
"@fastify/formbody": "^9.0.0",
"@hellocoop/api": "^2.6.0",
"dotenv": "^16.3.1",
"fastify-plugin": "^5.0.1"
"@hellocoop/definitions": "^1.0.13",
"cookie": "^1.1.1",
"fastify-plugin": "^6.0.0"
},
"gitHead": "2708ae6a0cf0cb970bed968ab62955e639c9e897"
}
2 changes: 1 addition & 1 deletion fastify/spec/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ services:
ISSUER: 'http://mockin:3333'

fastify-client:
image: node:18-alpine
image: node:24-alpine
depends_on:
- mockin
networks:
Expand Down
8 changes: 4 additions & 4 deletions helper/browser/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
],
"scripts": {
"watch": "tsc --watch --declaration",
"prebuild": "rimraf dist",
"prebuild": "rm -rf dist",
"build": "esbuild ../src/browser/index.ts --bundle --outdir=dist --format=esm && tsc --emitDeclarationOnly --outDir dist",
"test": "node --test"
},
Expand All @@ -35,9 +35,9 @@
},
"homepage": "https://www.hello.dev/docs/sdks/helper/",
"devDependencies": {
"esbuild": "^0.19.5",
"rimraf": "^5.0.5",
"typescript": "^5.2.2"
"@tsconfig/node18": "^18.2.7",
"esbuild": "^0.28.2",
"typescript": "^6.0.3"
},
"dependencies": {
"@hellocoop/definitions": "^1.0.13"
Expand Down
2 changes: 1 addition & 1 deletion helper/browser/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"compilerOptions": {
"lib": ["dom"],
"declaration": true,
"baseUrl": "../",
"rootDir": "../src",
"target": "es2019",
"strict": true,
"outDir": "./dist"
Expand Down
Loading