projen 0.91.4 → 0.91.6

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 (222) hide show
  1. package/.jsii +181 -112
  2. package/lib/awscdk/auto-discover.js +5 -5
  3. package/lib/awscdk/awscdk-app-java.js +1 -1
  4. package/lib/awscdk/awscdk-app-py.js +1 -1
  5. package/lib/awscdk/awscdk-app-ts.js +3 -3
  6. package/lib/awscdk/awscdk-construct.js +2 -2
  7. package/lib/awscdk/awscdk-deps-java.js +1 -1
  8. package/lib/awscdk/awscdk-deps-js.js +1 -1
  9. package/lib/awscdk/awscdk-deps-py.js +1 -1
  10. package/lib/awscdk/awscdk-deps.d.ts +17 -0
  11. package/lib/awscdk/awscdk-deps.js +3 -2
  12. package/lib/awscdk/cdk-config.js +1 -1
  13. package/lib/awscdk/cdk-tasks.js +1 -1
  14. package/lib/awscdk/integration-test.js +1 -1
  15. package/lib/awscdk/lambda-extension.js +1 -1
  16. package/lib/awscdk/lambda-function.js +2 -2
  17. package/lib/build/build-workflow.js +1 -1
  18. package/lib/cdk/auto-discover-base.js +2 -2
  19. package/lib/cdk/construct-lib.js +1 -1
  20. package/lib/cdk/integration-test-base.js +1 -1
  21. package/lib/cdk/jsii-docgen.js +1 -1
  22. package/lib/cdk/jsii-project.js +4 -3
  23. package/lib/cdk8s/auto-discover.js +2 -2
  24. package/lib/cdk8s/cdk8s-app-py.js +1 -1
  25. package/lib/cdk8s/cdk8s-app-ts.js +1 -1
  26. package/lib/cdk8s/cdk8s-construct.js +1 -1
  27. package/lib/cdk8s/cdk8s-deps-py.js +1 -1
  28. package/lib/cdk8s/cdk8s-deps.js +1 -1
  29. package/lib/cdk8s/integration-test.js +1 -1
  30. package/lib/cdktf/cdktf-construct.js +1 -1
  31. package/lib/circleci/circleci.js +1 -1
  32. package/lib/component.js +1 -1
  33. package/lib/dependencies.js +1 -1
  34. package/lib/dev-env.js +1 -1
  35. package/lib/docker-compose/docker-compose-service.js +1 -1
  36. package/lib/docker-compose/docker-compose.js +1 -1
  37. package/lib/file.js +1 -1
  38. package/lib/gitattributes.js +1 -1
  39. package/lib/github/actions-provider.js +1 -1
  40. package/lib/github/auto-approve.js +1 -1
  41. package/lib/github/auto-merge.js +1 -1
  42. package/lib/github/auto-queue.js +1 -1
  43. package/lib/github/dependabot.js +1 -1
  44. package/lib/github/github-credentials.js +1 -1
  45. package/lib/github/github-project.js +1 -1
  46. package/lib/github/github.js +1 -1
  47. package/lib/github/merge-queue.js +1 -1
  48. package/lib/github/mergify.js +1 -1
  49. package/lib/github/pr-template.js +1 -1
  50. package/lib/github/pull-request-backport.js +1 -1
  51. package/lib/github/pull-request-lint.js +1 -1
  52. package/lib/github/stale.js +1 -1
  53. package/lib/github/task-workflow-job.js +1 -1
  54. package/lib/github/task-workflow.js +1 -1
  55. package/lib/github/workflow-actions.js +1 -1
  56. package/lib/github/workflow-jobs.js +1 -1
  57. package/lib/github/workflow-steps.js +1 -1
  58. package/lib/github/workflows.js +1 -1
  59. package/lib/gitlab/configuration.js +1 -1
  60. package/lib/gitlab/gitlab-configuration.js +1 -1
  61. package/lib/gitlab/nested-configuration.js +1 -1
  62. package/lib/gitpod.js +1 -1
  63. package/lib/ignore-file.js +1 -1
  64. package/lib/ini.js +1 -1
  65. package/lib/java/java-project.js +1 -1
  66. package/lib/java/junit.js +1 -1
  67. package/lib/java/maven-compile.js +1 -1
  68. package/lib/java/maven-packaging.js +1 -1
  69. package/lib/java/maven-sample.js +1 -1
  70. package/lib/java/pom.js +2 -2
  71. package/lib/java/projenrc.js +1 -1
  72. package/lib/javascript/bundler.js +1 -1
  73. package/lib/javascript/eslint.js +1 -1
  74. package/lib/javascript/jest.js +6 -6
  75. package/lib/javascript/license-checker.js +1 -1
  76. package/lib/javascript/node-package.d.ts +10 -0
  77. package/lib/javascript/node-package.js +3 -2
  78. package/lib/javascript/node-project.js +4 -3
  79. package/lib/javascript/npm-config.js +1 -1
  80. package/lib/javascript/prettier.js +1 -1
  81. package/lib/javascript/projenrc.js +1 -1
  82. package/lib/javascript/typescript-config.js +2 -2
  83. package/lib/javascript/upgrade-dependencies.js +2 -2
  84. package/lib/javascript/yarnrc.js +1 -1
  85. package/lib/json-patch.js +1 -1
  86. package/lib/json.js +1 -1
  87. package/lib/license.js +1 -1
  88. package/lib/logger.js +1 -1
  89. package/lib/makefile.js +1 -1
  90. package/lib/object-file.js +1 -1
  91. package/lib/project-build.js +1 -1
  92. package/lib/project-tree.js +1 -1
  93. package/lib/project.js +1 -1
  94. package/lib/projects.js +1 -1
  95. package/lib/projenrc-json.js +2 -2
  96. package/lib/projenrc.js +1 -1
  97. package/lib/python/pip.js +1 -1
  98. package/lib/python/poetry.js +2 -2
  99. package/lib/python/projenrc.js +1 -1
  100. package/lib/python/pytest-sample.js +1 -1
  101. package/lib/python/pytest.js +1 -1
  102. package/lib/python/python-project.js +1 -1
  103. package/lib/python/python-sample.js +1 -1
  104. package/lib/python/requirements-file.js +1 -1
  105. package/lib/python/setuppy.js +1 -1
  106. package/lib/python/setuptools.js +1 -1
  107. package/lib/python/venv.js +1 -1
  108. package/lib/readme.js +1 -1
  109. package/lib/release/publisher.js +1 -1
  110. package/lib/release/release-trigger.js +1 -1
  111. package/lib/release/release.js +1 -1
  112. package/lib/renovatebot.js +1 -1
  113. package/lib/sample-file.js +2 -2
  114. package/lib/semver.js +1 -1
  115. package/lib/source-code.js +1 -1
  116. package/lib/task-runtime.js +1 -1
  117. package/lib/task.js +1 -1
  118. package/lib/tasks.js +1 -1
  119. package/lib/testing.js +1 -1
  120. package/lib/textfile.js +1 -1
  121. package/lib/toml.js +1 -1
  122. package/lib/typescript/projenrc-ts.js +1 -1
  123. package/lib/typescript/projenrc.js +1 -1
  124. package/lib/typescript/typescript-typedoc.js +1 -1
  125. package/lib/typescript/typescript.js +6 -6
  126. package/lib/version.js +2 -2
  127. package/lib/vscode/devcontainer.js +1 -1
  128. package/lib/vscode/extensions.js +1 -1
  129. package/lib/vscode/launch-config.js +1 -1
  130. package/lib/vscode/settings.js +1 -1
  131. package/lib/vscode/vscode.js +1 -1
  132. package/lib/web/next.js +3 -3
  133. package/lib/web/postcss.js +1 -1
  134. package/lib/web/react.js +4 -4
  135. package/lib/web/tailwind.js +1 -1
  136. package/lib/xmlfile.js +1 -1
  137. package/lib/yaml.js +1 -1
  138. package/node_modules/is-core-module/CHANGELOG.md +6 -0
  139. package/node_modules/is-core-module/core.json +1 -1
  140. package/node_modules/is-core-module/package.json +1 -1
  141. package/node_modules/yaml/README.md +27 -8
  142. package/node_modules/yaml/browser/dist/compose/resolve-props.js +1 -1
  143. package/node_modules/yaml/browser/dist/log.js +1 -4
  144. package/node_modules/yaml/browser/dist/schema/yaml-1.1/binary.js +2 -11
  145. package/node_modules/yaml/browser/dist/util.js +1 -1
  146. package/node_modules/yaml/dist/compose/compose-collection.d.ts +4 -4
  147. package/node_modules/yaml/dist/compose/compose-doc.d.ts +6 -6
  148. package/node_modules/yaml/dist/compose/compose-node.d.ts +7 -7
  149. package/node_modules/yaml/dist/compose/compose-scalar.d.ts +4 -4
  150. package/node_modules/yaml/dist/compose/composer.d.ts +7 -6
  151. package/node_modules/yaml/dist/compose/composer.js +2 -1
  152. package/node_modules/yaml/dist/compose/resolve-block-map.d.ts +5 -5
  153. package/node_modules/yaml/dist/compose/resolve-block-scalar.d.ts +5 -5
  154. package/node_modules/yaml/dist/compose/resolve-block-seq.d.ts +5 -5
  155. package/node_modules/yaml/dist/compose/resolve-end.d.ts +2 -2
  156. package/node_modules/yaml/dist/compose/resolve-flow-collection.d.ts +7 -7
  157. package/node_modules/yaml/dist/compose/resolve-flow-scalar.d.ts +4 -4
  158. package/node_modules/yaml/dist/compose/resolve-props.d.ts +2 -2
  159. package/node_modules/yaml/dist/compose/resolve-props.js +1 -1
  160. package/node_modules/yaml/dist/compose/util-contains-newline.d.ts +1 -1
  161. package/node_modules/yaml/dist/compose/util-empty-scalar-position.d.ts +1 -1
  162. package/node_modules/yaml/dist/compose/util-flow-indent-check.d.ts +2 -2
  163. package/node_modules/yaml/dist/compose/util-map-includes.d.ts +3 -3
  164. package/node_modules/yaml/dist/doc/Document.d.ts +11 -11
  165. package/node_modules/yaml/dist/doc/anchors.d.ts +2 -2
  166. package/node_modules/yaml/dist/doc/createNode.d.ts +4 -4
  167. package/node_modules/yaml/dist/doc/directives.d.ts +1 -1
  168. package/node_modules/yaml/dist/index.d.ts +21 -18
  169. package/node_modules/yaml/dist/log.js +4 -2
  170. package/node_modules/yaml/dist/nodes/Alias.d.ts +9 -8
  171. package/node_modules/yaml/dist/nodes/Collection.d.ts +4 -4
  172. package/node_modules/yaml/dist/nodes/Node.d.ts +10 -10
  173. package/node_modules/yaml/dist/nodes/Pair.d.ts +9 -8
  174. package/node_modules/yaml/dist/nodes/Scalar.d.ts +4 -3
  175. package/node_modules/yaml/dist/nodes/YAMLMap.d.ts +10 -10
  176. package/node_modules/yaml/dist/nodes/YAMLSeq.d.ts +10 -10
  177. package/node_modules/yaml/dist/nodes/addPairToJSMap.d.ts +3 -3
  178. package/node_modules/yaml/dist/nodes/identity.d.ts +7 -7
  179. package/node_modules/yaml/dist/nodes/toJS.d.ts +2 -2
  180. package/node_modules/yaml/dist/options.d.ts +10 -10
  181. package/node_modules/yaml/dist/parse/cst-scalar.d.ts +4 -4
  182. package/node_modules/yaml/dist/parse/cst-stringify.d.ts +1 -1
  183. package/node_modules/yaml/dist/parse/cst-visit.d.ts +2 -2
  184. package/node_modules/yaml/dist/parse/cst.d.ts +4 -3
  185. package/node_modules/yaml/dist/parse/lexer.d.ts +1 -1
  186. package/node_modules/yaml/dist/parse/parser.d.ts +4 -4
  187. package/node_modules/yaml/dist/parse/parser.js +2 -1
  188. package/node_modules/yaml/dist/public-api.d.ts +6 -5
  189. package/node_modules/yaml/dist/schema/Schema.d.ts +4 -4
  190. package/node_modules/yaml/dist/schema/common/map.d.ts +1 -1
  191. package/node_modules/yaml/dist/schema/common/null.d.ts +1 -1
  192. package/node_modules/yaml/dist/schema/common/seq.d.ts +1 -1
  193. package/node_modules/yaml/dist/schema/common/string.d.ts +1 -1
  194. package/node_modules/yaml/dist/schema/core/bool.d.ts +1 -1
  195. package/node_modules/yaml/dist/schema/core/float.d.ts +1 -1
  196. package/node_modules/yaml/dist/schema/core/int.d.ts +1 -1
  197. package/node_modules/yaml/dist/schema/core/schema.d.ts +1 -1
  198. package/node_modules/yaml/dist/schema/json/schema.d.ts +1 -1
  199. package/node_modules/yaml/dist/schema/tags.d.ts +2 -2
  200. package/node_modules/yaml/dist/schema/types.d.ts +8 -8
  201. package/node_modules/yaml/dist/schema/yaml-1.1/binary.d.ts +1 -1
  202. package/node_modules/yaml/dist/schema/yaml-1.1/binary.js +6 -5
  203. package/node_modules/yaml/dist/schema/yaml-1.1/bool.d.ts +1 -1
  204. package/node_modules/yaml/dist/schema/yaml-1.1/float.d.ts +1 -1
  205. package/node_modules/yaml/dist/schema/yaml-1.1/int.d.ts +1 -1
  206. package/node_modules/yaml/dist/schema/yaml-1.1/merge.d.ts +3 -3
  207. package/node_modules/yaml/dist/schema/yaml-1.1/omap.d.ts +11 -17
  208. package/node_modules/yaml/dist/schema/yaml-1.1/pairs.d.ts +7 -7
  209. package/node_modules/yaml/dist/schema/yaml-1.1/schema.d.ts +1 -1
  210. package/node_modules/yaml/dist/schema/yaml-1.1/set.d.ts +9 -9
  211. package/node_modules/yaml/dist/schema/yaml-1.1/timestamp.d.ts +1 -1
  212. package/node_modules/yaml/dist/stringify/stringify.d.ts +3 -3
  213. package/node_modules/yaml/dist/stringify/stringifyCollection.d.ts +2 -2
  214. package/node_modules/yaml/dist/stringify/stringifyDocument.d.ts +3 -3
  215. package/node_modules/yaml/dist/stringify/stringifyNumber.d.ts +1 -1
  216. package/node_modules/yaml/dist/stringify/stringifyPair.d.ts +2 -2
  217. package/node_modules/yaml/dist/stringify/stringifyString.d.ts +2 -2
  218. package/node_modules/yaml/dist/util.d.ts +16 -12
  219. package/node_modules/yaml/dist/util.js +2 -2
  220. package/node_modules/yaml/dist/visit.d.ts +7 -7
  221. package/node_modules/yaml/package.json +4 -4
  222. package/package.json +3 -3
