@lokalise/polyglot-sdk 19.0.0 → 19.0.2

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 (45) hide show
  1. package/dist/index.d.ts +22 -22
  2. package/dist/index.js +20 -20
  3. package/dist/index.js.map +1 -1
  4. package/dist/sdk/PolyglotClient.d.ts +7 -7
  5. package/dist/sdk/PolyglotClient.js +6 -6
  6. package/dist/sdk/helpers/htmlEscaping.d.ts +1 -1
  7. package/dist/sdk/helpers/htmlEscaping.js +3 -3
  8. package/dist/sdk/helpers/htmlEscaping.js.map +1 -1
  9. package/dist/sdk/helpers/nonTranslatableContentHelper.d.ts +1 -1
  10. package/dist/sdk/helpers/nonTranslatableContentHelper.js +3 -3
  11. package/dist/sdk/helpers/nonTranslatableContentHelper.js.map +1 -1
  12. package/dist/sdk/helpers/nonTranslatableContentWrappers.d.ts +2 -12
  13. package/dist/sdk/helpers/nonTranslatableContentWrappers.js +26 -38
  14. package/dist/sdk/helpers/nonTranslatableContentWrappers.js.map +1 -1
  15. package/dist/sdk/schemas/common/asyncRequestSchemas.d.ts +1 -1
  16. package/dist/sdk/schemas/common/commonSchemas.d.ts +12 -1
  17. package/dist/sdk/schemas/common/commonSchemas.js +5 -1
  18. package/dist/sdk/schemas/common/commonSchemas.js.map +1 -1
  19. package/dist/sdk/schemas/common/errorSchemas.d.ts +1 -1
  20. package/dist/sdk/schemas/common/errorSchemas.js +1 -1
  21. package/dist/sdk/schemas/common/translationContextSchemas.d.ts +0 -11
  22. package/dist/sdk/schemas/common/translationContextSchemas.js +2 -6
  23. package/dist/sdk/schemas/common/translationContextSchemas.js.map +1 -1
  24. package/dist/sdk/schemas/lqa/commonSchemas.d.ts +1 -1
  25. package/dist/sdk/schemas/lqa/lqaAsyncSchemas.js +8 -7
  26. package/dist/sdk/schemas/lqa/lqaAsyncSchemas.js.map +1 -1
  27. package/dist/sdk/schemas/lqa/lqaSyncSchemas.js +7 -6
  28. package/dist/sdk/schemas/lqa/lqaSyncSchemas.js.map +1 -1
  29. package/dist/sdk/schemas/translation/generateVariants.js +3 -3
  30. package/dist/sdk/schemas/translation/rewriteTextSchemas.d.ts +1 -1
  31. package/dist/sdk/schemas/translation/rewriteTextSchemas.js +4 -4
  32. package/dist/sdk/schemas/translation/sharedSchemas.d.ts +117 -4
  33. package/dist/sdk/schemas/translation/sharedSchemas.js +21 -5
  34. package/dist/sdk/schemas/translation/sharedSchemas.js.map +1 -1
  35. package/dist/sdk/schemas/translation/translateAsyncSchemas.d.ts +265 -1
  36. package/dist/sdk/schemas/translation/translateAsyncSchemas.js +5 -5
  37. package/dist/sdk/schemas/translation/translateSyncSchemas.d.ts +233 -1
  38. package/dist/sdk/schemas/translation/translateSyncSchemas.js +4 -4
  39. package/dist/sdk/schemas/translation/translateTextSegmentSchemas.js +4 -4
  40. package/dist/sdk/schemas/translation/translateTextSegmentSchemas.js.map +1 -1
  41. package/dist/sdk/validation/isSegmentUnderLengthLimit.d.ts +1 -1
  42. package/dist/sdk/validation/isSegmentUnderLengthLimit.js +3 -3
  43. package/dist/sdk/validation/requestSizeLimit.d.ts +2 -2
  44. package/dist/sdk/validation/requestSizeLimit.js +2 -2
  45. package/package.json +17 -15
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lokalise/polyglot-sdk",
3
- "version": "19.0.0",
3
+ "version": "19.0.2",
4
4
  "author": {
5
5
  "name": "Lokalise",
6
6
  "url": "https://lokalise.com/"
@@ -33,36 +33,38 @@
33
33
  "test:coverage": "npm test -- --coverage",
34
34
  "test:ci": "npm run test:coverage",
35
35
  "package-version": "echo $npm_package_version",
36
- "postversion": "biome check --write package.json"
36
+ "version": "auto-changelog -p --tag-pattern \"sdk-\\d+.\\d+.\\d+\" && git add CHANGELOG.md",
37
+ "postversion": "biome check --write package.json && git add package.json"
37
38
  },
38
39
  "dependencies": {
39
- "@lokalise/backend-http-client": "^3.0.0",
40
- "@lokalise/id-utils": "^2.2.0",
41
- "@lokalise/node-core": "^13.4.0",
40
+ "@lokalise/backend-http-client": "^5.0.0",
41
+ "@lokalise/id-utils": "^3.0.0",
42
+ "@lokalise/node-core": "^13.6.0",
42
43
  "@lokalise/non-translatable-markup": "^3.0.0",
43
- "@lokalise/supported-languages": "^2.1.0",
44
+ "@lokalise/supported-languages": "^3.0.0",
44
45
  "@lokalise/zod-extras": "^2.1.0",
45
46
  "html-escaper": "^3.0.3",
46
- "undici": "^7.2.3",
47
+ "undici": "^7.7.0",
47
48
  "undici-retry": "^6.0.0",
48
49
  "zod": "^3.24.2"
49
50
  },
50
51
  "peerDependencies": {
51
- "@lokalise/fastify-extras": ">=26.0.0"
52
+ "@lokalise/fastify-extras": ">=27.0.0"
52
53
  },
53
54
  "devDependencies": {
54
- "@amplitude/analytics-types": "^2.8.4",
55
+ "@amplitude/analytics-types": "^2.9.0",
55
56
  "@biomejs/biome": "^1.9.4",
56
- "@lokalise/biome-config": "^1.5.0",
57
- "@lokalise/fastify-extras": "^26.0.0",
57
+ "@lokalise/biome-config": "^2.0.0",
58
+ "@lokalise/fastify-extras": "^27.3.0",
59
+ "@lokalise/tsconfig": "^1.1.0",
58
60
  "@types/html-escaper": "^3.0.4",
59
- "@types/node": "^22.13.8",
60
- "@vitest/coverage-v8": "^3.0.7",
61
+ "@types/node": "^22.14.1",
62
+ "@vitest/coverage-v8": "^3.1.1",
61
63
  "auto-changelog": "^2.5.0",
62
- "mockttp": "^3.16.0",
64
+ "mockttp": "^3.17.0",
63
65
  "rimraf": "^6.0.1",
64
66
  "ts-deepmerge": "^7.0.1",
65
- "typescript": "5.8.2",
67
+ "typescript": "5.8.3",
66
68
  "vitest": "^3.0.4"
67
69
  }
68
70
  }