@applitools/core-nlp 0.1.2 → 0.2.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.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,67 @@
1
1
  # Changelog
2
2
 
3
+ ## [0.2.1](https://github.com/Applitools-Dev/sdk/compare/js/core-nlp@0.2.0...js/core-nlp@0.2.1) (2026-10-13)
4
+
5
+
6
+ ### Dependencies
7
+
8
+ * @applitools/utils bumped to 1.15.3
9
+ #### Bug Fixes
10
+
11
+ * publish once to validate the npm trusted publishers ([#4300](https://github.com/Applitools-Dev/sdk/issues/4300)) ([63ebc90](https://github.com/Applitools-Dev/sdk/commit/63ebc9044b150c6f927f626d0ce9cc7da8861441))
12
+ * @applitools/logger bumped to 2.3.2
13
+ #### Bug Fixes
14
+
15
+ * publish once to validate the npm trusted publishers ([#4300](https://github.com/Applitools-Dev/sdk/issues/4300)) ([63ebc90](https://github.com/Applitools-Dev/sdk/commit/63ebc9044b150c6f927f626d0ce9cc7da8861441))
16
+
17
+
18
+
19
+ * @applitools/image bumped to 1.3.4
20
+ #### Bug Fixes
21
+
22
+ * publish once to validate the npm trusted publishers ([#4300](https://github.com/Applitools-Dev/sdk/issues/4300)) ([63ebc90](https://github.com/Applitools-Dev/sdk/commit/63ebc9044b150c6f927f626d0ce9cc7da8861441))
23
+
24
+
25
+
26
+ * @applitools/req bumped to 1.11.5
27
+
28
+ * @applitools/test-server bumped to 1.4.8
29
+ #### Bug Fixes
30
+
31
+ * publish once to validate the npm trusted publishers ([#4300](https://github.com/Applitools-Dev/sdk/issues/4300)) ([63ebc90](https://github.com/Applitools-Dev/sdk/commit/63ebc9044b150c6f927f626d0ce9cc7da8861441))
32
+
33
+
34
+
35
+ * @applitools/core-base bumped to 1.41.1
36
+
37
+
38
+ ## [0.2.0](https://github.com/Applitools-Dev/sdk/compare/js/core-nlp@0.1.2...js/core-nlp@0.2.0) (2026-10-12)
39
+
40
+
41
+ ### Features
42
+
43
+ * report NLP step counts per Eyes session | AD-16681 ([#4257](https://github.com/Applitools-Dev/sdk/issues/4257)) ([b84a1cc](https://github.com/Applitools-Dev/sdk/commit/b84a1ccac25c4d61a98ee382a18f54c1011c53e6))
44
+
45
+
46
+ ### Dependencies
47
+
48
+ * @applitools/req bumped to 1.11.4
49
+ #### Bug Fixes
50
+
51
+ * version-check/telemetry no longer hold the process — connect deadline + unref | AD-16613 ([#4232](https://github.com/Applitools-Dev/sdk/issues/4232)) ([42bcbb5](https://github.com/Applitools-Dev/sdk/commit/42bcbb5dd8d75ad4aa98c2ec0d284f107fdc98e3))
52
+ * @applitools/core-base bumped to 1.41.0
53
+ #### Features
54
+
55
+ * report NLP step counts per Eyes session | AD-16681 ([#4257](https://github.com/Applitools-Dev/sdk/issues/4257)) ([b84a1cc](https://github.com/Applitools-Dev/sdk/commit/b84a1ccac25c4d61a98ee382a18f54c1011c53e6))
56
+
57
+
58
+ #### Bug Fixes
59
+
60
+ * version-check/telemetry no longer hold the process — connect deadline + unref | AD-16613 ([#4232](https://github.com/Applitools-Dev/sdk/issues/4232)) ([42bcbb5](https://github.com/Applitools-Dev/sdk/commit/42bcbb5dd8d75ad4aa98c2ec0d284f107fdc98e3))
61
+
62
+
63
+
64
+
3
65
  ## [0.1.2](https://github.com/Applitools-Dev/sdk/compare/js/core-nlp@0.1.1...js/core-nlp@0.1.2) (2026-10-01)
4
66
 
5
67
 
package/dist/nlp.js CHANGED
@@ -37,6 +37,18 @@ async function loadNlpModules() {
37
37
  }
38
38
  return modulesPromise;
39
39
  }
40
+ // The engine bundles its parser and stamps both with the package version, but reports it only in a
41
+ // log event, so the exported `package.json` is the stable source — and reading it never loads the engine.
42
+ function getParserVersion() {
43
+ if (!nodeSupportsNlp())
44
+ return undefined;
45
+ try {
46
+ return require(`${constants_1.NLP_WEB_RUNNER}/package.json`).version;
47
+ }
48
+ catch {
49
+ return undefined;
50
+ }
51
+ }
40
52
  function makeNlpLogger(logger) {
41
53
  if (!logger)
42
54
  return undefined;
@@ -170,6 +182,7 @@ function makeNlp(adapter, options = {}) {
170
182
  reportStep(logger, step, result);
171
183
  return results;
172
184
  },
185
+ getParserVersion,
173
186
  async dispose() {
174
187
  const activeRunnerPromise = runnerPromise;
175
188
  runnerPromise = undefined;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@applitools/core-nlp",
3
- "version": "0.1.2",
3
+ "version": "0.2.1",
4
4
  "keywords": [
5
5
  "nlp",
6
6
  "natural language",
@@ -30,10 +30,10 @@
30
30
  "test": "run --top-level mocha './test/**/*.spec.ts' --exit"
31
31
  },
32
32
  "dependencies": {
33
- "@applitools/core-base": "1.40.0",
34
- "@applitools/logger": "2.3.1",
35
- "@applitools/req": "1.11.3",
36
- "@applitools/utils": "1.15.2"
33
+ "@applitools/core-base": "1.41.1",
34
+ "@applitools/logger": "2.3.2",
35
+ "@applitools/req": "1.11.5",
36
+ "@applitools/utils": "1.15.3"
37
37
  },
38
38
  "optionalDependencies": {
39
39
  "@applitools/nlp-web-runner": "^5.19.0"
package/types/types.d.ts CHANGED
@@ -48,6 +48,8 @@ export interface MakeNlpOptions {
48
48
  }
49
49
  export interface Nlp {
50
50
  run(step: string): Promise<StepResult[]>;
51
+ /** Version of the engine's bundled NLP parser; `undefined` when the engine is unavailable. Never throws. */
52
+ getParserVersion(): string | undefined;
51
53
  dispose(): Promise<void>;
52
54
  }
53
55
  export type Browser = {