@cucumber/cucumber 12.2.0 → 12.4.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 (58) hide show
  1. package/README.md +1 -1
  2. package/lib/api/run_cucumber.js +1 -0
  3. package/lib/api/run_cucumber.js.map +1 -1
  4. package/lib/cli/helpers.js +11 -1
  5. package/lib/cli/helpers.js.map +1 -1
  6. package/lib/configuration/argv_parser.js +1 -1
  7. package/lib/configuration/argv_parser.js.map +1 -1
  8. package/lib/configuration/from_file.js +66 -37
  9. package/lib/configuration/from_file.js.map +1 -1
  10. package/lib/filter/types.d.ts +2 -1
  11. package/lib/filter/types.js.map +1 -1
  12. package/lib/formatter/step_definition_snippet_builder/index.d.ts +1 -0
  13. package/lib/formatter/step_definition_snippet_builder/index.js +14 -0
  14. package/lib/formatter/step_definition_snippet_builder/index.js.map +1 -1
  15. package/lib/models/test_run_hook_definition.d.ts +6 -1
  16. package/lib/models/test_run_hook_definition.js +5 -0
  17. package/lib/models/test_run_hook_definition.js.map +1 -1
  18. package/lib/publish/publish_plugin.js +18 -12
  19. package/lib/publish/publish_plugin.js.map +1 -1
  20. package/lib/runtime/coordinator.d.ts +2 -1
  21. package/lib/runtime/coordinator.js +6 -5
  22. package/lib/runtime/coordinator.js.map +1 -1
  23. package/lib/runtime/make_runtime.d.ts +4 -3
  24. package/lib/runtime/make_runtime.js +20 -5
  25. package/lib/runtime/make_runtime.js.map +1 -1
  26. package/lib/runtime/make_suggestion.d.ts +7 -0
  27. package/lib/runtime/make_suggestion.js +31 -0
  28. package/lib/runtime/make_suggestion.js.map +1 -0
  29. package/lib/runtime/parallel/adapter.d.ts +4 -1
  30. package/lib/runtime/parallel/adapter.js +9 -1
  31. package/lib/runtime/parallel/adapter.js.map +1 -1
  32. package/lib/runtime/parallel/types.d.ts +3 -0
  33. package/lib/runtime/parallel/types.js.map +1 -1
  34. package/lib/runtime/parallel/worker.d.ts +1 -1
  35. package/lib/runtime/parallel/worker.js +9 -2
  36. package/lib/runtime/parallel/worker.js.map +1 -1
  37. package/lib/runtime/serial/adapter.d.ts +2 -1
  38. package/lib/runtime/serial/adapter.js +2 -2
  39. package/lib/runtime/serial/adapter.js.map +1 -1
  40. package/lib/runtime/test_case_runner.d.ts +4 -1
  41. package/lib/runtime/test_case_runner.js +12 -1
  42. package/lib/runtime/test_case_runner.js.map +1 -1
  43. package/lib/runtime/worker.d.ts +14 -6
  44. package/lib/runtime/worker.js +106 -14
  45. package/lib/runtime/worker.js.map +1 -1
  46. package/lib/support_code_library_builder/index.d.ts +1 -1
  47. package/lib/support_code_library_builder/index.js +6 -6
  48. package/lib/support_code_library_builder/index.js.map +1 -1
  49. package/lib/support_code_library_builder/types.d.ts +3 -0
  50. package/lib/support_code_library_builder/types.js.map +1 -1
  51. package/lib/tsconfig.node.tsbuildinfo +1 -1
  52. package/lib/version.d.ts +1 -1
  53. package/lib/version.js +1 -1
  54. package/lib/version.js.map +1 -1
  55. package/package.json +26 -26
  56. package/lib/runtime/run_test_run_hooks.d.ts +0 -4
  57. package/lib/runtime/run_test_run_hooks.js +0 -29
  58. package/lib/runtime/run_test_run_hooks.js.map +0 -1
