cdk-common 2.0.1381 → 2.0.1383

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.
@@ -8,7 +8,7 @@ This package contains type definitions for node (https://nodejs.org/).
8
8
  Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/node.
9
9
 
10
10
  ### Additional Details
11
- * Last updated: Wed, 21 Jan 2026 23:30:02 GMT
11
+ * Last updated: Wed, 28 Jan 2026 16:44:06 GMT
12
12
  * Dependencies: [undici-types](https://npmjs.com/package/undici-types)
13
13
 
14
14
  # Credits
@@ -357,6 +357,15 @@ declare module "node:http" {
357
357
  * @since v18.17.0, v20.2.0
358
358
  */
359
359
  rejectNonStandardBodyWrites?: boolean | undefined;
360
+ /**
361
+ * If set to `true`, requests without `Content-Length`
362
+ * or `Transfer-Encoding` headers (indicating no body) will be initialized with an
363
+ * already-ended body stream, so they will never emit any stream events
364
+ * (like `'data'` or `'end'`). You can use `req.readableEnded` to detect this case.
365
+ * @since v25.1.0
366
+ * @default false
367
+ */
368
+ optimizeEmptyRequests?: boolean | undefined;
360
369
  }
361
370
  type RequestListener<
362
371
  Request extends typeof IncomingMessage = typeof IncomingMessage,
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@types/node",
3
- "version": "25.0.10",
3
+ "version": "25.1.0",
4
4
  "description": "TypeScript definitions for node",
5
5
  "homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/node",
6
6
  "license": "MIT",
@@ -150,6 +150,6 @@
150
150
  "undici-types": "~7.16.0"
151
151
  },
152
152
  "peerDependencies": {},
153
- "typesPublisherContentHash": "d49085cfe2d18bc2a8f6602d8afed8d606b5972e07f6c51d09eb4d72dbe89bbc",
153
+ "typesPublisherContentHash": "44178b0b7abfa729c2d925a0f2868f64a6c34ff28a1c4e3ea939c65fe2ea10d4",
154
154
  "typeScriptVersion": "5.2"
155
155
  }
@@ -123,6 +123,14 @@ declare module "node:sqlite" {
123
123
  * @default false
124
124
  */
125
125
  allowUnknownNamedParameters?: boolean | undefined;
126
+ /**
127
+ * If `true`, enables the defensive flag. When the defensive flag is enabled,
128
+ * language features that allow ordinary SQL to deliberately corrupt the database file are disabled.
129
+ * The defensive flag can also be set using `enableDefensive()`.
130
+ * @since v25.1.0
131
+ * @default false
132
+ */
133
+ defensive?: boolean | undefined;
126
134
  }
