ts-procedures 9.2.0 → 10.0.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.
Files changed (128) hide show
  1. package/CHANGELOG.md +25 -0
  2. package/build/codegen/bin/cli.js +1 -1
  3. package/build/codegen/bin/cli.js.map +1 -1
  4. package/build/codegen/emit/api-route.js +1 -1
  5. package/build/codegen/emit/api-route.js.map +1 -1
  6. package/build/codegen/emit/scope-file.js +1 -1
  7. package/build/codegen/emit/scope-file.js.map +1 -1
  8. package/build/codegen/emit-errors.integration.test.js +2 -2
  9. package/build/codegen/emit-errors.integration.test.js.map +1 -1
  10. package/build/codegen/resolve-envelope.js +1 -1
  11. package/build/codegen/resolve-envelope.js.map +1 -1
  12. package/build/codegen/test-helpers/run-tsc.js +1 -1
  13. package/build/codegen/test-helpers/run-tsc.js.map +1 -1
  14. package/package.json +8 -8
  15. package/src/codegen/bin/cli.ts +1 -1
  16. package/src/codegen/emit/api-route.ts +1 -1
  17. package/src/codegen/emit/scope-file.ts +2 -1
  18. package/src/codegen/emit-errors.integration.test.ts +2 -2
  19. package/src/codegen/resolve-envelope.ts +1 -1
  20. package/src/codegen/test-helpers/run-tsc.ts +1 -0
  21. package/build/errors.d.ts +0 -33
  22. package/build/errors.js +0 -91
  23. package/build/errors.js.map +0 -1
  24. package/build/errors.test.d.ts +0 -1
  25. package/build/errors.test.js +0 -122
  26. package/build/errors.test.js.map +0 -1
  27. package/build/implementations/http/doc-registry.d.ts +0 -28
  28. package/build/implementations/http/doc-registry.js +0 -96
  29. package/build/implementations/http/doc-registry.js.map +0 -1
  30. package/build/implementations/http/doc-registry.test.d.ts +0 -1
  31. package/build/implementations/http/doc-registry.test.js +0 -516
  32. package/build/implementations/http/doc-registry.test.js.map +0 -1
  33. package/build/implementations/http/error-taxonomy.d.ts +0 -249
  34. package/build/implementations/http/error-taxonomy.js +0 -252
  35. package/build/implementations/http/error-taxonomy.js.map +0 -1
  36. package/build/implementations/http/error-taxonomy.test.d.ts +0 -1
  37. package/build/implementations/http/error-taxonomy.test.js +0 -399
  38. package/build/implementations/http/error-taxonomy.test.js.map +0 -1
  39. package/build/implementations/http/express-rpc/error-taxonomy.test.d.ts +0 -1
  40. package/build/implementations/http/express-rpc/error-taxonomy.test.js +0 -83
  41. package/build/implementations/http/express-rpc/error-taxonomy.test.js.map +0 -1
  42. package/build/implementations/http/express-rpc/index.d.ts +0 -125
  43. package/build/implementations/http/express-rpc/index.js +0 -216
  44. package/build/implementations/http/express-rpc/index.js.map +0 -1
  45. package/build/implementations/http/express-rpc/index.test.d.ts +0 -1
  46. package/build/implementations/http/express-rpc/index.test.js +0 -684
  47. package/build/implementations/http/express-rpc/index.test.js.map +0 -1
  48. package/build/implementations/http/express-rpc/types.d.ts +0 -11
  49. package/build/implementations/http/express-rpc/types.js +0 -2
  50. package/build/implementations/http/express-rpc/types.js.map +0 -1
  51. package/build/implementations/http/hono-api/error-taxonomy.test.d.ts +0 -1
  52. package/build/implementations/http/hono-api/error-taxonomy.test.js +0 -137
  53. package/build/implementations/http/hono-api/error-taxonomy.test.js.map +0 -1
  54. package/build/implementations/http/hono-api/index.d.ts +0 -151
  55. package/build/implementations/http/hono-api/index.js +0 -344
  56. package/build/implementations/http/hono-api/index.js.map +0 -1
  57. package/build/implementations/http/hono-api/index.test.d.ts +0 -1
  58. package/build/implementations/http/hono-api/index.test.js +0 -992
  59. package/build/implementations/http/hono-api/index.test.js.map +0 -1
  60. package/build/implementations/http/hono-api/types.d.ts +0 -13
  61. package/build/implementations/http/hono-api/types.js +0 -2
  62. package/build/implementations/http/hono-api/types.js.map +0 -1
  63. package/build/implementations/http/hono-rpc/error-taxonomy.test.d.ts +0 -1
  64. package/build/implementations/http/hono-rpc/error-taxonomy.test.js +0 -64
  65. package/build/implementations/http/hono-rpc/error-taxonomy.test.js.map +0 -1
  66. package/build/implementations/http/hono-rpc/index.d.ts +0 -130
  67. package/build/implementations/http/hono-rpc/index.js +0 -209
  68. package/build/implementations/http/hono-rpc/index.js.map +0 -1
  69. package/build/implementations/http/hono-rpc/index.test.d.ts +0 -1
  70. package/build/implementations/http/hono-rpc/index.test.js +0 -828
  71. package/build/implementations/http/hono-rpc/index.test.js.map +0 -1
  72. package/build/implementations/http/hono-rpc/types.d.ts +0 -11
  73. package/build/implementations/http/hono-rpc/types.js +0 -2
  74. package/build/implementations/http/hono-rpc/types.js.map +0 -1
  75. package/build/implementations/http/hono-stream/error-taxonomy.test.d.ts +0 -1
  76. package/build/implementations/http/hono-stream/error-taxonomy.test.js +0 -159
  77. package/build/implementations/http/hono-stream/error-taxonomy.test.js.map +0 -1
  78. package/build/implementations/http/hono-stream/index.d.ts +0 -171
  79. package/build/implementations/http/hono-stream/index.js +0 -415
  80. package/build/implementations/http/hono-stream/index.js.map +0 -1
  81. package/build/implementations/http/hono-stream/index.test.d.ts +0 -1
  82. package/build/implementations/http/hono-stream/index.test.js +0 -1383
  83. package/build/implementations/http/hono-stream/index.test.js.map +0 -1
  84. package/build/implementations/http/hono-stream/types.d.ts +0 -15
  85. package/build/implementations/http/hono-stream/types.js +0 -2
  86. package/build/implementations/http/hono-stream/types.js.map +0 -1
  87. package/build/implementations/http/on-request-error.test.d.ts +0 -1
  88. package/build/implementations/http/on-request-error.test.js +0 -173
  89. package/build/implementations/http/on-request-error.test.js.map +0 -1
  90. package/build/implementations/http/route-errors.test.d.ts +0 -1
  91. package/build/implementations/http/route-errors.test.js +0 -139
  92. package/build/implementations/http/route-errors.test.js.map +0 -1
  93. package/build/implementations/types.d.ts +0 -192
  94. package/build/implementations/types.js +0 -2
  95. package/build/implementations/types.js.map +0 -1
  96. package/build/index.d.ts +0 -165
  97. package/build/index.js +0 -258
  98. package/build/index.js.map +0 -1
  99. package/build/index.test.d.ts +0 -1
  100. package/build/index.test.js +0 -920
  101. package/build/index.test.js.map +0 -1
  102. package/build/schema/extract-json-schema.d.ts +0 -2
  103. package/build/schema/extract-json-schema.js +0 -12
  104. package/build/schema/extract-json-schema.js.map +0 -1
  105. package/build/schema/extract-json-schema.test.d.ts +0 -1
  106. package/build/schema/extract-json-schema.test.js +0 -23
  107. package/build/schema/extract-json-schema.test.js.map +0 -1
  108. package/build/schema/parser.d.ts +0 -28
  109. package/build/schema/parser.js +0 -170
  110. package/build/schema/parser.js.map +0 -1
  111. package/build/schema/parser.test.d.ts +0 -1
  112. package/build/schema/parser.test.js +0 -120
  113. package/build/schema/parser.test.js.map +0 -1
  114. package/build/schema/resolve-schema-lib.d.ts +0 -12
  115. package/build/schema/resolve-schema-lib.js +0 -11
  116. package/build/schema/resolve-schema-lib.js.map +0 -1
  117. package/build/schema/resolve-schema-lib.test.d.ts +0 -1
  118. package/build/schema/resolve-schema-lib.test.js +0 -17
  119. package/build/schema/resolve-schema-lib.test.js.map +0 -1
  120. package/build/schema/types.d.ts +0 -8
  121. package/build/schema/types.js +0 -2
  122. package/build/schema/types.js.map +0 -1
  123. package/build/stack-utils.d.ts +0 -25
  124. package/build/stack-utils.js +0 -95
  125. package/build/stack-utils.js.map +0 -1
  126. package/build/stack-utils.test.d.ts +0 -1
  127. package/build/stack-utils.test.js +0 -80
  128. package/build/stack-utils.test.js.map +0 -1