@@ -1 +1 @@
1
- {"version":3,"file":"version.js","sourceRoot":"","sources":["../src/version.ts"],"names":[],"mappings":";;;AAAA,2BAA2B;AACd,QAAA,OAAO,GAAG,QAAQ,CAAA","sourcesContent":["// Generated by genversion.\nexport const version = '12.2.0'\n"]}
1
+ {"version":3,"file":"version.js","sourceRoot":"","sources":["../src/version.ts"],"names":[],"mappings":";;;AAAA,2BAA2B;AACd,QAAA,OAAO,GAAG,QAAQ,CAAA","sourcesContent":["// Generated by genversion.\nexport const version = '12.4.0'\n"]}
package/package.json CHANGED
@@ -8,7 +8,7 @@
8
8
  "gherkin",
9
9
  "tests"
10
10
  ],
11
- "version": "12.2.0",
11
+ "version": "12.4.0",
12
12
  "funding": "https://opencollective.com/cucumber",
13
13
  "homepage": "https://github.com/cucumber/cucumber-js",
14
14
  "author": "Julien Biezemans <jb@jbpros.com>",
@@ -214,20 +214,20 @@
214
214
  "node": "20 || 22 || >=24"
215
215
  },
216
216
  "enginesTested": {
217
- "node": "20 || 22 || 24"
217
+ "node": "20 || 22 || 24 || 25"
218
218
  },
219
219
  "dependencies": {
220
- "@cucumber/ci-environment": "10.0.1",
220
+ "@cucumber/ci-environment": "12.0.0",
221
221
  "@cucumber/cucumber-expressions": "18.0.1",
222
- "@cucumber/gherkin": "34.0.0",
223
- "@cucumber/gherkin-streams": "5.0.1",
224
- "@cucumber/gherkin-utils": "9.2.0",
225
- "@cucumber/html-formatter": "21.14.0",
226
- "@cucumber/junit-xml-formatter": "0.8.1",
222
+ "@cucumber/gherkin": "37.0.0",
223
+ "@cucumber/gherkin-streams": "6.0.0",
224
+ "@cucumber/gherkin-utils": "10.0.0",
225
+ "@cucumber/html-formatter": "22.2.0",
226
+ "@cucumber/junit-xml-formatter": "0.9.0",
227
227
  "@cucumber/message-streams": "4.0.1",
228
- "@cucumber/messages": "28.1.0",
228
+ "@cucumber/messages": "31.0.0",
229
229
  "@cucumber/pretty-formatter": "1.0.1",
230
- "@cucumber/tag-expressions": "6.2.0",
230
+ "@cucumber/tag-expressions": "8.1.0",
231
231
  "assertion-error-formatter": "^3.0.0",
232
232
  "capital-case": "^1.0.4",
233
233
  "chalk": "^4.1.2",
@@ -236,7 +236,7 @@
236
236
  "debug": "^4.3.4",
237
237
  "error-stack-parser": "^2.1.4",
238
238
  "figures": "^3.2.0",
239
- "glob": "^11.0.0",
239
+ "glob": "^13.0.0",
240
240
  "has-ansi": "^4.0.1",
241
241
  "indent-string": "^4.0.0",
242
242
  "is-installed-globally": "^0.4.0",
@@ -244,32 +244,32 @@
244
244
  "knuth-shuffle-seeded": "^1.0.6",
245
245
  "lodash.merge": "^4.6.2",
246
246
  "lodash.mergewith": "^4.6.2",
247
- "luxon": "3.7.1",
247
+ "luxon": "3.7.2",
248
248
  "mime": "^3.0.0",
249
249
  "mkdirp": "^3.0.0",
250
250
  "mz": "^2.7.0",
251
251
  "progress": "^2.0.3",
252
- "read-package-up": "^11.0.0",
253
- "semver": "7.7.2",
252
+ "read-package-up": "^12.0.0",
253
+ "semver": "7.7.3",
254
254
  "string-argv": "0.3.1",
255
255
  "supports-color": "^8.1.1",
256
256
  "type-fest": "^4.41.0",
257
257
  "util-arity": "^1.1.0",
258
258
  "yaml": "^2.2.2",
259
- "yup": "1.7.0"
259
+ "yup": "1.7.1"
260
260
  },
