@elliots/bun-plugin-typical 0.2.0 → 0.2.3

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.
Files changed (2) hide show
  1. package/dist/index.d.mts +15 -7
  2. package/package.json +2 -2
package/dist/index.d.mts CHANGED
@@ -24,7 +24,13 @@ interface TypicalSourceMapConfig {
24
24
  interface TypicalConfig {
25
25
  include?: string[];
26
26
  exclude?: string[];
27
- reusableValidators?: boolean;
27
+ /**
28
+ * Controls whether validators are hoisted to module scope for reuse.
29
+ * - 'auto' (default): Hoist only validators used more than once
30
+ * - 'never': Never hoist, always generate inline validators
31
+ * - 'always': Always hoist validators, even if only used once
32
+ */
33
+ reusableValidators?: 'auto' | 'never' | 'always';
28
34
  validateCasts?: boolean;
29
35
  hoistRegex?: boolean;
30
36
  debug?: TypicalDebugConfig;
@@ -34,12 +40,6 @@ interface TypicalConfig {
34
40
  * Example: ["React.*", "Express.Request", "*.Event"]
35
41
  */
36
42
  ignoreTypes?: string[];
37
- /**
38
- * Skip validation for DOM types (Document, Element, Node, etc.) and their subclasses.
39
- * These types have complex Window intersections that typia cannot process.
40
- * Default: true
41
- */
42
- ignoreDOMTypes?: boolean;
43
43
  /**
44
44
  * Validate function parameters and return types at runtime.
45
45
  * When enabled, typed function parameters get runtime validation calls injected.
@@ -63,6 +63,14 @@ interface TypicalConfig {
63
63
  * Controls whether and how source maps are generated for transformed code.
64
64
  */
65
65
  sourceMap?: TypicalSourceMapConfig;
66
+ /**
67
+ * Maximum number of helper functions (_io0, _io1, etc.) that can be generated
68
+ * for a single type before erroring. Complex DOM types or library types can
69
+ * generate hundreds of functions which indicates a type that should be excluded.
70
+ * Set to 0 to disable the limit.
71
+ * Default: 50
72
+ */
73
+ maxGeneratedFunctions?: number;
66
74
  }
67
75
  //#endregion
68
76
  //#region src/core/options.d.ts
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@elliots/bun-plugin-typical",
3
- "version": "0.2.0",
3
+ "version": "0.2.3",
4
4
  "description": "Bun plugin for typical - runtime safe TypeScript transformer",
5
5
  "keywords": [
6
6
  "bun",
@@ -36,7 +36,7 @@
36
36
  "access": "public"
37
37
  },
38
38
  "dependencies": {
39
- "@elliots/typical": "0.2.0"
39
+ "@elliots/typical": "0.2.3"
40
40
  },
41
41
  "devDependencies": {
42
42
  "@types/bun": "^1.0.0",