127
135
  interface CreateSessionOptions {
128
136
  /**
@@ -294,6 +302,14 @@ declare module "node:sqlite" {
294
302
  * @param allow Whether to allow loading extensions.
295
303
  */
296
304
  enableLoadExtension(allow: boolean): void;
305
+ /**
306
+ * Enables or disables the defensive flag. When the defensive flag is active,
307
+ * language features that allow ordinary SQL to deliberately corrupt the database file are disabled.
308
+ * See [`SQLITE_DBCONFIG_DEFENSIVE`](https://www.sqlite.org/c3ref/c_dbconfig_defensive.html#sqlitedbconfigdefensive) in the SQLite documentation for details.
309
+ * @since v25.1.0
310
+ * @param active Whether to set the defensive flag.
311
+ */
312
+ enableDefensive(active: boolean): void;
297
313
  /**
298
314
  * This method is a wrapper around [`sqlite3_db_filename()`](https://sqlite.org/c3ref/db_filename.html)
299
315
  * @since v24.0.0
@@ -749,7 +749,7 @@ declare module "node:vm" {
749
749
  * // "contextifiedObject" when creating the context.
750
750
  * export default secret;
751
751
  * `, { context: referencingModule.context });
752
- * moduleMap.set(specifier, linkedModule);
752
+ * moduleMap.set(specifier, requestedModule);
753
753
  * // Resolve the dependencies of the new module as well.
754
754
  * resolveAndLinkDependencies(requestedModule);
755
755
  * }
@@ -819,19 +819,47 @@ declare module "node:vm" {
819
819
  */
820
820
  status: ModuleStatus;
821
821
  /**
822
- * Evaluate the module.
823
- *
824
- * This must be called after the module has been linked; otherwise it will reject.
825
- * It could be called also when the module has already been evaluated, in which
826
- * case it will either do nothing if the initial evaluation ended in success
827
- * (`module.status` is `'evaluated'`) or it will re-throw the exception that the
828
- * initial evaluation resulted in (`module.status` is `'errored'`).
829
- *
830
- * This method cannot be called while the module is being evaluated
831
- * (`module.status` is `'evaluating'`).
832
- *
833
- * Corresponds to the [Evaluate() concrete method](https://tc39.es/ecma262/#sec-moduleevaluation) field of [Cyclic Module Record](https://tc39.es/ecma262/#sec-cyclic-module-records) s in the
834
- * ECMAScript specification.
822
+ * Evaluate the module and its depenendencies. Corresponds to the [Evaluate() concrete method](https://tc39.es/ecma262/#sec-moduleevaluation) field of
823
+ * [Cyclic Module Record](https://tc39.es/ecma262/#sec-cyclic-module-records)s in the ECMAScript specification.
824
+ *
825
+ * If the module is a `vm.SourceTextModule`, `evaluate()` must be called after the module has been instantiated;
826
+ * otherwise `evaluate()` will return a rejected promise.
827
+ *
828
+ * For a `vm.SourceTextModule`, the promise returned by `evaluate()` may be fulfilled either
829
+ * synchronously or asynchronously:
830
+ *
831
+ * 1. If the `vm.SourceTextModule` has no top-level `await` in itself or any of its dependencies, the promise will be
832
+ * fulfilled _synchronously_ after the module and all its dependencies have been evaluated.
833
+ * 1. If the evaluation succeeds, the promise will be _synchronously_ resolved to `undefined`.
834
+ * 2. If the evaluation results in an exception, the promise will be _synchronously_ rejected with the exception
835
+ * that causes the evaluation to fail, which is the same as `module.error`.
836
+ * 2. If the `vm.SourceTextModule` has top-level `await` in itself or any of its dependencies, the promise will be
837
+ * fulfilled _asynchronously_ after the module and all its dependencies have been evaluated.
838
+ * 1. If the evaluation succeeds, the promise will be _asynchronously_ resolved to `undefined`.
839
+ * 2. If the evaluation results in an exception, the promise will be _asynchronously_ rejected with the exception
840
+ * that causes the evaluation to fail.
841
+ *
842
+ * If the module is a `vm.SyntheticModule`, `evaluate()` always returns a promise that fulfills synchronously, see
843
+ * the specification of [Evaluate() of a Synthetic Module Record](https://tc39.es/ecma262/#sec-smr-Evaluate):
844
+ *
845
+ * 1. If the `evaluateCallback` passed to its constructor throws an exception synchronously, `evaluate()` returns
846
+ * a promise that will be synchronously rejected with that exception.
847
+ * 2. If the `evaluateCallback` does not throw an exception, `evaluate()` returns a promise that will be
848
+ * synchronously resolved to `undefined`.
849
+ *
850
+ * The `evaluateCallback` of a `vm.SyntheticModule` is executed synchronously within the `evaluate()` call, and its
851
+ * return value is discarded. This means if `evaluateCallback` is an asynchronous function, the promise returned by
852
+ * `evaluate()` will not reflect its asynchronous behavior, and any rejections from an asynchronous
853
+ * `evaluateCallback` will be lost.
854
+ *
855
+ * `evaluate()` could also be called again after the module has already been evaluated, in which case:
856
+ *
857
+ * 1. If the initial evaluation ended in success (`module.status` is `'evaluated'`), it will do nothing
858
+ * and return a promise that resolves to `undefined`.
859
+ * 2. If the initial evaluation resulted in an exception (`module.status` is `'errored'`), it will re-reject
860
+ * the exception that the initial evaluation resulted in.
861
+ *
862
+ * This method cannot be called while the module is being evaluated (`module.status` is `'evaluating'`).
835
863
  * @return Fulfills with `undefined` upon success.
836
864
  */
837
865
  evaluate(options?: ModuleEvaluateOptions): Promise<void>;
@@ -8,7 +8,7 @@ This package contains type definitions for node (https://nodejs.org/).
8
8
  Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/node.
9
9
 
10
10
  ### Additional Details
11
- * Last updated: Wed, 21 Jan 2026 23:30:02 GMT
11
+ * Last updated: Wed, 28 Jan 2026 16:44:06 GMT
12
12
  * Dependencies: [undici-types](https://npmjs.com/package/undici-types)
13
13
 
14
14
  # Credits
@@ -357,6 +357,15 @@ declare module "node:http" {
357
357
  * @since v18.17.0, v20.2.0
358
358
  */
359
359
  rejectNonStandardBodyWrites?: boolean | undefined;
360
+ /**
361
+ * If set to `true`, requests without `Content-Length`
362
+ * or `Transfer-Encoding` headers (indicating no body) will be initialized with an
363
+ * already-ended body stream, so they will never emit any stream events
364
+ * (like `'data'` or `'end'`). You can use `req.readableEnded` to detect this case.
365
+ * @since v25.1.0
366
+ * @default false
367
+ */
368
+ optimizeEmptyRequests?: boolean | undefined;
360
369
  }
361
370
  type RequestListener<
362
371
  Request extends typeof IncomingMessage = typeof IncomingMessage,
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@types/node",
3
- "version": "25.0.10",
3
+ "version": "25.1.0",
4
4
  "description": "TypeScript definitions for node",
5
5
  "homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/node",
6
6
  "license": "MIT",
@@ -150,6 +150,6 @@
150
150
  "undici-types": "~7.16.0"
151
151
  },
152
152
  "peerDependencies": {},
153
- "typesPublisherContentHash": "d49085cfe2d18bc2a8f6602d8afed8d606b5972e07f6c51d09eb4d72dbe89bbc",
153
+ "typesPublisherContentHash": "44178b0b7abfa729c2d925a0f2868f64a6c34ff28a1c4e3ea939c65fe2ea10d4",
154
154
  "typeScriptVersion": "5.2"
155
155
  }
@@ -123,6 +123,14 @@ declare module "node:sqlite" {
123
123
  * @default false
124
124
  */
125
125
  allowUnknownNamedParameters?: boolean | undefined;
126
+ /**
127
+ * If `true`, enables the defensive flag. When the defensive flag is enabled,
128
+ * language features that allow ordinary SQL to deliberately corrupt the database file are disabled.
129
+ * The defensive flag can also be set using `enableDefensive()`.
130
+ * @since v25.1.0
131
+ * @default false
132
+ */
133
+ defensive?: boolean | undefined;
126
134
  }
127
135
  interface CreateSessionOptions {
128
136
  /**
@@ -294,6 +302,14 @@ declare module "node:sqlite" {
294
302
  * @param allow Whether to allow loading extensions.
295
303
  */
296
304
  enableLoadExtension(allow: boolean): void;
305
+ /**
306
+ * Enables or disables the defensive flag. When the defensive flag is active,
307
+ * language features that allow ordinary SQL to deliberately corrupt the database file are disabled.
308
+ * See [`SQLITE_DBCONFIG_DEFENSIVE`](https://www.sqlite.org/c3ref/c_dbconfig_defensive.html#sqlitedbconfigdefensive) in the SQLite documentation for details.
309
+ * @since v25.1.0
310
+ * @param active Whether to set the defensive flag.
311
+ */
312
+ enableDefensive(active: boolean): void;
297
313
  /**
298
314
  * This method is a wrapper around [`sqlite3_db_filename()`](https://sqlite.org/c3ref/db_filename.html)
299
315
  * @since v24.0.0
@@ -749,7 +749,7 @@ declare module "node:vm" {
749
749
  * // "contextifiedObject" when creating the context.
750
750
  * export default secret;
751
751
  * `, { context: referencingModule.context });
752
- * moduleMap.set(specifier, linkedModule);
752
+ * moduleMap.set(specifier, requestedModule);
753
753
  * // Resolve the dependencies of the new module as well.
754
754
  * resolveAndLinkDependencies(requestedModule);
755
755
  * }
@@ -819,19 +819,47 @@ declare module "node:vm" {
819
819
  */
820
820
  status: ModuleStatus;
821
821
  /**
822
- * Evaluate the module.
823
- *
824
- * This must be called after the module has been linked; otherwise it will reject.
825
- * It could be called also when the module has already been evaluated, in which
826
- * case it will either do nothing if the initial evaluation ended in success
827
- * (`module.status` is `'evaluated'`) or it will re-throw the exception that the
828
- * initial evaluation resulted in (`module.status` is `'errored'`).
829
- *
830
- * This method cannot be called while the module is being evaluated
831
- * (`module.status` is `'evaluating'`).
832
- *
833
- * Corresponds to the [Evaluate() concrete method](https://tc39.es/ecma262/#sec-moduleevaluation) field of [Cyclic Module Record](https://tc39.es/ecma262/#sec-cyclic-module-records) s in the
834
- * ECMAScript specification.
822
+ * Evaluate the module and its depenendencies. Corresponds to the [Evaluate() concrete method](https://tc39.es/ecma262/#sec-moduleevaluation) field of
823
+ * [Cyclic Module Record](https://tc39.es/ecma262/#sec-cyclic-module-records)s in the ECMAScript specification.
824
+ *
825
+ * If the module is a `vm.SourceTextModule`, `evaluate()` must be called after the module has been instantiated;
826
+ * otherwise `evaluate()` will return a rejected promise.
827
+ *
828
+ * For a `vm.SourceTextModule`, the promise returned by `evaluate()` may be fulfilled either
829
+ * synchronously or asynchronously:
830
+ *
831
+ * 1. If the `vm.SourceTextModule` has no top-level `await` in itself or any of its dependencies, the promise will be
832
+ * fulfilled _synchronously_ after the module and all its dependencies have been evaluated.
833
+ * 1. If the evaluation succeeds, the promise will be _synchronously_ resolved to `undefined`.
834
+ * 2. If the evaluation results in an exception, the promise will be _synchronously_ rejected with the exception
835
+ * that causes the evaluation to fail, which is the same as `module.error`.
836
+ * 2. If the `vm.SourceTextModule` has top-level `await` in itself or any of its dependencies, the promise will be
837
+ * fulfilled _asynchronously_ after the module and all its dependencies have been evaluated.
838
+ * 1. If the evaluation succeeds, the promise will be _asynchronously_ resolved to `undefined`.
839
+ * 2. If the evaluation results in an exception, the promise will be _asynchronously_ rejected with the exception
840
+ * that causes the evaluation to fail.
841
+ *
842
+ * If the module is a `vm.SyntheticModule`, `evaluate()` always returns a promise that fulfills synchronously, see
843
+ * the specification of [Evaluate() of a Synthetic Module Record](https://tc39.es/ecma262/#sec-smr-Evaluate):
844
+ *
845
+ * 1. If the `evaluateCallback` passed to its constructor throws an exception synchronously, `evaluate()` returns
846
+ * a promise that will be synchronously rejected with that exception.
847
+ * 2. If the `evaluateCallback` does not throw an exception, `evaluate()` returns a promise that will be
848
+ * synchronously resolved to `undefined`.
849
+ *
850
+ * The `evaluateCallback` of a `vm.SyntheticModule` is executed synchronously within the `evaluate()` call, and its
851
+ * return value is discarded. This means if `evaluateCallback` is an asynchronous function, the promise returned by
852
+ * `evaluate()` will not reflect its asynchronous behavior, and any rejections from an asynchronous
853
+ * `evaluateCallback` will be lost.
854
+ *
855
+ * `evaluate()` could also be called again after the module has already been evaluated, in which case:
856
+ *
857
+ * 1. If the initial evaluation ended in success (`module.status` is `'evaluated'`), it will do nothing
858
+ * and return a promise that resolves to `undefined`.
859
+ * 2. If the initial evaluation resulted in an exception (`module.status` is `'errored'`), it will re-reject
860
+ * the exception that the initial evaluation resulted in.
861
+ *
862
+ * This method cannot be called while the module is being evaluated (`module.status` is `'evaluating'`).
835
863
  * @return Fulfills with `undefined` upon success.
836
864
  */
837
865
  evaluate(options?: ModuleEvaluateOptions): Promise<void>;
package/package.json CHANGED
@@ -50,11 +50,11 @@
50
50
  "jest": "^27",
51
51
  "jest-junit": "^16",
52
52
  "jsii": "5.7.x",
53
- "jsii-diff": "^1.125.0",
53
+ "jsii-diff": "^1.126.0",
54
54
  "jsii-docgen": "^10.5.0",
55
- "jsii-pacmak": "^1.125.0",
55
+ "jsii-pacmak": "^1.126.0",
56
56
  "jsii-rosetta": "5.7.x",
57
- "projen": "0.99.7",
57
+ "projen": "0.99.8",
58
58
  "ts-jest": "^27",
59
59
  "typescript": "^5"
60
60
  },
@@ -87,7 +87,7 @@
87
87
  "publishConfig": {
88
88
  "access": "public"
89
89
  },
90
- "version": "2.0.1381",
90
+ "version": "2.0.1383",
91
91
  "jest": {
92
92
  "coverageProvider": "v8",
93
93
  "testMatch": [