261
261
  "devDependencies": {
262
- "@cucumber/compatibility-kit": "^20.0.0",
263
- "@cucumber/query": "13.6.0",
264
- "@eslint/compat": "^1.3.0",
262
+ "@cucumber/compatibility-kit": "^26.0.0",
263
+ "@cucumber/query": "14.7.0",
264
+ "@eslint/compat": "^2.0.0",
265
265
  "@eslint/eslintrc": "^3.3.1",
266
266
  "@eslint/js": "^9.29.0",
267
- "@microsoft/api-extractor": "7.52.11",
268
- "@sinonjs/fake-timers": "14.0.0",
267
+ "@microsoft/api-extractor": "7.55.2",
268
+ "@sinonjs/fake-timers": "15.0.0",
269
269
  "@types/chai": "4.3.20",
270
270
  "@types/debug": "4.1.12",
271
271
  "@types/dirty-chai": "2.0.5",
272
- "@types/express": "5.0.3",
272
+ "@types/express": "5.0.5",
273
273
  "@types/fs-extra": "9.0.13",
274
274
  "@types/has-ansi": "5.0.2",
275
275
  "@types/lodash.merge": "4.6.9",
@@ -278,12 +278,12 @@
278
278
  "@types/mocha": "10.0.10",
279
279
  "@types/mustache": "4.2.6",
280
280
  "@types/mz": "2.7.9",
281
- "@types/node": "20.19.11",
281
+ "@types/node": "^20.11.25",
282
282
  "@types/progress": "2.0.7",
283
- "@types/semver": "7.7.0",
283
+ "@types/semver": "7.7.1",
284
284
  "@types/sinon-chai": "3.2.12",
285
- "@types/sinonjs__fake-timers": "8.1.5",
286
- "@types/stream-buffers": "3.0.7",
285
+ "@types/sinonjs__fake-timers": "15.0.1",
286
+ "@types/stream-buffers": "3.0.8",
287
287
  "@types/tmp": "0.2.6",
288
288
  "@typescript-eslint/eslint-plugin": "^8.34.0",
289
289
  "@typescript-eslint/parser": "^8.34.0",
@@ -295,7 +295,7 @@
295
295
  "eslint": "^9.29.0",
296
296
  "eslint-plugin-import": "^2.31.0",
297
297
  "eslint-plugin-n": "^17.20.0",
298
- "eslint-plugin-unicorn": "^60.0.0",
298
+ "eslint-plugin-unicorn": "^62.0.0",
299
299
  "express": "^5.0.0",
300
300
  "fs-extra": "10.1.0",
301
301
  "genversion": "3.2.0",
@@ -1,4 +0,0 @@
1
- import { JsonObject } from 'type-fest';
2
- import TestRunHookDefinition from '../models/test_run_hook_definition';
3
- export type RunsTestRunHooks = (definitions: TestRunHookDefinition[], name: string) => Promise<void>;
4
- export declare const makeRunTestRunHooks: (dryRun: boolean, defaultTimeout: number, worldParameters: JsonObject, errorMessage: (name: string, location: string) => string) => RunsTestRunHooks;
@@ -1,29 +0,0 @@
1
- "use strict";
2
- var __importDefault = (this && this.__importDefault) || function (mod) {
3
- return (mod && mod.__esModule) ? mod : { "default": mod };
4
- };
5
- Object.defineProperty(exports, "__esModule", { value: true });
6
- exports.makeRunTestRunHooks = void 0;
7
- const user_code_runner_1 = __importDefault(require("../user_code_runner"));
8
- const helpers_1 = require("../formatter/helpers");
9
- const value_checker_1 = require("../value_checker");
10
- const scope_1 = require("./scope");
11
- const makeRunTestRunHooks = (dryRun, defaultTimeout, worldParameters, errorMessage) => dryRun
12
- ? async () => { }
13
- : async (definitions, name) => {
14
- const context = { parameters: worldParameters };
15
- for (const hookDefinition of definitions) {
16
- const { error } = await (0, scope_1.runInTestRunScope)({ context }, () => user_code_runner_1.default.run({
17
- argsArray: [],
18
- fn: hookDefinition.code,
19
- thisArg: context,
20
- timeoutInMilliseconds: (0, value_checker_1.valueOrDefault)(hookDefinition.options.timeout, defaultTimeout),
21
- }));
22
- if ((0, value_checker_1.doesHaveValue)(error)) {
23
- const location = (0, helpers_1.formatLocation)(hookDefinition);
24
- throw new Error(errorMessage(name, location), { cause: error });
25
- }
26
- }
27
- };
28
- exports.makeRunTestRunHooks = makeRunTestRunHooks;
29
- //# sourceMappingURL=run_test_run_hooks.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"run_test_run_hooks.js","sourceRoot":"","sources":["../../src/runtime/run_test_run_hooks.ts"],"names":[],"mappings":";;;;;;AACA,2EAAgD;AAChD,kDAAqD;AACrD,oDAAgE;AAEhE,mCAA2C;AAOpC,MAAM,mBAAmB,GAAG,CACjC,MAAe,EACf,cAAsB,EACtB,eAA2B,EAC3B,YAAwD,EACtC,EAAE,CACpB,MAAM;IACJ,CAAC,CAAC,KAAK,IAAI,EAAE,GAAE,CAAC;IAChB,CAAC,CAAC,KAAK,EAAE,WAAW,EAAE,IAAI,EAAE,EAAE;QAC1B,MAAM,OAAO,GAAG,EAAE,UAAU,EAAE,eAAe,EAAE,CAAA;QAC/C,KAAK,MAAM,cAAc,IAAI,WAAW,EAAE,CAAC;YACzC,MAAM,EAAE,KAAK,EAAE,GAAG,MAAM,IAAA,yBAAiB,EAAC,EAAE,OAAO,EAAE,EAAE,GAAG,EAAE,CAC1D,0BAAc,CAAC,GAAG,CAAC;gBACjB,SAAS,EAAE,EAAE;gBACb,EAAE,EAAE,cAAc,CAAC,IAAI;gBACvB,OAAO,EAAE,OAAO;gBAChB,qBAAqB,EAAE,IAAA,8BAAc,EACnC,cAAc,CAAC,OAAO,CAAC,OAAO,EAC9B,cAAc,CACf;aACF,CAAC,CACH,CAAA;YACD,IAAI,IAAA,6BAAa,EAAC,KAAK,CAAC,EAAE,CAAC;gBACzB,MAAM,QAAQ,GAAG,IAAA,wBAAc,EAAC,cAAc,CAAC,CAAA;gBAC/C,MAAM,IAAI,KAAK,CAAC,YAAY,CAAC,IAAI,EAAE,QAAQ,CAAC,EAAE,EAAE,KAAK,EAAE,KAAK,EAAE,CAAC,CAAA;YACjE,CAAC;QACH,CAAC;IACH,CAAC,CAAA;AA3BM,QAAA,mBAAmB,uBA2BzB","sourcesContent":["import { JsonObject } from 'type-fest'\nimport UserCodeRunner from '../user_code_runner'\nimport { formatLocation } from '../formatter/helpers'\nimport { doesHaveValue, valueOrDefault } from '../value_checker'\nimport TestRunHookDefinition from '../models/test_run_hook_definition'\nimport { runInTestRunScope } from './scope'\n\nexport type RunsTestRunHooks = (\n definitions: TestRunHookDefinition[],\n name: string\n) => Promise<void>\n\nexport const makeRunTestRunHooks = (\n dryRun: boolean,\n defaultTimeout: number,\n worldParameters: JsonObject,\n errorMessage: (name: string, location: string) => string\n): RunsTestRunHooks =>\n dryRun\n ? async () => {}\n : async (definitions, name) => {\n const context = { parameters: worldParameters }\n for (const hookDefinition of definitions) {\n const { error } = await runInTestRunScope({ context }, () =>\n UserCodeRunner.run({\n argsArray: [],\n fn: hookDefinition.code,\n thisArg: context,\n timeoutInMilliseconds: valueOrDefault(\n hookDefinition.options.timeout,\n defaultTimeout\n ),\n })\n )\n if (doesHaveValue(error)) {\n const location = formatLocation(hookDefinition)\n throw new Error(errorMessage(name, location), { cause: error })\n }\n }\n }\n"]}