@schafevormfenster/rest-commons 0.1.3 → 0.1.5

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.
@@ -0,0 +1,4 @@
1
+
2
+ > @schafevormfenster/rest-commons@0.1.4 build /Users/jan-henrik.hempel/Projects/commons/packages/rest-commons
3
+ > tsc
4
+
package/README.md CHANGED
@@ -182,6 +182,19 @@ Don't use this package if you:
182
182
  pnpm add @schafevormfenster/rest-commons
183
183
  ```
184
184
 
185
+ ### TypeScript Sources (Optional)
186
+
187
+ For faster development with Vite, use TypeScript sources directly:
188
+
189
+ ```typescript
190
+ // vite.config.ts - Requires tsconfig "target": "ES2022"+
191
+ export default defineConfig({
192
+ resolve: { conditions: ['source', 'import', 'default'] }
193
+ });
194
+ ```
195
+
196
+ Benefits: Faster HMR, direct debugging, better tree-shaking.
197
+
185
198
  ## Quick Start
186
199
 
187
200
  ```typescript
package/dist/index.d.ts CHANGED
@@ -19,8 +19,6 @@ export * from "./time/time-helpers";
19
19
  export * from "./time/is-relative-time";
20
20
  export { parseFlexibleTime as parseFlexibleTimeAdvanced } from "./time/flexible-time-parser";
21
21
  export * from "./time/boundary-enforcement";
22
- /** @deprecated Use flexible-time.schema exports instead */
23
- export { FlexibleTimeSchema as FlexibleTimeSchemaOld, FlexibleTime as FlexibleTimeOld, TimeUnit, RelativeTimeConfig } from "./time/time-schemas";
24
22
  export * from "./helpers/correlation/get-correlation-id";
25
23
  export * from "./helpers/correlation/get-header";
26
24
  export * from "./helpers/detect-mime-type";
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AACA,cAAc,4BAA4B,CAAC;AAC3C,cAAc,6BAA6B,CAAC;AAC5C,cAAc,2BAA2B,CAAC;AAC1C,cAAc,6BAA6B,CAAC;AAC5C,cAAc,8BAA8B,CAAC;AAG7C,cAAc,8BAA8B,CAAC;AAC7C,cAAc,0BAA0B,CAAC;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Ac,iCAAiC,CAAC;AAChD,cAAc,uCAAuC,CAAC;AAGtD,cAAc,uBAAuB,CAAC;AACtC,cAAc,uBAAuB,CAAC;AACtC,cAAc,6BAA6B,CAAC;AAC5C,cAAc,6BAA6B,CAAC;AAC5C,cAAc,4BAA4B,CAAC;AAC3C,cAAc,qBAAqB,CAAC;AACpC,cAAc,yBAAyB,CAAC;AACxC,OAAO,EAAE,iBAAiB,IAAI,yBAAyB,EAAE,MAAM,6BAA6B,CAAC;AAC7F,cAAc,6BAA6B,CAAC;AAG5C,cAAc,0CAA0C,CAAC;AACzD,cAAc,kCAAkC,CAAC;AACjD,cAAc,4BAA4B,CAAC;AAC3C,cAAc,sCAAsC,CAAC;AACrD,cAAc,uBAAuB,CAAC;AACtC,cAAc,gCAAgC,CAAC;AAC/C,cAAc,mBAAmB,CAAC;AAClC,cAAc,2DAA2D,CAAC;AAC1E,cAAc,8CAA8C,CAAC;AAC7D,cAAc,gDAAgD,CAAC;AAG/D,cAAc,gCAAgC,CAAC;AAC/C,cAAc,oCAAoC,CAAC"}
package/dist/index.js CHANGED
@@ -22,9 +22,6 @@ export * from "./time/time-helpers"; // Helper functions
22
22
  export * from "./time/is-relative-time";
23
23
  export { parseFlexibleTime as parseFlexibleTimeAdvanced } from "./time/flexible-time-parser";
24
24
  export * from "./time/boundary-enforcement";
25
- // Deprecated exports (for backward compatibility)
26
- /** @deprecated Use flexible-time.schema exports instead */
27
- export { FlexibleTimeSchema as FlexibleTimeSchemaOld } from "./time/time-schemas";
28
25
  // Helpers
29
26
  export * from "./helpers/correlation/get-correlation-id";
30
27
  export * from "./helpers/correlation/get-header";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@schafevormfenster/rest-commons",
3
- "version": "0.1.3",
3
+ "version": "0.1.5",
4
4
  "description": "Centralized authority for REST standards and schemas - XSD schemas, parsing functions, and coding instructions",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
@@ -16,32 +16,32 @@
16
16
  "bin": {
17
17
  "setup-rest-commons": "./bin/setup.js"
18
18
  },
19
+ "scripts": {
20
+ "typecheck": "tsc --noEmit",
21
+ "lint": "eslint",
22
+ "test": "TZ=UTC vitest run",
23
+ "test:watch": "TZ=UTC vitest",
24
+ "build": "tsc",
25
+ "check": "pnpm run typecheck && pnpm run lint && pnpm run test && pnpm run build",
26
+ "release": "pnpm run build && bash -c 'cp ../../.npmrc .npmrc && npm publish --access public && rm .npmrc'"
27
+ },
19
28
  "engines": {
20
29
  "node": ">=24"
21
30
  },
22
31
  "devDependencies": {
32
+ "@schafevormfenster/eslint-config": "workspace:*",
23
33
  "@types/node": "^22.19.3",
24
34
  "@typescript-eslint/eslint-plugin": "^8.51.0",
25
35
  "@typescript-eslint/parser": "^8.51.0",
26
36
  "eslint": "^9.39.2",
27
37
  "typescript": "^5.9.3",
28
- "vitest": "^4.0.16",
29
- "@schafevormfenster/eslint-config": "0.0.8"
38
+ "vitest": "^4.0.16"
30
39
  },
31
40
  "dependencies": {
41
+ "@schafevormfenster/logging": "workspace:*",
42
+ "@schafevormfenster/security": "workspace:*",
32
43
  "dayjs": "^1.11.19",
33
44
  "slugify": "^1.6.6",
34
- "zod": "^3.25.76",
35
- "@schafevormfenster/security": "0.1.2",
36
- "@schafevormfenster/logging": "0.1.5"
37
- },
38
- "scripts": {
39
- "typecheck": "tsc --noEmit",
40
- "lint": "eslint",
41
- "test": "TZ=UTC vitest run",
42
- "test:watch": "TZ=UTC vitest",
43
- "build": "tsc",
44
- "check": "pnpm run typecheck && pnpm run lint && pnpm run test && pnpm run build",
45
- "release": "pnpm run build && bash -c 'cp ../../.npmrc .npmrc && npm publish --access public && rm .npmrc'"
45
+ "zod": "^3.25.76"
46
46
  }
47
- }
47
+ }
package/src/index.ts CHANGED
@@ -25,10 +25,6 @@ export * from "./time/is-relative-time";
25
25
  export { parseFlexibleTime as parseFlexibleTimeAdvanced } from "./time/flexible-time-parser";
26
26
  export * from "./time/boundary-enforcement";
27
27
 
28
- // Deprecated exports (for backward compatibility)
29
- /** @deprecated Use flexible-time.schema exports instead */
30
- export { FlexibleTimeSchema as FlexibleTimeSchemaOld, FlexibleTime as FlexibleTimeOld, TimeUnit, RelativeTimeConfig } from "./time/time-schemas";
31
-
32
28
  // Helpers
33
29
  export * from "./helpers/correlation/get-correlation-id";
34
30
  export * from "./helpers/correlation/get-header";