mindee 5.0.0 → 5.0.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,11 @@
1
1
  # CHANGELOG
2
2
 
3
+ ## v5.0.1 - 2026-02-24
4
+ ### Changes
5
+ * :recycle: rename client options directory (internal)
6
+ * :arrow_up: bump dev dependencies to fix vulnerabilities
7
+
8
+
3
9
  ## v5.0.0 - 2026-02-19
4
10
  ### ¡Breaking Changes!
5
11
  * :boom: :sparkles: move PDF and image libraries to optional dependencies (resolves #388)
@@ -15,7 +21,7 @@
15
21
  * :sparkles: add Job to inference responses
16
22
  * :sparkles: handle abort signal stream inputs
17
23
  * :recycle: use undici (compatible with v6 or v7) for HTTP requests and mocking
18
- * :sparkles: add ability for a user to specify their own undici `Dispatcher` instance
24
+ * :sparkles: add the ability for a user to specify their own undici `Dispatcher` instance
19
25
  * :recycle: migrate to ES modules
20
26
 
21
27
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mindee",
3
- "version": "5.0.0",
3
+ "version": "5.0.1",
4
4
  "description": "Mindee Client Library for Node.js",
5
5
  "author": {
6
6
  "name": "Mindee",
@@ -32,7 +32,7 @@
32
32
  "test-integration-light": "mocha --grep '#OptionalDepsRequired' --invert 'tests/**/*.integration.ts'",
33
33
  "test-v2": "tsc --noEmit && node --import tsx --test 'tests/v2/**/*.spec.ts'",
34
34
  "lint": "tsc --noEmit && eslint --report-unused-disable-directives './src/**/*.ts' './tests/**/*.ts'",
35
- "lint-fix": "eslint --fix --report-unused-disable-directives './src/**/*.ts' './tests/**/*.ts'",
35
+ "lint-fix": "tsc --noEmit && eslint --fix --report-unused-disable-directives './src/**/*.ts' './tests/**/*.ts'",
36
36
  "docs": "typedoc --out docs/_build ./src/index.ts",
37
37
  "docs-for-dist": "typedoc --out docs/_build ./src/index.ts && cp -r ./docs/code_samples ./docs/_build/"
38
38
  },
@@ -63,10 +63,10 @@
63
63
  "@types/mocha": "^10.0.10",
64
64
  "@types/node": "^20.19.33",
65
65
  "@types/tmp": "^0.2.6",
66
- "@typescript-eslint/eslint-plugin": "^8.56.0",
67
- "@typescript-eslint/parser": "^8.56.0",
68
- "eslint": "^9.39.2",
69
- "eslint-plugin-jsdoc": "^62.6.0",
66
+ "@typescript-eslint/eslint-plugin": "^8.56.1",
67
+ "@typescript-eslint/parser": "^8.56.1",
68
+ "eslint": "^9.39.3",
69
+ "eslint-plugin-jsdoc": "^62.7.1",
70
70
  "mocha": "^11.7.5",
71
71
  "tsc-alias": "^1.8.16",
72
72
  "tsx": "^4.21.0",
@@ -2,7 +2,7 @@ import { Dispatcher } from "undici";
2
2
  import { InputSource } from "../input/index.js";
3
3
  import { JobResponse } from "./parsing/index.js";
4
4
  import { MindeeApiV2 } from "./http/mindeeApiV2.js";
5
- import { PollingOptions, PollingOptionsConstructor } from "./client/index.js";
5
+ import { PollingOptions, PollingOptionsConstructor } from "./clientOptions/index.js";
6
6
  import { BaseProduct } from "../v2/product/baseProduct.js";
7
7
  /**
8
8
  * Options for the V2 Mindee Client.
package/src/v2/client.js CHANGED
@@ -4,7 +4,7 @@ import { errorHandler } from "../errors/handler.js";
4
4
  import { LOG_LEVELS, logger } from "../logger.js";
5
5
  import { MindeeApiV2 } from "./http/mindeeApiV2.js";
6
6
  import { MindeeHttpErrorV2 } from "./http/errors.js";
7
- import { PollingOptions } from "./client/index.js";
7
+ import { PollingOptions } from "./clientOptions/index.js";
8
8
  /**
9
9
  * Mindee Client V2 class that centralizes most basic operations.
10
10
  *
@@ -1,6 +1,6 @@
1
1
  import { ApiSettings } from "./apiSettings.js";
2
2
  import { Dispatcher } from "undici";
3
- import { BaseParameters } from "../../v2/client/index.js";
3
+ import { BaseParameters } from "../../v2/index.js";
4
4
  import { JobResponse } from "../../v2/parsing/index.js";
5
5
  import { InputSource } from "../../input/index.js";
6
6
  import { BaseProduct } from "../../v2/product/baseProduct.js";
package/src/v2/index.d.ts CHANGED
@@ -3,5 +3,5 @@ export * as parsing from "./parsing/index.js";
3
3
  export * as product from "./product/index.js";
4
4
  export { Client } from "./client.js";
5
5
  export { JobResponse, ErrorResponse, LocalResponse, } from "./parsing/index.js";
6
- export type { BaseParameters, TimerOptions } from "./client/index.js";
7
- export { PollingOptions } from "./client/index.js";
6
+ export type { BaseParameters, TimerOptions } from "./clientOptions/index.js";
7
+ export { PollingOptions } from "./clientOptions/index.js";
package/src/v2/index.js CHANGED
@@ -3,4 +3,4 @@ export * as parsing from "./parsing/index.js";
3
3
  export * as product from "./product/index.js";
4
4
  export { Client } from "./client.js";
5
5
  export { JobResponse, ErrorResponse, LocalResponse, } from "./parsing/index.js";
6
- export { PollingOptions } from "./client/index.js";
6
+ export { PollingOptions } from "./clientOptions/index.js";
@@ -1,4 +1,4 @@
1
- import { BaseParameters } from "../../v2/client/index.js";
1
+ import { BaseParameters } from "../../v2/index.js";
2
2
  import { ResponseConstructor } from "../../v2/parsing/index.js";
3
3
  /**
4
4
  * Base class for all V2 product definitions.
@@ -1,4 +1,4 @@
1
- import { BaseParameters, BaseParametersConstructor } from "../../../../v2/client/baseParameters.js";
1
+ import { BaseParameters, BaseParametersConstructor } from "../../../../v2/clientOptions/baseParameters.js";
2
2
  /**
3
3
  * Parameters accepted by the asynchronous **inference** v2 endpoint.
4
4
  *
@@ -1,4 +1,4 @@
1
- import { BaseParameters } from "../../../../v2/client/baseParameters.js";
1
+ import { BaseParameters } from "../../../../v2/clientOptions/baseParameters.js";
2
2
  import { logger } from "../../../../logger.js";
3
3
  /**
4
4
  * Parameters accepted by the asynchronous **inference** v2 endpoint.
@@ -1,4 +1,4 @@
1
- import { BaseParameters, BaseParametersConstructor } from "../../../../v2/client/baseParameters.js";
1
+ import { BaseParameters, BaseParametersConstructor } from "../../../../v2/clientOptions/baseParameters.js";
2
2
  /**
3
3
  * Parameters accepted by the asynchronous **inference** v2 endpoint.
4
4
  *
@@ -1,4 +1,4 @@
1
- import { BaseParameters } from "../../../../v2/client/baseParameters.js";
1
+ import { BaseParameters } from "../../../../v2/clientOptions/baseParameters.js";
2
2
  import { logger } from "../../../../logger.js";
3
3
  /**
4
4
  * Parameters accepted by the asynchronous **inference** v2 endpoint.
@@ -1,7 +1,7 @@
1
1
  import { FormData } from "undici";
2
2
  import { StringDict } from "../../../../parsing/stringDict.js";
3
3
  import { DataSchema } from "./dataSchema.js";
4
- import { BaseParameters, BaseParametersConstructor } from "../../../../v2/client/baseParameters.js";
4
+ import { BaseParameters, BaseParametersConstructor } from "../../../../v2/clientOptions/baseParameters.js";
5
5
  /**
6
6
  * Parameters accepted by the asynchronous **inference** v2 endpoint.
7
7
  *
@@ -1,6 +1,6 @@
1
1
  import { FormData } from "undici";
2
2
  import { DataSchema } from "./dataSchema.js";
3
- import { BaseParameters } from "../../../../v2/client/baseParameters.js";
3
+ import { BaseParameters } from "../../../../v2/clientOptions/baseParameters.js";
4
4
  import { logger } from "../../../../logger.js";
5
5
  /**
6
6
  * Parameters accepted by the asynchronous **inference** v2 endpoint.
@@ -1,4 +1,4 @@
1
- import { BaseParameters, BaseParametersConstructor } from "../../../../v2/client/baseParameters.js";
1
+ import { BaseParameters, BaseParametersConstructor } from "../../../../v2/clientOptions/baseParameters.js";
2
2
  /**
3
3
  * Parameters accepted by the asynchronous **inference** v2 endpoint.
4
4
  *
@@ -1,4 +1,4 @@
1
- import { BaseParameters } from "../../../../v2/client/baseParameters.js";
1
+ import { BaseParameters } from "../../../../v2/clientOptions/baseParameters.js";
2
2
  import { logger } from "../../../../logger.js";
3
3
  /**
4
4
  * Parameters accepted by the asynchronous **inference** v2 endpoint.
@@ -1,4 +1,4 @@
1
- import { BaseParameters, BaseParametersConstructor } from "../../../../v2/client/baseParameters.js";
1
+ import { BaseParameters, BaseParametersConstructor } from "../../../../v2/clientOptions/baseParameters.js";
2
2
  /**
3
3
  * Parameters accepted by the asynchronous **inference** v2 endpoint.
4
4
  *
@@ -1,4 +1,4 @@
1
- import { BaseParameters, } from "../../../../v2/client/baseParameters.js";
1
+ import { BaseParameters, } from "../../../../v2/clientOptions/baseParameters.js";
2
2
  import { logger } from "../../../../logger.js";
3
3
  /**
4
4
  * Parameters accepted by the asynchronous **inference** v2 endpoint.
File without changes
File without changes