@c15t/backend 1.8.4 → 1.8.6
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/.turbo/turbo-build.log +4 -4
- package/CHANGELOG.md +17 -0
- package/dist/core.cjs +4 -4
- package/dist/core.js +4 -4
- package/dist/router.cjs +1 -1
- package/dist/router.js +1 -1
- package/dist/v2/core.cjs +5 -5
- package/dist/v2/core.js +5 -5
- package/dist/v2/router.cjs +1 -1
- package/dist/v2/router.js +1 -1
- package/dist/version.d.ts +1 -1
- package/package.json +11 -11
- package/src/pkgs/db-adapters/adapters/kysely-adapter/kysely-adapter.ts +4 -4
- package/src/version.ts +1 -1
package/.turbo/turbo-build.log
CHANGED
|
@@ -8,10 +8,10 @@ $ genversion --esm --semi src/version.ts
|
|
|
8
8
|
info build started...
|
|
9
9
|
start generating declaration files... [2m(cjs)[22m
|
|
10
10
|
start generating declaration files... [2m(esm)[22m
|
|
11
|
-
ready built in [
|
|
12
|
-
ready built in [1m1.
|
|
13
|
-
ready declaration files generated in [1m11.
|
|
14
|
-
ready declaration files generated in [1m11.
|
|
11
|
+
ready built in [1m1.07[22m s[2m (esm)[22m
|
|
12
|
+
ready built in [1m1.08[22m s[2m (cjs)[22m
|
|
13
|
+
ready declaration files generated in [1m11.3[22m s [2m(esm)[22m
|
|
14
|
+
ready declaration files generated in [1m11.3[22m s [2m(cjs)[22m
|
|
15
15
|
|
|
16
16
|
[34mFile (esm) Size [39m
|
|
17
17
|
[2mdist/v2/db/adapters/[22m[36mindex.js[39m 0.00 kB
|
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,22 @@
|
|
|
1
1
|
# @c15t/backend
|
|
2
2
|
|
|
3
|
+
## 1.8.6
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- f4448ea: fix: bump @orpc/\* to 1.13.13 and kysely to 0.28.15 to resolve npm audit vulnerabilities
|
|
8
|
+
|
|
9
|
+
## 1.8.5
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- be4e218: Republish patch release to fix workspace dependency protocol resolution during publish.
|
|
14
|
+
|
|
15
|
+
Published package manifests now resolve `workspace:*` references to concrete semver ranges before release.
|
|
16
|
+
|
|
17
|
+
- Updated dependencies [be4e218]
|
|
18
|
+
- @c15t/translations@1.8.5
|
|
19
|
+
|
|
3
20
|
## 1.8.4
|
|
4
21
|
|
|
5
22
|
### Patch Changes
|
package/dist/core.cjs
CHANGED
|
@@ -34,7 +34,7 @@ var __webpack_exports__ = {};
|
|
|
34
34
|
__webpack_require__.r(__webpack_exports__);
|
|
35
35
|
__webpack_require__.d(__webpack_exports__, {
|
|
36
36
|
c15tInstance: ()=>c15tInstance,
|
|
37
|
-
version: ()=>"1.8.
|
|
37
|
+
version: ()=>"1.8.6"
|
|
38
38
|
});
|
|
39
39
|
const logger_namespaceObject = require("@c15t/logger");
|
|
40
40
|
const fetch_namespaceObject = require("@orpc/openapi/fetch");
|
|
@@ -2224,7 +2224,7 @@ function getBaseURL(url, path) {
|
|
|
2224
2224
|
if (fromEnv) return withPath(fromEnv, path);
|
|
2225
2225
|
}
|
|
2226
2226
|
var package_namespaceObject = {
|
|
2227
|
-
rE: "1.8.
|
|
2227
|
+
rE: "1.8.6"
|
|
2228
2228
|
};
|
|
2229
2229
|
const createRegistry = (ctx)=>({
|
|
2230
2230
|
...auditLogRegistry(ctx),
|
|
@@ -2518,7 +2518,7 @@ const createOpenAPIConfig = (options)=>{
|
|
|
2518
2518
|
const createDefaultOpenAPIOptions = (options)=>({
|
|
2519
2519
|
info: {
|
|
2520
2520
|
title: options.appName || 'c15t API',
|
|
2521
|
-
version: "1.8.
|
|
2521
|
+
version: "1.8.6",
|
|
2522
2522
|
description: 'API for consent management'
|
|
2523
2523
|
},
|
|
2524
2524
|
servers: [
|
|
@@ -3669,7 +3669,7 @@ const statusHandler = os.meta.status.handler(({ context })=>{
|
|
|
3669
3669
|
const regionCode = normalizeHeader(headers?.get('x-vercel-ip-country-region')) ?? normalizeHeader(headers?.get('x-region-code'));
|
|
3670
3670
|
return {
|
|
3671
3671
|
status: 'ok',
|
|
3672
|
-
version: "1.8.
|
|
3672
|
+
version: "1.8.6",
|
|
3673
3673
|
timestamp: new Date(),
|
|
3674
3674
|
storage: {
|
|
3675
3675
|
type: typedContext.adapter?.id ?? 'MemoryAdapter',
|
package/dist/core.js
CHANGED
|
@@ -2187,7 +2187,7 @@ function getBaseURL(url, path) {
|
|
|
2187
2187
|
if (fromEnv) return withPath(fromEnv, path);
|
|
2188
2188
|
}
|
|
2189
2189
|
var package_namespaceObject = {
|
|
2190
|
-
rE: "1.8.
|
|
2190
|
+
rE: "1.8.6"
|
|
2191
2191
|
};
|
|
2192
2192
|
const createRegistry = (ctx)=>({
|
|
2193
2193
|
...auditLogRegistry(ctx),
|
|
@@ -2481,7 +2481,7 @@ const createOpenAPIConfig = (options)=>{
|
|
|
2481
2481
|
const createDefaultOpenAPIOptions = (options)=>({
|
|
2482
2482
|
info: {
|
|
2483
2483
|
title: options.appName || 'c15t API',
|
|
2484
|
-
version: "1.8.
|
|
2484
|
+
version: "1.8.6",
|
|
2485
2485
|
description: 'API for consent management'
|
|
2486
2486
|
},
|
|
2487
2487
|
servers: [
|
|
@@ -3628,7 +3628,7 @@ const statusHandler = os.meta.status.handler(({ context })=>{
|
|
|
3628
3628
|
const regionCode = normalizeHeader(headers?.get('x-vercel-ip-country-region')) ?? normalizeHeader(headers?.get('x-region-code'));
|
|
3629
3629
|
return {
|
|
3630
3630
|
status: 'ok',
|
|
3631
|
-
version: "1.8.
|
|
3631
|
+
version: "1.8.6",
|
|
3632
3632
|
timestamp: new Date(),
|
|
3633
3633
|
storage: {
|
|
3634
3634
|
type: typedContext.adapter?.id ?? 'MemoryAdapter',
|
|
@@ -4001,5 +4001,5 @@ const c15tInstance = (options)=>{
|
|
|
4001
4001
|
getDocsUI
|
|
4002
4002
|
};
|
|
4003
4003
|
};
|
|
4004
|
-
var __webpack_exports__version = "1.8.
|
|
4004
|
+
var __webpack_exports__version = "1.8.6";
|
|
4005
4005
|
export { c15tInstance, __webpack_exports__version as version };
|
package/dist/router.cjs
CHANGED
|
@@ -2016,7 +2016,7 @@ const statusHandler = os.meta.status.handler(({ context })=>{
|
|
|
2016
2016
|
const regionCode = normalizeHeader(headers?.get('x-vercel-ip-country-region')) ?? normalizeHeader(headers?.get('x-region-code'));
|
|
2017
2017
|
return {
|
|
2018
2018
|
status: 'ok',
|
|
2019
|
-
version: "1.8.
|
|
2019
|
+
version: "1.8.6",
|
|
2020
2020
|
timestamp: new Date(),
|
|
2021
2021
|
storage: {
|
|
2022
2022
|
type: typedContext.adapter?.id ?? 'MemoryAdapter',
|
package/dist/router.js
CHANGED
|
@@ -1862,7 +1862,7 @@ const statusHandler = os.meta.status.handler(({ context })=>{
|
|
|
1862
1862
|
const regionCode = normalizeHeader(headers?.get('x-vercel-ip-country-region')) ?? normalizeHeader(headers?.get('x-region-code'));
|
|
1863
1863
|
return {
|
|
1864
1864
|
status: 'ok',
|
|
1865
|
-
version: "1.8.
|
|
1865
|
+
version: "1.8.6",
|
|
1866
1866
|
timestamp: new Date(),
|
|
1867
1867
|
storage: {
|
|
1868
1868
|
type: typedContext.adapter?.id ?? 'MemoryAdapter',
|
package/dist/v2/core.cjs
CHANGED
|
@@ -33,7 +33,7 @@ var __webpack_require__ = {};
|
|
|
33
33
|
var __webpack_exports__ = {};
|
|
34
34
|
__webpack_require__.r(__webpack_exports__);
|
|
35
35
|
__webpack_require__.d(__webpack_exports__, {
|
|
36
|
-
version: ()=>"1.8.
|
|
36
|
+
version: ()=>"1.8.6",
|
|
37
37
|
c15tInstance: ()=>c15tInstance,
|
|
38
38
|
defineConfig: ()=>defineConfig
|
|
39
39
|
});
|
|
@@ -184,7 +184,7 @@ const createOpenAPIConfig = (options)=>{
|
|
|
184
184
|
const createDefaultOpenAPIOptions = (options)=>({
|
|
185
185
|
info: {
|
|
186
186
|
title: options.appName || 'c15t API',
|
|
187
|
-
version: "1.8.
|
|
187
|
+
version: "1.8.6",
|
|
188
188
|
description: 'API for consent management'
|
|
189
189
|
},
|
|
190
190
|
servers: [
|
|
@@ -1578,7 +1578,7 @@ const statusHandler = os.meta.status.handler(({ context })=>{
|
|
|
1578
1578
|
const regionCode = normalizeHeader(headers?.get('x-vercel-ip-country-region')) ?? normalizeHeader(headers?.get('x-region-code'));
|
|
1579
1579
|
return {
|
|
1580
1580
|
status: 'ok',
|
|
1581
|
-
version: "1.8.
|
|
1581
|
+
version: "1.8.6",
|
|
1582
1582
|
timestamp: new Date(),
|
|
1583
1583
|
client: {
|
|
1584
1584
|
ip: typedContext.ipAddress ?? null,
|
|
@@ -2051,7 +2051,7 @@ function createTelemetryOptions(appName = 'c15t', telemetryConfig) {
|
|
|
2051
2051
|
defaultAttributes: {
|
|
2052
2052
|
...telemetryConfig?.defaultAttributes || {},
|
|
2053
2053
|
'service.name': String(appName),
|
|
2054
|
-
'service.version': "1.8.
|
|
2054
|
+
'service.version': "1.8.6"
|
|
2055
2055
|
}
|
|
2056
2056
|
};
|
|
2057
2057
|
return config;
|
|
@@ -2117,7 +2117,7 @@ const initializeTelemetry = (appName, telemetryOptions, logger)=>{
|
|
|
2117
2117
|
try {
|
|
2118
2118
|
const resource = (0, resources_namespaceObject.resourceFromAttributes)({
|
|
2119
2119
|
'service.name': appName,
|
|
2120
|
-
'service.version': "1.8.
|
|
2120
|
+
'service.version': "1.8.6",
|
|
2121
2121
|
...telemetryOptions?.defaultAttributes || {}
|
|
2122
2122
|
});
|
|
2123
2123
|
logger.debug('Initializing telemetry with resource attributes', {
|
package/dist/v2/core.js
CHANGED
|
@@ -156,7 +156,7 @@ const createOpenAPIConfig = (options)=>{
|
|
|
156
156
|
const createDefaultOpenAPIOptions = (options)=>({
|
|
157
157
|
info: {
|
|
158
158
|
title: options.appName || 'c15t API',
|
|
159
|
-
version: "1.8.
|
|
159
|
+
version: "1.8.6",
|
|
160
160
|
description: 'API for consent management'
|
|
161
161
|
},
|
|
162
162
|
servers: [
|
|
@@ -1541,7 +1541,7 @@ const statusHandler = os.meta.status.handler(({ context })=>{
|
|
|
1541
1541
|
const regionCode = normalizeHeader(headers?.get('x-vercel-ip-country-region')) ?? normalizeHeader(headers?.get('x-region-code'));
|
|
1542
1542
|
return {
|
|
1543
1543
|
status: 'ok',
|
|
1544
|
-
version: "1.8.
|
|
1544
|
+
version: "1.8.6",
|
|
1545
1545
|
timestamp: new Date(),
|
|
1546
1546
|
client: {
|
|
1547
1547
|
ip: typedContext.ipAddress ?? null,
|
|
@@ -2010,7 +2010,7 @@ function createTelemetryOptions(appName = 'c15t', telemetryConfig) {
|
|
|
2010
2010
|
defaultAttributes: {
|
|
2011
2011
|
...telemetryConfig?.defaultAttributes || {},
|
|
2012
2012
|
'service.name': String(appName),
|
|
2013
|
-
'service.version': "1.8.
|
|
2013
|
+
'service.version': "1.8.6"
|
|
2014
2014
|
}
|
|
2015
2015
|
};
|
|
2016
2016
|
return config;
|
|
@@ -2076,7 +2076,7 @@ const initializeTelemetry = (appName, telemetryOptions, logger)=>{
|
|
|
2076
2076
|
try {
|
|
2077
2077
|
const resource = resourceFromAttributes({
|
|
2078
2078
|
'service.name': appName,
|
|
2079
|
-
'service.version': "1.8.
|
|
2079
|
+
'service.version': "1.8.6",
|
|
2080
2080
|
...telemetryOptions?.defaultAttributes || {}
|
|
2081
2081
|
});
|
|
2082
2082
|
logger.debug('Initializing telemetry with resource attributes', {
|
|
@@ -2296,5 +2296,5 @@ const c15tInstance = (options)=>{
|
|
|
2296
2296
|
getDocsUI
|
|
2297
2297
|
};
|
|
2298
2298
|
};
|
|
2299
|
-
var __webpack_exports__version = "1.8.
|
|
2299
|
+
var __webpack_exports__version = "1.8.6";
|
|
2300
2300
|
export { c15tInstance, defineConfig, __webpack_exports__version as version };
|
package/dist/v2/router.cjs
CHANGED
|
@@ -1414,7 +1414,7 @@ const statusHandler = os.meta.status.handler(({ context })=>{
|
|
|
1414
1414
|
const regionCode = normalizeHeader(headers?.get('x-vercel-ip-country-region')) ?? normalizeHeader(headers?.get('x-region-code'));
|
|
1415
1415
|
return {
|
|
1416
1416
|
status: 'ok',
|
|
1417
|
-
version: "1.8.
|
|
1417
|
+
version: "1.8.6",
|
|
1418
1418
|
timestamp: new Date(),
|
|
1419
1419
|
client: {
|
|
1420
1420
|
ip: typedContext.ipAddress ?? null,
|
package/dist/v2/router.js
CHANGED
|
@@ -1376,7 +1376,7 @@ const statusHandler = os.meta.status.handler(({ context })=>{
|
|
|
1376
1376
|
const regionCode = normalizeHeader(headers?.get('x-vercel-ip-country-region')) ?? normalizeHeader(headers?.get('x-region-code'));
|
|
1377
1377
|
return {
|
|
1378
1378
|
status: 'ok',
|
|
1379
|
-
version: "1.8.
|
|
1379
|
+
version: "1.8.6",
|
|
1380
1380
|
timestamp: new Date(),
|
|
1381
1381
|
client: {
|
|
1382
1382
|
ip: typedContext.ipAddress ?? null,
|
package/dist/version.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const version = "1.8.
|
|
1
|
+
export declare const version = "1.8.6";
|
|
2
2
|
//# sourceMappingURL=version.d.ts.map
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@c15t/backend",
|
|
3
|
-
"version": "1.8.
|
|
3
|
+
"version": "1.8.6",
|
|
4
4
|
"description": "Consent policy engine and API for c15t. Powers the cookie banner, consent manager, and preferences centre. Webhooks, audit logs, storage adapters. Self host or use consent.io",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"consent",
|
|
@@ -185,29 +185,29 @@
|
|
|
185
185
|
"test:watch": "bun prebuild && vitest"
|
|
186
186
|
},
|
|
187
187
|
"dependencies": {
|
|
188
|
-
"@c15t/logger": "
|
|
189
|
-
"@c15t/translations": "
|
|
188
|
+
"@c15t/logger": "1.0.1",
|
|
189
|
+
"@c15t/translations": "1.8.5",
|
|
190
190
|
"@opentelemetry/api": "1.9.0",
|
|
191
191
|
"@opentelemetry/resources": "^2.0.1",
|
|
192
192
|
"@opentelemetry/sdk-node": "^0.203.0",
|
|
193
193
|
"@opentelemetry/sdk-trace-base": "^2.0.1",
|
|
194
|
-
"@orpc/contract": "1.13.
|
|
195
|
-
"@orpc/openapi": "1.13.
|
|
196
|
-
"@orpc/otel": "^1.13.
|
|
197
|
-
"@orpc/server": "1.13.
|
|
198
|
-
"@orpc/zod": "1.13.
|
|
194
|
+
"@orpc/contract": "1.13.13",
|
|
195
|
+
"@orpc/openapi": "1.13.13",
|
|
196
|
+
"@orpc/otel": "^1.13.13",
|
|
197
|
+
"@orpc/server": "1.13.13",
|
|
198
|
+
"@orpc/zod": "1.13.13",
|
|
199
199
|
"base-x": "^5.0.1",
|
|
200
200
|
"defu": "^6.1.4",
|
|
201
201
|
"drizzle-orm": "^0.44.7",
|
|
202
202
|
"fumadb": "^0.1.2",
|
|
203
|
-
"kysely": "^0.
|
|
203
|
+
"kysely": "^0.28.15",
|
|
204
204
|
"neverthrow": "^8.2.0",
|
|
205
205
|
"superjson": "^2.2.6",
|
|
206
206
|
"zod": "^4.0.17"
|
|
207
207
|
},
|
|
208
208
|
"devDependencies": {
|
|
209
|
-
"@c15t/typescript-config": "
|
|
210
|
-
"@c15t/vitest-config": "
|
|
209
|
+
"@c15t/typescript-config": "0.0.1-beta.1",
|
|
210
|
+
"@c15t/vitest-config": "1.0.0",
|
|
211
211
|
"@electric-sql/pglite": "0.2.17",
|
|
212
212
|
"@libsql/kysely-libsql": "^0.4.1",
|
|
213
213
|
"@types/better-sqlite3": "^7.6.13",
|
|
@@ -14,7 +14,7 @@ import type {
|
|
|
14
14
|
OperandValueExpressionOrList,
|
|
15
15
|
} from 'node_modules/kysely/dist/esm/parser/binary-operation-parser';
|
|
16
16
|
import type { InsertExpression } from 'node_modules/kysely/dist/esm/parser/insert-values-parser';
|
|
17
|
-
import type {
|
|
17
|
+
import type { SimpleTableReference } from 'node_modules/kysely/dist/esm/parser/table-parser';
|
|
18
18
|
import superjson from 'superjson';
|
|
19
19
|
import {
|
|
20
20
|
type EntityInput,
|
|
@@ -303,8 +303,8 @@ const createEntityTransformer = (
|
|
|
303
303
|
*/
|
|
304
304
|
function getEntityName<EntityType extends EntityName>(
|
|
305
305
|
model: EntityType
|
|
306
|
-
):
|
|
307
|
-
return schema[model].entityName as
|
|
306
|
+
): SimpleTableReference<Database> {
|
|
307
|
+
return schema[model].entityName as SimpleTableReference<Database>;
|
|
308
308
|
}
|
|
309
309
|
|
|
310
310
|
return {
|
|
@@ -563,7 +563,7 @@ const createEntityTransformer = (
|
|
|
563
563
|
>;
|
|
564
564
|
|
|
565
565
|
res = (await db
|
|
566
|
-
.selectFrom(getEntityName(model))
|
|
566
|
+
.selectFrom(getEntityName(model) as unknown as keyof Database)
|
|
567
567
|
.selectAll()
|
|
568
568
|
.where((eb) =>
|
|
569
569
|
eb(
|
package/src/version.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
// Generated by genversion.
|
|
2
|
-
export const version = '1.8.
|
|
2
|
+
export const version = '1.8.6';
|