@cucumber/cucumber 8.0.0-rc.3 → 8.1.1

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 (84) hide show
  1. package/README.md +1 -0
  2. package/bin/{cucumber-js → cucumber.js} +0 -0
  3. package/lib/api/convert_configuration.js +22 -21
  4. package/lib/api/convert_configuration.js.map +1 -1
  5. package/lib/api/index.js +5 -1
  6. package/lib/api/index.js.map +1 -1
  7. package/lib/cli/helpers.js +6 -1
  8. package/lib/cli/helpers.js.map +1 -1
  9. package/lib/cli/run.js +1 -1
  10. package/lib/cli/run.js.map +1 -1
  11. package/lib/cli/validate_node_engine_version.d.ts +4 -1
  12. package/lib/cli/validate_node_engine_version.js +8 -4
  13. package/lib/cli/validate_node_engine_version.js.map +1 -1
  14. package/lib/configuration/argv_parser.js +1 -2
  15. package/lib/configuration/argv_parser.js.map +1 -1
  16. package/lib/configuration/check_schema.js +5 -1
  17. package/lib/configuration/check_schema.js.map +1 -1
  18. package/lib/configuration/index.js +5 -1
  19. package/lib/configuration/index.js.map +1 -1
  20. package/lib/configuration/option_splitter.js +1 -1
  21. package/lib/configuration/option_splitter.js.map +1 -1
  22. package/lib/formatter/builder.d.ts +1 -0
  23. package/lib/formatter/builder.js +26 -7
  24. package/lib/formatter/builder.js.map +1 -1
  25. package/lib/formatter/fixtures/typescript.d.ts +2 -0
  26. package/lib/formatter/fixtures/typescript.js +6 -0
  27. package/lib/formatter/fixtures/typescript.js.map +1 -0
  28. package/lib/formatter/helpers/event_data_collector.js +5 -1
  29. package/lib/formatter/helpers/event_data_collector.js.map +1 -1
  30. package/lib/formatter/helpers/index.js +5 -1
  31. package/lib/formatter/helpers/index.js.map +1 -1
  32. package/lib/formatter/helpers/summary_helpers.js +5 -1
  33. package/lib/formatter/helpers/summary_helpers.js.map +1 -1
  34. package/lib/formatter/helpers/test_case_attempt_formatter.js +9 -2
  35. package/lib/formatter/helpers/test_case_attempt_formatter.js.map +1 -1
  36. package/lib/formatter/helpers/test_case_attempt_parser.d.ts +1 -0
  37. package/lib/formatter/helpers/test_case_attempt_parser.js +6 -1
  38. package/lib/formatter/helpers/test_case_attempt_parser.js.map +1 -1
  39. package/lib/formatter/helpers/usage_helpers/index.js +5 -1
  40. package/lib/formatter/helpers/usage_helpers/index.js.map +1 -1
  41. package/lib/formatter/json_formatter.js +5 -1
  42. package/lib/formatter/json_formatter.js.map +1 -1
  43. package/lib/formatter/progress_formatter.js +5 -1
  44. package/lib/formatter/progress_formatter.js.map +1 -1
  45. package/lib/formatter/rerun_formatter.js +5 -1
  46. package/lib/formatter/rerun_formatter.js.map +1 -1
  47. package/lib/formatter/snippets_formatter.js +5 -1
  48. package/lib/formatter/snippets_formatter.js.map +1 -1
  49. package/lib/formatter/step_definition_snippet_builder/javascript_snippet_syntax.d.ts +1 -0
  50. package/lib/formatter/step_definition_snippet_builder/javascript_snippet_syntax.js +9 -1
  51. package/lib/formatter/step_definition_snippet_builder/javascript_snippet_syntax.js.map +1 -1
  52. package/lib/formatter/usage_formatter.js +5 -1
  53. package/lib/formatter/usage_formatter.js.map +1 -1
  54. package/lib/index.d.ts +10 -8
  55. package/lib/index.js +8 -2
  56. package/lib/index.js.map +1 -1
  57. package/lib/models/definition.d.ts +1 -0
  58. package/lib/models/definition.js.map +1 -1
  59. package/lib/models/test_case_hook_definition.d.ts +1 -0
  60. package/lib/models/test_case_hook_definition.js +1 -0
  61. package/lib/models/test_case_hook_definition.js.map +1 -1
  62. package/lib/runtime/attachment_manager/index.js +5 -1
  63. package/lib/runtime/attachment_manager/index.js.map +1 -1
  64. package/lib/runtime/helpers.js +5 -1
  65. package/lib/runtime/helpers.js.map +1 -1
  66. package/lib/runtime/parallel/coordinator.js +5 -1
  67. package/lib/runtime/parallel/coordinator.js.map +1 -1
  68. package/lib/runtime/step_runner.js +5 -1
  69. package/lib/runtime/step_runner.js.map +1 -1
  70. package/lib/runtime/stopwatch.js +5 -1
  71. package/lib/runtime/stopwatch.js.map +1 -1
  72. package/lib/runtime/test_case_runner.js +5 -1
  73. package/lib/runtime/test_case_runner.js.map +1 -1
  74. package/lib/support_code_library_builder/types.d.ts +1 -0
  75. package/lib/support_code_library_builder/types.js.map +1 -1
  76. package/lib/support_code_library_builder/world.d.ts +7 -7
  77. package/lib/support_code_library_builder/world.js.map +1 -1
  78. package/lib/time.js +5 -1
  79. package/lib/time.js.map +1 -1
  80. package/lib/version.d.ts +1 -1
  81. package/lib/version.js +1 -1
  82. package/lib/version.js.map +1 -1
  83. package/lib/wrapper.mjs +1 -1
  84. package/package.json +30 -26