@@ -1,95 +0,0 @@
1
- /**
2
- * Internal ts-procedures files that should be skipped when finding user code.
3
- * Only skip the core library files, not test files or user code.
4
- */
5
- const INTERNAL_FILES = [
6
- '/index.ts',
7
- '/index.js',
8
- '/errors.ts',
9
- '/errors.js',
10
- '/stack-utils.ts',
11
- '/stack-utils.js',
12
- '/compute-schema.ts',
13
- '/compute-schema.js',
14
- '/parser.ts',
15
- '/parser.js',
16
- ];
17
- /**
18
- * Captures the stack trace at the call site and extracts the definition location.
19
- * Finds the first stack frame outside of ts-procedures internal files.
20
- */
21
- export function captureDefinitionInfo() {
22
- const err = new Error();
23
- const stack = err.stack;
24
- if (!stack) {
25
- return {};
26
- }
27
- const lines = stack.split('\n');
28
- // Find the first frame that's not from ts-procedures internals
29
- // Skip the first line (Error message) and frames from this module
30
- let userFrame;
31
- for (let i = 1; i < lines.length; i++) {
32
- const rawLine = lines[i];
33
- if (!rawLine)
34
- continue;
35
- const line = rawLine.trim();
36
- // Skip empty or invalid frames
37
- if (!line.startsWith('at ')) {
38
- continue;
39
- }
40
- // Skip frames from ts-procedures internal source files
41
- const isInternalFile = INTERNAL_FILES.some(file => line.includes(file));
42
- if (isInternalFile) {
43
- continue;
44
- }
45
- // Skip frames from ts-procedures in node_modules (when used as a dependency)
46
- if (line.includes('/node_modules/ts-procedures/') || line.includes('\\node_modules\\ts-procedures\\')) {
47
- continue;
48
- }
49
- // Skip internal node frames
50
- if (line.includes('node:') || line.startsWith('at Module.') || line.startsWith('at Object.<anonymous> (node:')) {
51
- continue;
52
- }
53
- userFrame = line;
54
- break;
55
- }
56
- if (!userFrame) {
57
- return { definitionStack: stack };
58
- }
59
- const definedAt = parseStackFrame(userFrame);
60
- return {
61
- definedAt,
62
- definitionStack: stack,
63
- };
64
- }
65
- /**
66
- * Parses a V8 stack frame line to extract file, line, and column info.
67
- * Handles formats like:
68
- * - "at Object.<anonymous> (/path/to/file.ts:10:5)"
69
- * - "at functionName (/path/to/file.ts:10:5)"
70
- * - "at /path/to/file.ts:10:5"
71
- */
72
- function parseStackFrame(frame) {
73
- // Match patterns like "(path:line:column)" or just "path:line:column"
74
- const match = frame.match(/\(([^)]+):(\d+):(\d+)\)$/) || frame.match(/at ([^:]+):(\d+):(\d+)$/);
75
- if (match && match[1] && match[2] && match[3]) {
76
- return {
77
- file: match[1],
78
- line: parseInt(match[2], 10),
79
- column: parseInt(match[3], 10),
80
- raw: frame,
81
- };
82
- }
83
- return undefined;
84
- }
85
- /**
86
- * Formats definition info for appending to error stacks.
87
- */
88
- export function formatDefinitionInfo(info, procedureName) {
89
- if (!info.definedAt) {
90
- return undefined;
91
- }
92
- const { file, line, column } = info.definedAt;
93
- return `\n--- Procedure "${procedureName}" defined at ---\n at ${file}:${line}:${column}`;
94
- }
95
- //# sourceMappingURL=stack-utils.js.map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AAC;IAED,MAAM,EAAE,IAAI,EAAE,IAAI,EAAE,MAAM,EAAE,GAAG,IAAI,CAAC,SAAS,CAAA;IAC7C,OAAO,oBAAoB,aAAa,4BAA4B,IAAI,IAAI,IAAI,IAAI,MAAM,EAAE,CAAA;AAC9F,CAAC"}
@@ -1 +0,0 @@
1
- export {};
@@ -1,80 +0,0 @@
1
- import { describe, expect, test } from 'vitest';
2
- import { captureDefinitionInfo, formatDefinitionInfo } from './stack-utils.js';
3
- describe('Stack Utils', () => {
4
- describe('captureDefinitionInfo', () => {
5
- test('returns definition info with definedAt', () => {
6
- const info = captureDefinitionInfo();
7
- // Should capture the call site in this test file
8
- expect(info).toBeDefined();
9
- expect(info.definitionStack).toBeDefined();
10
- expect(typeof info.definitionStack).toBe('string');
11
- });
12
- test('definedAt contains file, line, column when available', () => {
13
- const info = captureDefinitionInfo();
14
- // The definedAt should be present since we're calling from user code (test file)
15
- if (info.definedAt) {
16
- expect(info.definedAt.file).toBeDefined();
17
- expect(typeof info.definedAt.file).toBe('string');
18
- expect(info.definedAt.line).toBeDefined();
19
- expect(typeof info.definedAt.line).toBe('number');
20
- expect(info.definedAt.line).toBeGreaterThan(0);
21
- expect(info.definedAt.column).toBeDefined();
22
- expect(typeof info.definedAt.column).toBe('number');
23
- expect(info.definedAt.column).toBeGreaterThan(0);
24
- expect(info.definedAt.raw).toBeDefined();
25
- expect(typeof info.definedAt.raw).toBe('string');
26
- }
27
- });
28
- test('definitionStack contains Error stack trace', () => {
29
- const info = captureDefinitionInfo();
30
- expect(info.definitionStack).toContain('Error');
31
- expect(info.definitionStack).toContain('at ');
32
- });
33
- });
34
- describe('formatDefinitionInfo', () => {
35
- test('returns undefined when definedAt is not present', () => {
36
- const info = {};
37
- const result = formatDefinitionInfo(info, 'TestProcedure');
38
- expect(result).toBeUndefined();
39
- });
40
- test('returns formatted string when definedAt is present', () => {
41
- const info = {
42
- definedAt: {
43
- file: '/app/procedures/test.ts',
44
- line: 42,
45
- column: 5,
46
- raw: 'at Object.<anonymous> (/app/procedures/test.ts:42:5)',
47
- },
48
- };
49
- const result = formatDefinitionInfo(info, 'TestProcedure');
50
- expect(result).toBeDefined();
51
- expect(result).toContain('--- Procedure "TestProcedure" defined at ---');
52
- expect(result).toContain('/app/procedures/test.ts:42:5');
53
- });
54
- test('includes procedure name in formatted output', () => {
55
- const info = {
56
- definedAt: {
57
- file: '/path/to/file.ts',
58
- line: 10,
59
- column: 3,
60
- raw: 'at /path/to/file.ts:10:3',
61
- },
62
- };
63
- const result = formatDefinitionInfo(info, 'MyCustomProcedure');
64
- expect(result).toContain('"MyCustomProcedure"');
65
- });
66
- });
67
- describe('integration with procedure creation', () => {
68
- test('captures location from calling code', () => {
69
- // Helper to simulate what happens in Create()
70
- function simulateCreate() {
71
- return captureDefinitionInfo();
72
- }
73
- const info = simulateCreate();
74
- // Should have captured the location of the simulateCreate() call
75
- expect(info).toBeDefined();
76
- expect(info.definitionStack).toBeDefined();
77
- });
78
- });
79
- });
80
- //# sourceMappingURL=stack-utils.test.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"stack-utils.test.js","sourceRoot":"","sources":["../src/stack-utils.test.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAA;AAC/C,OAAO,EAAE,qBAAqB,EAAE,oBAAoB,EAAkB,MAAM,kBAAkB,CAAA;AAE9F,QAAQ,CAAC,aAAa,EAAE,GAAG,EAAE;IAC3B,QAAQ,CAAC,uBAAuB,EAAE,GAAG,EAAE;QACrC,IAAI,CAAC,wCAAwC,EAAE,GAAG,EAAE;YAClD,MAAM,IAAI,GAAG,qBAAqB,EAAE,CAAA;YAEpC,iDAAiD;YACjD,MAAM,CAAC,IAAI,CAAC,CAAC,WAAW,EAAE,CAAA;YAC1B,MAAM,CAAC,IAAI,CAAC,eAAe,CAAC,CAAC,WAAW,EAAE,CAAA;YAC1C,MAAM,CAAC,OAAO,IAAI,C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