oauth.do 0.2.3 → 0.2.4

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
@@ -1,8 +1,9 @@
1
1
  {
2
2
  "name": "oauth.do",
3
- "version": "0.2.3",
3
+ "version": "0.2.4",
4
4
  "description": "OAuth authentication SDK, React components, and Hono middleware for org.ai identity",
5
5
  "type": "module",
6
+ "sideEffects": false,
6
7
  "main": "./dist/index.js",
7
8
  "types": "./dist/index.d.ts",
8
9
  "bin": {
@@ -42,6 +43,12 @@
42
43
  "types": "./dist/session.d.ts",
43
44
  "import": "./dist/session.js"
44
45
  },
46
+ "./itty": {
47
+ "types": "./dist/itty.d.ts",
48
+ "import": "./dist/itty.js",
49
+ "require": "./dist/itty.js",
50
+ "default": "./dist/itty.js"
51
+ },
45
52
  "./mdx/*": "./src/mdx/*"
46
53
  },
47
54
  "files": [
@@ -51,14 +58,6 @@
51
58
  "README.md",
52
59
  "LICENSE"
53
60
  ],
54
- "scripts": {
55
- "build": "tsup",
56
- "dev": "tsup --watch",
57
- "test": "vitest run",
58
- "test:watch": "vitest",
59
- "check:publish": "node -e \"const pkg = require('./package.json'); const deps = JSON.stringify(pkg.dependencies || {}); if (deps.includes('workspace:')) { console.error('ERROR: workspace: protocol found in dependencies. Replace with actual versions before publishing.'); process.exit(1); }\"",
60
- "prepublishOnly": "pnpm check:publish && pnpm build && pnpm test"
61
- },
62
61
  "keywords": [
63
62
  "oauth",
64
63
  "authentication",
@@ -95,51 +94,30 @@
95
94
  "keytar": "^7.9.0"
96
95
  },
97
96
  "peerDependencies": {
98
- "@radix-ui/themes": ">=3.0.0",
99
- "@tanstack/react-query": ">=5.0.0",
100
- "@workos-inc/authkit-react": ">=0.5.0",
101
- "@workos-inc/widgets": ">=1.0.0",
102
97
  "hono": ">=4.0.0",
103
- "jose": ">=5.0.0",
104
- "react": ">=18.0.0",
105
- "react-dom": ">=18.0.0"
98
+ "itty-router": ">=5.0.0",
99
+ "jose": ">=5.0.0"
106
100
  },
107
101
  "peerDependenciesMeta": {
108
- "@radix-ui/themes": {
109
- "optional": true
110
- },
111
- "@tanstack/react-query": {
112
- "optional": true
113
- },
114
- "@workos-inc/authkit-react": {
115
- "optional": true
116
- },
117
- "@workos-inc/widgets": {
118
- "optional": true
119
- },
120
102
  "hono": {
121
103
  "optional": true
122
104
  },
123
- "jose": {
124
- "optional": true
125
- },
126
- "react": {
105
+ "itty-router": {
127
106
  "optional": true
128
107
  },
129
- "react-dom": {
108
+ "jose": {
130
109
  "optional": true
131
110
  }
132
111
  },
133
112
  "devDependencies": {
134
113
  "@radix-ui/themes": "^3.0.0",
135
114
  "@tanstack/react-query": "^5.0.0",
115
+ "@testing-library/dom": "^10.0.0",
136
116
  "@testing-library/jest-dom": "^6.9.1",
137
117
  "@testing-library/react": "^16.3.2",
138
118
  "@types/node": "^24.10.1",
139
119
  "@types/react": "^18.2.0",
140
120
  "@types/react-dom": "^18.2.0",
141
- "@workos-inc/authkit-react": "^0.16.0",
142
- "@workos-inc/widgets": "^1.0.0",
143
121
  "hono": "^4.0.0",
144
122
  "jose": "^5.0.0",
145
123
  "jsdom": "^27.4.0",
@@ -148,5 +126,12 @@
148
126
  "tsup": "^8.0.0",
149
127
  "typescript": "^5.5.2",
150
128
  "vitest": "^2.1.8"
129
+ },
130
+ "scripts": {
131
+ "build": "tsup",
132
+ "dev": "tsup --watch",
133
+ "test": "vitest run",
134
+ "test:watch": "vitest",
135
+ "check:publish": "node -e \"const pkg = require('./package.json'); const deps = JSON.stringify(pkg.dependencies || {}); if (deps.includes('workspace:')) { console.error('ERROR: workspace: protocol found in dependencies. Replace with actual versions before publishing.'); process.exit(1); }\""
151
136
  }
152
- }
137
+ }