@@ -1,4 +1,4 @@
1
- import type { ScalarTag } from '../types.js';
1
+ import type { ScalarTag } from '../types';
2
2
  export declare const trueTag: ScalarTag & {
3
3
  test: RegExp;
4
4
  };
@@ -1,4 +1,4 @@
1
- import type { ScalarTag } from '../types.js';
1
+ import type { ScalarTag } from '../types';
2
2
  export declare const floatNaN: ScalarTag;
3
3
  export declare const floatExp: ScalarTag;
4
4
  export declare const float: ScalarTag;
@@ -1,4 +1,4 @@
1
- import type { ScalarTag } from '../types.js';
1
+ import type { ScalarTag } from '../types';
2
2
  export declare const intBin: ScalarTag;
3
3
  export declare const intOct: ScalarTag;
4
4
  export declare const int: ScalarTag;
@@ -1,6 +1,6 @@
1
- import type { ToJSContext } from '../../nodes/toJS.js';
2
- import type { MapLike } from '../../nodes/YAMLMap.js';
3
- import type { ScalarTag } from '../types.js';
1
+ import type { ToJSContext } from '../../nodes/toJS';
2
+ import type { MapLike } from '../../nodes/YAMLMap';
3
+ import type { ScalarTag } from '../types';
4
4
  export declare const merge: ScalarTag & {
5
5
  identify(value: unknown): boolean;
6
6
  test: RegExp;
@@ -1,23 +1,17 @@
1
- import { ToJSContext } from '../../nodes/toJS.js';
2
- import { YAMLSeq } from '../../nodes/YAMLSeq.js';
3
- import { CreateNodeContext } from '../../util.js';
4
- import type { Schema } from '../Schema.js';
5
- import { CollectionTag } from '../types.js';
1
+ import type { ToJSContext } from '../../nodes/toJS';
2
+ import { YAMLMap } from '../../nodes/YAMLMap';
3
+ import { YAMLSeq } from '../../nodes/YAMLSeq';
4
+ import type { CreateNodeContext } from '../../util';
5
+ import type { Schema } from '../Schema';
6
+ import type { CollectionTag } from '../types';
6
7
  export declare class YAMLOMap extends YAMLSeq {
7
8
  static tag: string;
8
9
  constructor();
9
- add: (pair: import("../../index.js").Pair<any, any> | {
10
- key: any;
11
- value: any;
12
- }, overwrite?: boolean) => void;
13
- delete: (key: unknown) => boolean;
14
- get: {
15
- (key: unknown, keepScalar: true): import("../../index.js").Scalar<any> | undefined;
16
- (key: unknown, keepScalar?: false): any;
17
- (key: unknown, keepScalar?: boolean): any;
18
- };
19
- has: (key: unknown) => boolean;
20
- set: (key: any, value: any) => void;
10
+ add: typeof YAMLMap.prototype.add;
11
+ delete: typeof YAMLMap.prototype.delete;
12
+ get: typeof YAMLMap.prototype.get;
13
+ has: typeof YAMLMap.prototype.has;
14
+ set: typeof YAMLMap.prototype.set;
21
15
  /**
22
16
  * If `ctx` is given, the return type is actually `Map<unknown, unknown>`,
23
17
  * but TypeScript won't allow widening the signature of a child method.
@@ -1,10 +1,10 @@
1
- import type { CreateNodeContext } from '../../doc/createNode.js';
2
- import type { ParsedNode } from '../../nodes/Node.js';
3
- import { Pair } from '../../nodes/Pair.js';
4
- import { YAMLMap } from '../../nodes/YAMLMap.js';
5
- import { YAMLSeq } from '../../nodes/YAMLSeq.js';
6
- import type { Schema } from '../../schema/Schema.js';
7
- import type { CollectionTag } from '../types.js';
1
+ import type { CreateNodeContext } from '../../doc/createNode';
2
+ import type { ParsedNode } from '../../nodes/Node';
3
+ import { Pair } from '../../nodes/Pair';
4
+ import type { YAMLMap } from '../../nodes/YAMLMap';
5
+ import { YAMLSeq } from '../../nodes/YAMLSeq';
6
+ import type { Schema } from '../../schema/Schema';
7
+ import type { CollectionTag } from '../types';
8
8
  export declare function resolvePairs(seq: YAMLSeq.Parsed<ParsedNode | Pair<ParsedNode, ParsedNode | null>> | YAMLMap.Parsed, onError: (message: string) => void): YAMLSeq.Parsed<Pair<ParsedNode, ParsedNode | null>>;
9
9
  export declare function createPairs(schema: Schema, iterable: unknown, ctx: CreateNodeContext): YAMLSeq<unknown>;
10
10
  export declare const pairs: CollectionTag;
@@ -1 +1 @@
1
- export declare const schema: (import("../types.js").CollectionTag | import("../types.js").ScalarTag)[];
1
+ export declare const schema: (import('../types').CollectionTag | import('../types').ScalarTag)[];
@@ -1,11 +1,11 @@
1
- import { Pair } from '../../nodes/Pair.js';
2
- import { Scalar } from '../../nodes/Scalar.js';
3
- import { ToJSContext } from '../../nodes/toJS.js';
4
- import { YAMLMap } from '../../nodes/YAMLMap.js';
5
- import type { Schema } from '../../schema/Schema.js';
6
- import type { StringifyContext } from '../../stringify/stringify.js';
7
- import { CreateNodeContext } from '../../util.js';
8
- import type { CollectionTag } from '../types.js';
1
+ import { Pair } from '../../nodes/Pair';
2
+ import type { Scalar } from '../../nodes/Scalar';
3
+ import type { ToJSContext } from '../../nodes/toJS';
4
+ import { YAMLMap } from '../../nodes/YAMLMap';
5
+ import type { Schema } from '../../schema/Schema';
6
+ import type { StringifyContext } from '../../stringify/stringify';
7
+ import type { CreateNodeContext } from '../../util';
8
+ import type { CollectionTag } from '../types';
9
9
  export declare class YAMLSet<T = unknown> extends YAMLMap<T, Scalar<null> | null> {
10
10
  static tag: string;
11
11
  constructor(schema?: Schema);
@@ -23,6 +23,6 @@ export declare class YAMLSet<T = unknown> extends YAMLMap<T, Scalar<null> | null
23
23
  set(key: T, value: null): void;
24
24
  toJSON(_?: unknown, ctx?: ToJSContext): any;
25
25
  toString(ctx?: StringifyContext, onComment?: () => void, onChompKeep?: () => void): string;
26
- static from(schema: Schema, iterable: unknown, ctx: CreateNodeContext): YAMLSet<unknown>;
26
+ static from(schema: Schema, iterable: unknown, ctx: CreateNodeContext): YAMLSet;
27
27
  }
28
28
  export declare const set: CollectionTag;
@@ -1,4 +1,4 @@
1
- import type { ScalarTag } from '../types.js';
1
+ import type { ScalarTag } from '../types';
2
2
  export declare const intTime: ScalarTag;
3
3
  export declare const floatTime: ScalarTag;
4
4
  export declare const timestamp: ScalarTag & {
@@ -1,6 +1,6 @@
1
- import type { Document } from '../doc/Document.js';
2
- import type { Alias } from '../nodes/Alias.js';
3
- import type { ToStringOptions } from '../options.js';
1
+ import type { Document } from '../doc/Document';
2
+ import type { Alias } from '../nodes/Alias';
3
+ import type { ToStringOptions } from '../options';
4
4
  export type StringifyContext = {
5
5
  actualString?: boolean;
6
6
  allNullValues?: boolean;
@@ -1,5 +1,5 @@
1
- import { Collection } from '../nodes/Collection.js';
2
- import { StringifyContext } from './stringify.js';
1
+ import type { Collection } from '../nodes/Collection';
2
+ import type { StringifyContext } from './stringify';
3
3
  interface StringifyCollectionOptions {
4
4
  blockItemPrefix: string;
5
5
  flowChars: {
@@ -1,4 +1,4 @@
1
- import type { Document } from '../doc/Document.js';
2
- import type { Node } from '../nodes/Node.js';
3
- import type { ToStringOptions } from '../options.js';
1
+ import type { Document } from '../doc/Document';
2
+ import type { Node } from '../nodes/Node';
3
+ import type { ToStringOptions } from '../options';
4
4
  export declare function stringifyDocument(doc: Readonly<Document<Node, boolean>>, options: ToStringOptions): string;
@@ -1,2 +1,2 @@
1
- import type { Scalar } from '../nodes/Scalar.js';
1
+ import type { Scalar } from '../nodes/Scalar';
2
2
  export declare function stringifyNumber({ format, minFractionDigits, tag, value }: Scalar): string;
@@ -1,3 +1,3 @@
1
- import type { Pair } from '../nodes/Pair.js';
2
- import { StringifyContext } from './stringify.js';
1
+ import type { Pair } from '../nodes/Pair';
2
+ import type { StringifyContext } from './stringify';
3
3
  export declare function stringifyPair({ key, value }: Readonly<Pair>, ctx: StringifyContext, onComment?: () => void, onChompKeep?: () => void): string;
@@ -1,5 +1,5 @@
1
- import { Scalar } from '../nodes/Scalar.js';
2
- import type { StringifyContext } from './stringify.js';
1
+ import { Scalar } from '../nodes/Scalar';
2
+ import type { StringifyContext } from './stringify';
3
3
  interface StringifyScalar {
4
4
  value: string;
5
5
  comment?: string | null;
@@ -1,12 +1,16 @@
1
- export { createNode, CreateNodeContext } from './doc/createNode.js';
2
- export { debug, LogLevelId, warn } from './log.js';
3
- export { createPair } from './nodes/Pair.js';
4
- export { findPair } from './nodes/YAMLMap.js';
5
- export { toJS, ToJSContext } from './nodes/toJS.js';
6
- export { map as mapTag } from './schema/common/map.js';
7
- export { seq as seqTag } from './schema/common/seq.js';
8
- export { string as stringTag } from './schema/common/string.js';
9
- export { foldFlowLines, FoldOptions } from './stringify/foldFlowLines';
10
- export { StringifyContext } from './stringify/stringify.js';
11
- export { stringifyNumber } from './stringify/stringifyNumber.js';
12
- export { stringifyString } from './stringify/stringifyString.js';
1
+ export { createNode } from './doc/createNode';
2
+ export type { CreateNodeContext } from './doc/createNode';
3
+ export { debug, warn } from './log';
4
+ export type { LogLevelId } from './log';
5
+ export { createPair } from './nodes/Pair';
6
+ export { toJS } from './nodes/toJS';
7
+ export type { ToJSContext } from './nodes/toJS';
8
+ export { findPair } from './nodes/YAMLMap';
9
+ export { map as mapTag } from './schema/common/map';
10
+ export { seq as seqTag } from './schema/common/seq';
11
+ export { string as stringTag } from './schema/common/string';
12
+ export { foldFlowLines } from './stringify/foldFlowLines';
13
+ export type { FoldOptions } from './stringify/foldFlowLines';
14
+ export type { StringifyContext } from './stringify/stringify';
15
+ export { stringifyNumber } from './stringify/stringifyNumber';
16
+ export { stringifyString } from './stringify/stringifyString';
@@ -3,8 +3,8 @@
3
3
  var createNode = require('./doc/createNode.js');
4
4
  var log = require('./log.js');
5
5
  var Pair = require('./nodes/Pair.js');
6
- var YAMLMap = require('./nodes/YAMLMap.js');
7
6
  var toJS = require('./nodes/toJS.js');
7
+ var YAMLMap = require('./nodes/YAMLMap.js');
8
8
  var map = require('./schema/common/map.js');
9
9
  var seq = require('./schema/common/seq.js');
10
10
  var string = require('./schema/common/string.js');
@@ -18,8 +18,8 @@ exports.createNode = createNode.createNode;
18
18
  exports.debug = log.debug;
19
19
  exports.warn = log.warn;
20
20
  exports.createPair = Pair.createPair;
21
- exports.findPair = YAMLMap.findPair;
22
21
  exports.toJS = toJS.toJS;
22
+ exports.findPair = YAMLMap.findPair;
23
23
  exports.mapTag = map.map;
24
24
  exports.seqTag = seq.seq;
25
25
  exports.stringTag = string.string;
@@ -1,10 +1,10 @@
1
- import type { Document } from './doc/Document.js';
2
- import type { Alias } from './nodes/Alias.js';
3
- import { Node } from './nodes/Node.js';
4
- import type { Pair } from './nodes/Pair.js';
5
- import type { Scalar } from './nodes/Scalar.js';
6
- import type { YAMLMap } from './nodes/YAMLMap.js';
7
- import type { YAMLSeq } from './nodes/YAMLSeq.js';
1
+ import type { Document } from './doc/Document';
2
+ import type { Alias } from './nodes/Alias';
3
+ import type { Node } from './nodes/Node';
4
+ import type { Pair } from './nodes/Pair';
5
+ import type { Scalar } from './nodes/Scalar';
6
+ import type { YAMLMap } from './nodes/YAMLMap';
7
+ import type { YAMLSeq } from './nodes/YAMLSeq';
8
8
  export type visitorFn<T> = (key: number | 'key' | 'value' | null, node: T, path: readonly (Document | Node | Pair)[]) => void | symbol | number | Node | Pair;
9
9
  export type visitor = visitorFn<unknown> | {
10
10
  Alias?: visitorFn<Alias>;
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "yaml",
3
- "version": "2.6.1",
3
+ "version": "2.7.0",
4
4
  "license": "ISC",
5
5
  "author": "Eemeli Aro <eemeli@gmail.com>",
6
6
  "repository": "github:eemeli/yaml",
@@ -74,7 +74,7 @@
74
74
  "@eslint/js": "^9.9.1",
75
75
  "@rollup/plugin-babel": "^6.0.3",
76
76
  "@rollup/plugin-replace": "^5.0.2",
77
- "@rollup/plugin-typescript": "^11.0.0",
77
+ "@rollup/plugin-typescript": "^12.1.1",
78
78
  "@types/jest": "^29.2.4",
79
79
  "@types/node": "^20.11.20",
80
80
  "babel-jest": "^29.0.1",
@@ -86,8 +86,8 @@
86
86
  "jest-ts-webcompat-resolver": "^1.0.0",
87
87
  "prettier": "^3.0.2",
88
88
  "rollup": "^4.12.0",
89
- "tslib": "^2.1.0",
90
- "typescript": "^5.0.3",
89
+ "tslib": "^2.8.1",
90
+ "typescript": "^5.7.2",
91
91
  "typescript-eslint": "^8.4.0"
92
92
  },
93
93
  "engines": {
package/package.json CHANGED
@@ -60,14 +60,14 @@
60
60
  "@typescript-eslint/parser": "^8",
61
61
  "all-contributors-cli": "^6.26.1",
62
62
  "commit-and-tag-version": "^12",
63
- "esbuild": "^0.24.0",
63
+ "esbuild": "^0.24.2",
64
64
  "eslint": "^9",
65
65
  "eslint-config-prettier": "^8.10.0",
66
66
  "eslint-import-resolver-typescript": "^2.7.1",
67
67
  "eslint-plugin-import": "^2.31.0",
68
68
  "eslint-plugin-prettier": "^4.2.1",
69
69
  "jest": "^29",
70
- "jest-junit": "^15",
70
+ "jest-junit": "^16",
71
71
  "jsii": "5.7.x",
72
72
  "jsii-diff": "^1.106.0",
73
73
  "jsii-docgen": "^10.5.0",
@@ -130,7 +130,7 @@
130
130
  "publishConfig": {
131
131
  "access": "public"
132
132
  },
133
- "version": "0.91.4",
133
+ "version": "0.91.6",
134
134
  "jest": {
135
135
  "coverageProvider": "v8",
136
136
  "coverageReporters": [