sloplog 0.0.12 → 0.0.13

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/dist/index.d.ts CHANGED
@@ -98,9 +98,6 @@ export interface WideEventOptions {
98
98
  */
99
99
  export { z, partial, registry, extractPartialMetadata } from './registry.js';
100
100
  export type { PartialOptions, PartialDefinition, Registry, PartialMetadata, PartialFactory, InferPartial, RegistryType, } from './registry.js';
101
- export { generateTypeScript, generatePython, generateJsonSchema } from './codegen.js';
102
- export { config } from './codegen.js';
103
- export type { CodegenConfig, CodegenOutputs, CodegenOutputKind, CodegenResult } from './codegen.js';
104
101
  /**
105
102
  * Core WideEvent class.
106
103
  * Create one WideEvent per request or unit of work and add partials as you go.
package/dist/index.js CHANGED
@@ -48,9 +48,9 @@ export { builtInPartials, builtInRegistry, builtInPartialMetadata } from './part
48
48
  * Restricted to only allow specific primitive types for cross-language compatibility
49
49
  */
50
50
  export { z, partial, registry, extractPartialMetadata } from './registry.js';
51
- // Re-export codegen functions
52
- export { generateTypeScript, generatePython, generateJsonSchema } from './codegen.js';
53
- export { config } from './codegen.js';
51
+ // Codegen functions are NOT re-exported from main entry point to avoid bundling
52
+ // Node.js-specific code (pathToFileURL, node:fs) in React Native / browser environments.
53
+ // Import from 'sloplog/codegen' directly when you need codegen functionality.
54
54
  /**
55
55
  * Core WideEvent class.
56
56
  * Create one WideEvent per request or unit of work and add partials as you go.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sloplog",
3
- "version": "0.0.12",
3
+ "version": "0.0.13",
4
4
  "description": "A TypeScript library for constructing wide events",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",
@@ -94,13 +94,12 @@
94
94
  "pyright": "^1.1.408",
95
95
  "typescript": "^5.7.0",
96
96
  "typescript-eslint": "^8.53.1",
97
- "vitest": "^2.1.0"
98
- },
99
- "dependencies": {
97
+ "vitest": "^2.1.0",
100
98
  "zod": "^4.3.5"
101
99
  },
102
100
  "peerDependencies": {
103
- "@sentry/node": "*"
101
+ "@sentry/node": "*",
102
+ "zod": "^4.0.0"
104
103
  },
105
104
  "peerDependenciesMeta": {
106
105
  "@sentry/node": {