Skip to content

Commit d023d1e

Browse files
committed
feat: rewrite around HttpOnly server sessions
1 parent b4a93fb commit d023d1e

142 files changed

Lines changed: 5286 additions & 10215 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.DS_Store

-8 KB
Binary file not shown.

.eslintignore

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
# The example apps carry their own eslint configs and their own node_modules.
2+
# Linting them from the library root fails on configs that aren't installed here.
3+
examples/
4+
5+
dist/
6+
node_modules/

.eslintrc.json

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,9 @@
11
{
2+
"root": true,
3+
"ignorePatterns": [
4+
"dist/",
5+
"examples/"
6+
],
27
"env": {
38
"browser": true,
49
"es2021": true,
@@ -7,6 +12,7 @@
712
"extends": [
813
"eslint:recommended",
914
"plugin:react/recommended",
15+
"plugin:react-hooks/recommended",
1016
"plugin:@typescript-eslint/recommended"
1117
],
1218
"parser": "@typescript-eslint/parser",
@@ -19,6 +25,7 @@
1925
},
2026
"plugins": [
2127
"react",
28+
"react-hooks",
2229
"@typescript-eslint"
2330
],
2431
"settings": {

.github/workflows/ci.yml

Lines changed: 19 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -2,35 +2,34 @@ name: CI
22
on:
33
push:
44
branches:
5+
# `main` must stay here: release.yml is gated on a successful CI run for
6+
# main, so dropping it would leave releases unable to ever fire.
57
- main
8+
- dev
69
pull_request:
710

811
jobs:
9-
lint:
12+
verify:
1013
runs-on: ubuntu-latest
1114
steps:
1215
- uses: actions/checkout@v4
13-
- uses: pnpm/action-setup@v2
14-
with:
15-
version: 9
16+
# No `version:` — action-setup reads the `packageManager` field in
17+
# package.json, so CI cannot drift from the lockfile's pnpm major.
18+
- uses: pnpm/action-setup@v4
1619
- uses: actions/setup-node@v4
1720
with:
18-
node-version: 18
21+
node-version: 22
1922
cache: 'pnpm'
2023
- run: pnpm install --frozen-lockfile
21-
- run: pnpm lint
22-
# - run: pnpm tsc --noEmit # Uncomment when strict mode is fully clean
2324

24-
test:
25-
runs-on: ubuntu-latest
26-
steps:
27-
- uses: actions/checkout@v4
28-
- uses: pnpm/action-setup@v2
29-
with:
30-
version: 9
31-
- uses: actions/setup-node@v4
32-
with:
33-
node-version: 18
34-
cache: 'pnpm'
35-
- run: pnpm install --frozen-lockfile
36-
- run: pnpm test
25+
- name: Lint
26+
run: pnpm lint
27+
28+
- name: Typecheck
29+
run: pnpm typecheck
30+
31+
- name: Unit tests
32+
run: pnpm test:unit
33+
34+
- name: Build
35+
run: pnpm build

.github/workflows/release.yml

Lines changed: 14 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,12 @@
11
name: Release
2+
3+
# Gated on CI. `needs:` only works inside a single workflow, so this waits for
4+
# the CI run on main to finish and refuses to publish unless it went green.
25
on:
3-
push:
6+
workflow_run:
7+
workflows: ['CI']
8+
types:
9+
- completed
410
branches:
511
- main
612

@@ -12,21 +18,24 @@ permissions:
1218

1319
jobs:
1420
release:
21+
if: github.event.workflow_run.conclusion == 'success'
1522
runs-on: ubuntu-latest
1623
steps:
1724
- uses: actions/checkout@v4
1825
with:
1926
fetch-depth: 0
20-
- uses: pnpm/action-setup@v2
21-
with:
22-
version: 9
27+
ref: main
28+
- uses: pnpm/action-setup@v4
2329
- uses: actions/setup-node@v4
2430
with:
25-
node-version: 18
31+
node-version: 22
2632
registry-url: 'https://registry.npmjs.org'
33+
cache: 'pnpm'
2734
- run: pnpm install --frozen-lockfile
2835
- run: git config --global user.name "github-actions[bot]"
2936
- run: git config --global user.email "github-actions[bot]@users.noreply.github.com"
37+
# `prepublishOnly` re-runs lint, typecheck, tests and build before the
38+
# tarball is uploaded, so a broken tree cannot reach npm.
3039
- run: pnpm release-it --ci
3140
env:
3241
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

.gitignore

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,18 @@
1-
npm-debug.log
1+
# dependencies
22
node_modules
3+
4+
# build output
35
build/*
46
dist
7+
8+
# caches
9+
.jest-cache
10+
*.tsbuildinfo
11+
12+
# logs
13+
npm-debug.log
14+
yarn-error.log
15+
*.log
16+
17+
# os / editor
18+
.DS_Store

.jest-cache/jest-transform-cache-035ab3f27a3c3d5379cf62831f4255ef-79ef2876fae7ca75eedb2aa53dc48338/09/AuthProvider_09ea2a3c9fd28d0898a28f3c958da2e4

Lines changed: 0 additions & 88 deletions
This file was deleted.

.jest-cache/jest-transform-cache-035ab3f27a3c3d5379cf62831f4255ef-79ef2876fae7ca75eedb2aa53dc48338/09/AuthProvider_09ea2a3c9fd28d0898a28f3c958da2e4.map

Lines changed: 0 additions & 1 deletion
This file was deleted.

0 commit comments

Comments
 (0)