singularity-core 0.6.0 → 0.14.0

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,138 +1,150 @@
1
1
  {
2
- "name": "singularity-core",
3
- "version": "0.6.0",
4
- "description": "Shared non-UI code for Singularity TanStack Start apps: auth sessions, API client middleware, API schemas, paging, route data, images, formatting, theme, SEO, security headers and telemetry.",
5
- "type": "module",
6
- "author": "Filip",
7
- "license": "MIT",
8
- "files": [
9
- "dist"
10
- ],
11
- "sideEffects": false,
12
- "packageManager": "pnpm@12.3.4",
13
- "engines": {
14
- "node": ">=25.0.0 <26.0.0",
15
- "pnpm": ">=12.0.0 <13.0.0"
16
- },
17
- "exports": {
18
- "./auth": {
19
- "types": "./dist/auth/index.d.ts",
20
- "import": "./dist/auth/index.js"
21
- },
22
- "./auth/server": {
23
- "types": "./dist/auth/server.d.ts",
24
- "import": "./dist/auth/server.js"
25
- },
26
- "./api": {
27
- "types": "./dist/api/index.d.ts",
28
- "import": "./dist/api/index.js"
29
- },
30
- "./api/server": {
31
- "types": "./dist/api/server.d.ts",
32
- "import": "./dist/api/server.js"
33
- },
34
- "./paging": {
35
- "types": "./dist/paging/index.d.ts",
36
- "import": "./dist/paging/index.js"
37
- },
38
- "./paging/react": {
39
- "types": "./dist/paging/react.d.ts",
40
- "import": "./dist/paging/react.js"
41
- },
42
- "./router/react": {
43
- "types": "./dist/router/react.d.ts",
44
- "import": "./dist/router/react.js"
45
- },
46
- "./theme": {
47
- "types": "./dist/theme/index.d.ts",
48
- "import": "./dist/theme/index.js"
49
- },
50
- "./theme/server": {
51
- "types": "./dist/theme/server.d.ts",
52
- "import": "./dist/theme/server.js"
53
- },
54
- "./theme/react": {
55
- "types": "./dist/theme/react.d.ts",
56
- "import": "./dist/theme/react.js"
57
- },
58
- "./schema": {
59
- "types": "./dist/schema/index.d.ts",
60
- "import": "./dist/schema/index.js"
61
- },
62
- "./seo": {
63
- "types": "./dist/seo/index.d.ts",
64
- "import": "./dist/seo/index.js"
65
- },
66
- "./security": {
67
- "types": "./dist/security/index.d.ts",
68
- "import": "./dist/security/index.js"
69
- },
70
- "./telemetry": {
71
- "types": "./dist/telemetry/index.d.ts",
72
- "import": "./dist/telemetry/index.js"
73
- },
74
- "./images": {
75
- "types": "./dist/images/index.d.ts",
76
- "import": "./dist/images/index.js"
77
- },
78
- "./format": {
79
- "types": "./dist/format/index.d.ts",
80
- "import": "./dist/format/index.js"
81
- },
82
- "./http": {
83
- "types": "./dist/http/index.d.ts",
84
- "import": "./dist/http/index.js"
85
- }
86
- },
87
- "scripts": {
88
- "build": "tsc -p tsconfig.build.json",
89
- "typecheck": "tsc --noEmit",
90
- "test": "vitest run",
91
- "test:watch": "vitest",
92
- "openapi-dev-types": "openapi-typescript http://localhost:5268/swagger/v1/swagger.json -o ./src/api/v1.ts --alphabetize --default-non-nullable --enum-values",
93
- "prepack": "pnpm build",
94
- "biome:check": "biome check --write",
95
- "biome:lint": "biome lint --fix",
96
- "biome:format": "biome format --write"
97
- },
98
- "peerDependencies": {
99
- "@tanstack/react-router": "^1.170.0",
100
- "@tanstack/react-start": "^1.168.0",
101
- "jose": "^6.0.0",
102
- "openapi-fetch": "^0.17.0",
103
- "react": "^19.0.0",
104
- "zod": "^4.0.0"
105
- },
106
- "peerDependenciesMeta": {
107
- "@tanstack/react-router": {
108
- "optional": true
109
- },
110
- "@tanstack/react-start": {
111
- "optional": true
112
- },
113
- "jose": {
114
- "optional": true
115
- },
116
- "openapi-fetch": {
117
- "optional": true
118
- },
119
- "react": {
120
- "optional": true
121
- }
122
- },
123
- "devDependencies": {
124
- "@biomejs/biome": "2.5.15",
125
- "@tanstack/react-router": "1.170.42",
126
- "@tanstack/react-start": "1.168.61",
127
- "@types/node": "25.9.5",
128
- "@types/react": "19.3.0",
129
- "jose": "6.2.12",
130
- "openapi-fetch": "0.17.0",
131
- "openapi-typescript": "7.13.0",
132
- "react": "19.3.0",
133
- "react-dom": "19.3.0",
134
- "typescript": "6.0.3",
135
- "vitest": "5.0.3",
136
- "zod": "4.6.5"
137
- }
2
+ "name": "singularity-core",
3
+ "version": "0.14.0",
4
+ "description": "Shared non-UI code for Singularity TanStack Start apps: auth sessions, API client middleware, API schemas, paging, route data, images, formatting, HTTP helpers, theme, cookie notice, SEO, security headers and telemetry.",
5
+ "type": "module",
6
+ "author": "Filip",
7
+ "license": "MIT",
8
+ "files": [
9
+ "dist",
10
+ "config"
11
+ ],
12
+ "sideEffects": false,
13
+ "packageManager": "pnpm@12.3.4",
14
+ "engines": {
15
+ "node": ">=26.0.0 <27.0.0",
16
+ "pnpm": ">=12.0.0 <13.0.0"
17
+ },
18
+ "exports": {
19
+ "./auth": {
20
+ "types": "./dist/auth/index.d.ts",
21
+ "import": "./dist/auth/index.js"
22
+ },
23
+ "./auth/server": {
24
+ "types": "./dist/auth/server.d.ts",
25
+ "import": "./dist/auth/server.js"
26
+ },
27
+ "./api": {
28
+ "types": "./dist/api/index.d.ts",
29
+ "import": "./dist/api/index.js"
30
+ },
31
+ "./api/server": {
32
+ "types": "./dist/api/server.d.ts",
33
+ "import": "./dist/api/server.js"
34
+ },
35
+ "./paging": {
36
+ "types": "./dist/paging/index.d.ts",
37
+ "import": "./dist/paging/index.js"
38
+ },
39
+ "./paging/react": {
40
+ "types": "./dist/paging/react.d.ts",
41
+ "import": "./dist/paging/react.js"
42
+ },
43
+ "./router/react": {
44
+ "types": "./dist/router/react.d.ts",
45
+ "import": "./dist/router/react.js"
46
+ },
47
+ "./cookie-notice/server": {
48
+ "types": "./dist/cookie-notice/server.d.ts",
49
+ "import": "./dist/cookie-notice/server.js"
50
+ },
51
+ "./theme": {
52
+ "types": "./dist/theme/index.d.ts",
53
+ "import": "./dist/theme/index.js"
54
+ },
55
+ "./theme/server": {
56
+ "types": "./dist/theme/server.d.ts",
57
+ "import": "./dist/theme/server.js"
58
+ },
59
+ "./theme/react": {
60
+ "types": "./dist/theme/react.d.ts",
61
+ "import": "./dist/theme/react.js"
62
+ },
63
+ "./schema": {
64
+ "types": "./dist/schema/index.d.ts",
65
+ "import": "./dist/schema/index.js"
66
+ },
67
+ "./seo": {
68
+ "types": "./dist/seo/index.d.ts",
69
+ "import": "./dist/seo/index.js"
70
+ },
71
+ "./security": {
72
+ "types": "./dist/security/index.d.ts",
73
+ "import": "./dist/security/index.js"
74
+ },
75
+ "./telemetry": {
76
+ "types": "./dist/telemetry/index.d.ts",
77
+ "import": "./dist/telemetry/index.js"
78
+ },
79
+ "./images": {
80
+ "types": "./dist/images/index.d.ts",
81
+ "import": "./dist/images/index.js"
82
+ },
83
+ "./format": {
84
+ "types": "./dist/format/index.d.ts",
85
+ "import": "./dist/format/index.js"
86
+ },
87
+ "./http": {
88
+ "types": "./dist/http/index.d.ts",
89
+ "import": "./dist/http/index.js"
90
+ },
91
+ "./biome": "./config/biome-app.json",
92
+ "./package.json": "./package.json"
93
+ },
94
+ "scripts": {
95
+ "build": "node -e \"fs.rmSync('dist', { recursive: true, force: true })\" && tsc -p tsconfig.build.json",
96
+ "typecheck": "tsc --noEmit",
97
+ "test": "vitest run",
98
+ "test:watch": "vitest",
99
+ "openapi-dev-types": "openapi-typescript http://localhost:5268/swagger/v1/swagger.json -o ./src/api/v1.ts --alphabetize --default-non-nullable --enum-values",
100
+ "openapi-types": "openapi-typescript https://api.filion.se/swagger/v1/swagger.json -o ./src/api/v1.ts --alphabetize --default-non-nullable --enum-values",
101
+ "prepack": "pnpm build",
102
+ "check": "biome check",
103
+ "verify": "pnpm run typecheck && pnpm run check && pnpm run test",
104
+ "biome:check": "biome check --write",
105
+ "biome:lint": "biome lint --fix",
106
+ "biome:format": "biome format --write"
107
+ },
108
+ "peerDependencies": {
109
+ "@tanstack/react-router": "^1.170.0",
110
+ "@tanstack/react-start": "^1.168.0",
111
+ "jose": "^6.0.0",
112
+ "openapi-fetch": "^0.17.0",
113
+ "react": "^19.0.0",
114
+ "zod": "^4.0.0"
115
+ },
116
+ "peerDependenciesMeta": {
117
+ "@tanstack/react-router": {
118
+ "optional": true
119
+ },
120
+ "@tanstack/react-start": {
121
+ "optional": true
122
+ },
123
+ "jose": {
124
+ "optional": true
125
+ },
126
+ "openapi-fetch": {
127
+ "optional": true
128
+ },
129
+ "react": {
130
+ "optional": true
131
+ }
132
+ },
133
+ "devDependencies": {
134
+ "@biomejs/biome": "2.5.15",
135
+ "@tanstack/react-router": "1.170.46",
136
+ "@tanstack/react-start": "1.169.4",
137
+ "@types/node": "26.6.6",
138
+ "@types/react": "19.3.0",
139
+ "@types/react-dom": "19.3.0",
140
+ "happy-dom": "20.14.6",
141
+ "jose": "6.2.13",
142
+ "openapi-fetch": "0.17.0",
143
+ "openapi-typescript": "7.13.0",
144
+ "react": "19.3.1",
145
+ "react-dom": "19.3.1",
146
+ "typescript": "6.0.3",
147
+ "vitest": "5.0.5",
148
+ "zod": "4.6.7"
149
+ }
138
150
  }