@@ -1,18 +1,18 @@
1
1
  import { ICreateAttachment, ICreateLog } from '../runtime/attachment_manager';
2
- export interface IWorldOptions {
2
+ export interface IWorldOptions<ParametersType = any> {
3
3
  attach: ICreateAttachment;
4
4
  log: ICreateLog;
5
- parameters: any;
5
+ parameters: ParametersType;
6
6
  }
7
- export interface IWorld {
7
+ export interface IWorld<ParametersType = any> {
8
8
  readonly attach: ICreateAttachment;
9
9
  readonly log: ICreateLog;
10
- readonly parameters: any;
10
+ readonly parameters: ParametersType;
11
11
  [key: string]: any;
12
12
  }
13
- export default class World implements IWorld {
13
+ export default class World<ParametersType = any> implements IWorld<ParametersType> {
14
14
  readonly attach: ICreateAttachment;
15
15
  readonly log: ICreateLog;
16
- readonly parameters: any;
17
- constructor({ attach, log, parameters }: IWorldOptions);
16
+ readonly parameters: ParametersType;
17
+ constructor({ attach, log, parameters }: IWorldOptions<ParametersType>);
18
18
  }
@@ -1 +1 @@
1
- {"version":3,"file":"world.js","sourceRoot":"","sources":["../../src/support_code_library_builder/world.ts"],"names":[],"mappings":";;AAeA,MAAqB,KAAK;IAKxB,YAAY,EAAE,MAAM,EAAE,GAAG,EAAE,UAAU,EAAiB;QACpD,IAAI,CAAC,MAAM,GAAG,MAAM,CAAA;QACpB,IAAI,CAAC,GAAG,GAAG,GAAG,CAAA;QACd,IAAI,CAAC,UAAU,GAAG,UAAU,CAAA;IAC9B,CAAC;CACF;AAVD,wBAUC","sourcesContent":["import { ICreateAttachment, ICreateLog } from '../runtime/attachment_manager'\n\nexport interface IWorldOptions {\n attach: ICreateAttachment\n log: ICreateLog\n parameters: any\n}\n\nexport interface IWorld {\n readonly attach: ICreateAttachment\n readonly log: ICreateLog\n readonly parameters: any\n [key: string]: any\n}\n\nexport default class World implements IWorld {\n public readonly attach: ICreateAttachment\n public readonly log: ICreateLog\n public readonly parameters: any\n\n constructor({ attach, log, parameters }: IWorldOptions) {\n this.attach = attach\n this.log = log\n this.parameters = parameters\n }\n}\n"]}
1
+ {"version":3,"file":"world.js","sourceRoot":"","sources":["../../src/support_code_library_builder/world.ts"],"names":[],"mappings":";;AAgBA,MAAqB,KAAK;IAOxB,YAAY,EAAE,MAAM,EAAE,GAAG,EAAE,UAAU,EAAiC;QACpE,IAAI,CAAC,MAAM,GAAG,MAAM,CAAA;QACpB,IAAI,CAAC,GAAG,GAAG,GAAG,CAAA;QACd,IAAI,CAAC,UAAU,GAAG,UAAU,CAAA;IAC9B,CAAC;CACF;AAZD,wBAYC","sourcesContent":["import { ICreateAttachment, ICreateLog } from '../runtime/attachment_manager'\n\nexport interface IWorldOptions<ParametersType = any> {\n attach: ICreateAttachment\n log: ICreateLog\n parameters: ParametersType\n}\n\nexport interface IWorld<ParametersType = any> {\n readonly attach: ICreateAttachment\n readonly log: ICreateLog\n readonly parameters: ParametersType\n\n [key: string]: any\n}\n\nexport default class World<ParametersType = any>\n implements IWorld<ParametersType>\n{\n public readonly attach: ICreateAttachment\n public readonly log: ICreateLog\n public readonly parameters: ParametersType\n\n constructor({ attach, log, parameters }: IWorldOptions<ParametersType>) {\n this.attach = attach\n this.log = log\n this.parameters = parameters\n }\n}\n"]}
package/lib/time.js CHANGED
@@ -1,7 +1,11 @@
1
1
  "use strict";
2
2
  var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
3
  if (k2 === undefined) k2 = k;
4
- Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
5
9
  }) : (function(o, m, k, k2) {
6
10
  if (k2 === undefined) k2 = k;
7
11
  o[k2] = m[k];
package/lib/time.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"time.js","sourceRoot":"","sources":["../src/time.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;AAAA,2CAAwC;AACxC,6DAA8C;AAE9C,IAAI,iBAAyB,CAAA;AAE7B,MAAM,OAAO,GAAQ;IACnB,WAAW;QACT,iBAAiB,GAAG,YAAY,EAAE,CAAA;IACpC,CAAC;IACD,aAAa,EAAE,aAAa,CAAC,IAAI,CAAC,MAAM,CAAC;IACzC,YAAY,EAAE,YAAY,CAAC,IAAI,CAAC,MAAM,CAAC;IACvC,IAAI;IACJ,SAAS;QACP,OAAO,YAAY,EAAE,GAAG,iBAAiB,CAAA;IAC3C,CAAC;IACD,WAAW,EAAE,WAAW,CAAC,IAAI,CAAC,MAAM,CAAC;IACrC,UAAU,EAAE,UAAU,CAAC,IAAI,CAAC,MAAM,CAAC;IACnC,WAAW,EAAX,wBAAW;CACZ,CAAA;AAED,IAAI,OAAO,YAAY,KAAK,WAAW,EAAE;IACvC,OAAO,CAAC,YAAY,GAAG,YAAY,CAAC,IAAI,CAAC,MAAM,CAAC,CAAA;IAChD,OAAO,CAAC,cAAc,GAAG,cAAc,CAAC,IAAI,CAAC,MAAM,CAAC,CAAA;CACrD;AAED,SAAS,YAAY;IACnB,OAAO,OAAO,CAAC,WAAW,CAAC,GAAG,EAAE,CAAA;AAClC,CAAC;AAED,SAAgB,yBAAyB,CACvC,gBAAoC,EACpC,iBAAqC;IAErC,MAAM,cAAc,GAClB,QAAQ,CAAC,cAAc,CAAC,iCAAiC,CACvD,iBAAiB,CAClB;QACD,QAAQ,CAAC,cAAc,CAAC,iCAAiC,CAAC,gBAAgB,CAAC,CAAA;IAC7E,OAAO,QAAQ,CAAC,cAAc,CAAC,sBAAsB,CAAC,cAAc,CAAC,CAAA;AACvE,CAAC;AAVD,8DAUC;AAEM,KAAK,UAAU,sBAAsB,CAC1C,OAAmB,EACnB,qBAA6B,EAC7B,iBAAyB,EAAE;IAE3B,IAAI,SAAyB,CAAA;IAC7B,IAAI,cAAc,KAAK,EAAE,EAAE;QACzB,cAAc,GAAG,kCAAkC,qBAAqB,eAAe,CAAA;KACxF;IACD,MAAM,cAAc,GAAG,IAAI,OAAO,CAAI,CAAC,OAAO,EAAE,MAAM,EAAE,EAAE;QACxD,SAAS,GAAG,OAAO,CAAC,UAAU,CAAC,GAAG,EAAE;YAClC,MAAM,CAAC,IAAI,KAAK,CAAC,cAAc,CAAC,CAAC,CAAA;QACnC,CAAC,EAAE,qBAAqB,CAAC,CAAA;IAC3B,CAAC,CAAC,CAAA;IACF,OAAO,MAAM,OAAO,CAAC,IAAI,CAAC,CAAC,OAAO,EAAE,cAAc,CAAC,CAAC,CAAC,OAAO,CAAC,GAAG,EAAE,CAChE,OAAO,CAAC,YAAY,CAAC,SAAS,CAAC,CAChC,CAAA;AACH,CAAC;AAjBD,wDAiBC;AAED,kBAAe,OAAO,CAAA","sourcesContent":["import { performance } from 'perf_hooks'\nimport * as messages from '@cucumber/messages'\n\nlet previousTimestamp: number\n\nconst methods: any = {\n beginTiming() {\n previousTimestamp = getTimestamp()\n },\n clearInterval: clearInterval.bind(global),\n clearTimeout: clearTimeout.bind(global),\n Date,\n endTiming() {\n return getTimestamp() - previousTimestamp\n },\n setInterval: setInterval.bind(global),\n setTimeout: setTimeout.bind(global),\n performance,\n}\n\nif (typeof setImmediate !== 'undefined') {\n methods.setImmediate = setImmediate.bind(global)\n methods.clearImmediate = clearImmediate.bind(global)\n}\n\nfunction getTimestamp(): number {\n return methods.performance.now()\n}\n\nexport function durationBetweenTimestamps(\n startedTimestamp: messages.Timestamp,\n finishedTimestamp: messages.Timestamp\n): messages.Duration {\n const durationMillis =\n messages.TimeConversion.timestampToMillisecondsSinceEpoch(\n finishedTimestamp\n ) -\n messages.TimeConversion.timestampToMillisecondsSinceEpoch(startedTimestamp)\n return messages.TimeConversion.millisecondsToDuration(durationMillis)\n}\n\nexport async function wrapPromiseWithTimeout<T>(\n promise: Promise<T>,\n timeoutInMilliseconds: number,\n timeoutMessage: string = ''\n): Promise<T> {\n let timeoutId: NodeJS.Timeout\n if (timeoutMessage === '') {\n timeoutMessage = `Action did not complete within ${timeoutInMilliseconds} milliseconds`\n }\n const timeoutPromise = new Promise<T>((resolve, reject) => {\n timeoutId = methods.setTimeout(() => {\n reject(new Error(timeoutMessage))\n }, timeoutInMilliseconds)\n })\n return await Promise.race([promise, timeoutPromise]).finally(() =>\n methods.clearTimeout(timeoutId)\n )\n}\n\nexport default methods\n"]}
1
+ {"version":3,"file":"time.js","sourceRoot":"","sources":["../src/time.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,2CAAwC;AACxC,6DAA8C;AAE9C,IAAI,iBAAyB,CAAA;AAE7B,MAAM,OAAO,GAAQ;IACnB,WAAW;QACT,iBAAiB,GAAG,YAAY,EAAE,CAAA;IACpC,CAAC;IACD,aAAa,EAAE,aAAa,CAAC,IAAI,CAAC,MAAM,CAAC;IACzC,YAAY,EAAE,YAAY,CAAC,IAAI,CAAC,MAAM,CAAC;IACvC,IAAI;IACJ,SAAS;QACP,OAAO,YAAY,EAAE,GAAG,iBAAiB,CAAA;IAC3C,CAAC;IACD,WAAW,EAAE,WAAW,CAAC,IAAI,CAAC,MAAM,CAAC;IACrC,UAAU,EAAE,UAAU,CAAC,IAAI,CAAC,MAAM,CAAC;IACnC,WAAW,EAAX,wBAAW;CACZ,CAAA;AAED,IAAI,OAAO,YAAY,KAAK,WAAW,EAAE;IACvC,OAAO,CAAC,YAAY,GAAG,YAAY,CAAC,IAAI,CAAC,MAAM,CAAC,CAAA;IAChD,OAAO,CAAC,cAAc,GAAG,cAAc,CAAC,IAAI,CAAC,MAAM,CAAC,CAAA;CACrD;AAED,SAAS,YAAY;IACnB,OAAO,OAAO,CAAC,WAAW,CAAC,GAAG,EAAE,CAAA;AAClC,CAAC;AAED,SAAgB,yBAAyB,CACvC,gBAAoC,EACpC,iBAAqC;IAErC,MAAM,cAAc,GAClB,QAAQ,CAAC,cAAc,CAAC,iCAAiC,CACvD,iBAAiB,CAClB;QACD,QAAQ,CAAC,cAAc,CAAC,iCAAiC,CAAC,gBAAgB,CAAC,CAAA;IAC7E,OAAO,QAAQ,CAAC,cAAc,CAAC,sBAAsB,CAAC,cAAc,CAAC,CAAA;AACvE,CAAC;AAVD,8DAUC;AAEM,KAAK,UAAU,sBAAsB,CAC1C,OAAmB,EACnB,qBAA6B,EAC7B,iBAAyB,EAAE;IAE3B,IAAI,SAAyB,CAAA;IAC7B,IAAI,cAAc,KAAK,EAAE,EAAE;QACzB,cAAc,GAAG,kCAAkC,qBAAqB,eAAe,CAAA;KACxF;IACD,MAAM,cAAc,GAAG,IAAI,OAAO,CAAI,CAAC,OAAO,EAAE,MAAM,EAAE,EAAE;QACxD,SAAS,GAAG,OAAO,CAAC,UAAU,CAAC,GAAG,EAAE;YAClC,MAAM,CAAC,IAAI,KAAK,CAAC,cAAc,CAAC,CAAC,CAAA;QACnC,CAAC,EAAE,qBAAqB,CAAC,CAAA;IAC3B,CAAC,CAAC,CAAA;IACF,OAAO,MAAM,OAAO,CAAC,IAAI,CAAC,CAAC,OAAO,EAAE,cAAc,CAAC,CAAC,CAAC,OAAO,CAAC,GAAG,EAAE,CAChE,OAAO,CAAC,YAAY,CAAC,SAAS,CAAC,CAChC,CAAA;AACH,CAAC;AAjBD,wDAiBC;AAED,kBAAe,OAAO,CAAA","sourcesContent":["import { performance } from 'perf_hooks'\nimport * as messages from '@cucumber/messages'\n\nlet previousTimestamp: number\n\nconst methods: any = {\n beginTiming() {\n previousTimestamp = getTimestamp()\n },\n clearInterval: clearInterval.bind(global),\n clearTimeout: clearTimeout.bind(global),\n Date,\n endTiming() {\n return getTimestamp() - previousTimestamp\n },\n setInterval: setInterval.bind(global),\n setTimeout: setTimeout.bind(global),\n performance,\n}\n\nif (typeof setImmediate !== 'undefined') {\n methods.setImmediate = setImmediate.bind(global)\n methods.clearImmediate = clearImmediate.bind(global)\n}\n\nfunction getTimestamp(): number {\n return methods.performance.now()\n}\n\nexport function durationBetweenTimestamps(\n startedTimestamp: messages.Timestamp,\n finishedTimestamp: messages.Timestamp\n): messages.Duration {\n const durationMillis =\n messages.TimeConversion.timestampToMillisecondsSinceEpoch(\n finishedTimestamp\n ) -\n messages.TimeConversion.timestampToMillisecondsSinceEpoch(startedTimestamp)\n return messages.TimeConversion.millisecondsToDuration(durationMillis)\n}\n\nexport async function wrapPromiseWithTimeout<T>(\n promise: Promise<T>,\n timeoutInMilliseconds: number,\n timeoutMessage: string = ''\n): Promise<T> {\n let timeoutId: NodeJS.Timeout\n if (timeoutMessage === '') {\n timeoutMessage = `Action did not complete within ${timeoutInMilliseconds} milliseconds`\n }\n const timeoutPromise = new Promise<T>((resolve, reject) => {\n timeoutId = methods.setTimeout(() => {\n reject(new Error(timeoutMessage))\n }, timeoutInMilliseconds)\n })\n return await Promise.race([promise, timeoutPromise]).finally(() =>\n methods.clearTimeout(timeoutId)\n )\n}\n\nexport default methods\n"]}
package/lib/version.d.ts CHANGED
@@ -1 +1 @@
1
- export declare const version = "8.0.0-rc.3";
1
+ export declare const version = "8.1.1";
package/lib/version.js CHANGED
@@ -2,5 +2,5 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.version = void 0;
4
4
  // generated by genversion
5
- exports.version = '8.0.0-rc.3';
5
+ exports.version = '8.1.1';
6
6
  //# sourceMappingURL=version.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"version.js","sourceRoot":"","sources":["../src/version.ts"],"names":[],"mappings":";;;AAAA,0BAA0B;AACb,QAAA,OAAO,GAAG,YAAY,CAAA","sourcesContent":["// generated by genversion\nexport const version = '8.0.0-rc.3'\n"]}
1
+ {"version":3,"file":"version.js","sourceRoot":"","sources":["../src/version.ts"],"names":[],"mappings":";;;AAAA,0BAA0B;AACb,QAAA,OAAO,GAAG,OAAO,CAAA","sourcesContent":["// generated by genversion\nexport const version = '8.1.1'\n"]}
package/lib/wrapper.mjs CHANGED
@@ -35,8 +35,8 @@ export const setDefinitionFunctionWrapper = cucumber.setDefinitionFunctionWrappe
35
35
  export const setWorldConstructor = cucumber.setWorldConstructor
36
36
  export const Then = cucumber.Then
37
37
  export const When = cucumber.When
38
-
39
38
  export const World = cucumber.World
39
+ export const parallelCanAssignHelpers = cucumber.parallelCanAssignHelpers
40
40
 
41
41
  export const wrapPromiseWithTimeout = cucumber.wrapPromiseWithTimeout
42
42
 
package/package.json CHANGED
@@ -8,7 +8,7 @@
8
8
  "gherkin",
9
9
  "tests"
10
10
  ],
11
- "version": "8.0.0-rc.3",
11
+ "version": "8.1.1",
12
12
  "homepage": "https://github.com/cucumber/cucumber-js",
13
13
  "author": "Julien Biezemans <jb@jbpros.com>",
14
14
  "contributors": [
@@ -190,15 +190,19 @@
190
190
  "engines": {
191
191
  "node": "12 || 14 || >=16"
192
192
  },
193
+ "enginesTested": {
194
+ "node": "12 || 14 || 16 || 17"
195
+ },
193
196
  "dependencies": {
194
197
  "@cspotcode/source-map-support": "^0.7.0",
195
- "@cucumber/ci-environment": "9.0.0",
198
+ "@cucumber/ci-environment": "9.0.4",
196
199
  "@cucumber/cucumber-expressions": "15.0.2",
197
- "@cucumber/gherkin": "22.0.0",
198
- "@cucumber/gherkin-streams": "4.0.0",
199
- "@cucumber/gherkin-utils": "^7.0.0",
200
- "@cucumber/html-formatter": "18.0.0",
201
- "@cucumber/messages": "17.1.1",
200
+ "@cucumber/gherkin": "23.0.1",
201
+ "@cucumber/gherkin-streams": "5.0.1",
202
+ "@cucumber/gherkin-utils": "7.0.0",
203
+ "@cucumber/html-formatter": "19.1.0",
204
+ "@cucumber/message-streams": "4.0.1",
205
+ "@cucumber/messages": "18.0.0",
202
206
  "@cucumber/tag-expressions": "4.1.0",
203
207
  "assertion-error-formatter": "^3.0.0",
204
208
  "capital-case": "^1.0.4",
@@ -227,12 +231,11 @@
227
231
  "yup": "^0.32.11"
228
232
  },
229
233
  "devDependencies": {
230
- "@cucumber/compatibility-kit": "9.1.2",
231
- "@cucumber/message-streams": "3.0.0",
234
+ "@cucumber/compatibility-kit": "9.2.0",
232
235
  "@cucumber/query": "11.0.0",
233
- "@microsoft/api-documenter": "^7.15.3",
234
- "@microsoft/api-extractor": "^7.19.4",
235
- "@sinonjs/fake-timers": "9.1.0",
236
+ "@microsoft/api-documenter": "7.17.0",
237
+ "@microsoft/api-extractor": "7.20.0",
238
+ "@sinonjs/fake-timers": "9.1.1",
236
239
  "@types/chai": "4.3.0",
237
240
  "@types/dirty-chai": "2.0.2",
238
241
  "@types/express": "4.17.13",
@@ -248,19 +251,19 @@
248
251
  "@types/resolve": "1.20.1",
249
252
  "@types/semver": "7.3.9",
250
253
  "@types/sinon-chai": "3.2.8",
251
- "@types/sinonjs__fake-timers": "8.1.1",
254
+ "@types/sinonjs__fake-timers": "8.1.2",
252
255
  "@types/stream-buffers": "3.0.4",
253
256
  "@types/tmp": "0.2.3",
254
257
  "@types/verror": "1.10.5",
255
- "@typescript-eslint/eslint-plugin": "5.13.0",
256
- "@typescript-eslint/parser": "5.13.0",
258
+ "@typescript-eslint/eslint-plugin": "5.17.0",
259
+ "@typescript-eslint/parser": "5.17.0",
257
260
  "chai": "4.3.6",
258
261
  "chai-exclude": "2.1.0",
259
262
  "coffeescript": "2.6.1",
260
263
  "dependency-lint": "7.1.0",
261
264
  "dirty-chai": "2.0.1",
262
- "eslint": "8.10.0",
263
- "eslint-config-prettier": "8.4.0",
265
+ "eslint": "8.12.0",
266
+ "eslint-config-prettier": "8.5.0",
264
267
  "eslint-plugin-import": "2.25.4",
265
268
  "eslint-plugin-node": "11.1.0",
266
269
  "eslint-plugin-prettier": "4.0.0",
@@ -268,10 +271,11 @@
268
271
  "express": "4.17.3",
269
272
  "fs-extra": "10.0.1",
270
273
  "genversion": "3.0.2",
271
- "mocha": "9.2.1",
274
+ "mocha": "9.2.2",
272
275
  "mustache": "4.2.0",
273
276
  "nyc": "15.1.0",
274
- "prettier": "2.5.1",
277
+ "portfinder": "^1.0.28",
278
+ "prettier": "2.6.1",
275
279
  "reindent-template-literals": "1.1.0",
276
280
  "shx": "0.3.4",
277
281
  "sinon": "13.0.1",
@@ -279,16 +283,16 @@
279
283
  "stream-buffers": "3.0.2",
280
284
  "stream-to-string": "1.2.0",
281
285
  "strip-ansi": "6.0.1",
282
- "ts-node": "10.6.0",
283
- "tsd": "0.19.1",
284
- "typescript": "4.6.2"
286
+ "ts-node": "10.7.0",
287
+ "tsd": "0.20.0",
288
+ "typescript": "4.6.3"
285
289
  },
286
290
  "scripts": {
287
291
  "build-local": "genversion --es6 src/version.ts && tsc --build tsconfig.node.json && shx cp src/importer.js lib/ && shx cp src/wrapper.mjs lib/ && shx cp src/api/wrapper.mjs lib/api/",
288
292
  "cck-test": "mocha 'compatibility/**/*_spec.ts'",
289
293
  "docs:ci": "api-extractor run --verbose",
290
294
  "docs:local": "api-extractor run --verbose --local && api-documenter markdown --input-folder ./tmp/api-extractor --output-folder ./docs/api",
291
- "feature-test": "node ./bin/cucumber-js",
295
+ "feature-test": "node bin/cucumber.js",
292
296
  "lint-autofix": "eslint --fix \"{compatibility,example,features,scripts,src,test}/**/*.ts\"",
293
297
  "lint-code": "eslint \"{compatibility,example,features,scripts,src,test}/**/*.ts\"",
294
298
  "lint-dependencies": "dependency-lint",
@@ -300,14 +304,14 @@
300
304
  "prepublishOnly": "rm -rf lib && npm run build-local",
301
305
  "pretest-coverage": "npm run build-local",
302
306
  "pretypes-test": "npm run build-local",
303
- "test-coverage": "nyc --silent mocha 'src/**/*_spec.ts' 'compatibility/**/*_spec.ts' && nyc --silent --no-clean node ./bin/cucumber-js && nyc report --reporter=lcov",
304
- "test": "npm run lint && npm run docs:ci && npm run types-test && npm run unit-test && npm run cck-test && npm run feature-test",
307
+ "test-coverage": "nyc --silent mocha 'src/**/*_spec.ts' 'compatibility/**/*_spec.ts' && nyc --silent --no-clean node bin/cucumber.js && nyc report --reporter=lcov",
308
+ "test": "npm run lint && npm run types-test && npm run unit-test && npm run cck-test && npm run feature-test",
305
309
  "types-test": "tsd",
306
310
  "unit-test": "mocha 'src/**/*_spec.ts'",
307
311
  "update-dependencies": "npx npm-check-updates --upgrade"
308
312
  },
309
313
  "bin": {
310
- "cucumber-js": "./bin/cucumber-js"
314
+ "cucumber-js": "bin/cucumber.js"
311
315
  },
312
316
  "license": "MIT",
313
317
  "files": [