Skip to content

Conversation

@honzabubenik
Copy link
Contributor

Description

  • Introduced Node.js version matrix in CI for comprehensive testing.
  • Updated imports to use explicit .js extensions for improved compatibility.
  • Added assertNotNull utility function for stricter type safety in tests.
  • Applied consistent styling with Prettier format fixes.
  • Converted appropriate imports to import type in TypeScript files.
  • Updated configurations for ESLint, Prettier, and TypeScript.
  • Bumped various dependencies to their latest

## Dependencies
- Update @localazy/languages from ^0.1.6 to ^0.1.11
- Update @localazy/eslint-config from ^1.0.0-beta.2 to ^1.3.0
- Update @localazy/prettier-config from ^1.0.0-beta.2 to ^1.2.0
- Update @localazy/tsconfig from ^1.0.0-beta.4 to ^1.1.1
- Update @types/node from ^22.17.1 to ^22.18.0
- Update eslint from ^9.32.0 to ^9.34.0
- Update fetch-mock from ^12.5.3 to ^12.5.4
- Update unplugin-replace from ^0.2.1 to ^0.6.1
- Update vite from ^6.3.5 to ^7.1.3
- Update vite-plugin-node-polyfills from ^0.23.0 to ^0.24.0
- Replace `.prettierrc.js` with `"prettier"` key in `package.json`
- Update `tsconfig.json` to use `tsconfig.package.json` and new compiler options
- Adjust ESLint config syntax for correct options import
- Refactor all imports across types and test files to use `import type` for TypeScript type-only declarations.
- Replace `fs` import with `node:fs` for consistency.
…dling

- Replace direct null/undefined checks with `assertNotNull` in test files.
- Ensure stricter type safety and add consistency across file and API tests.
- Add missing `assertNotNull` utility function under `@tests/support`.
- Enforce `.js` extension for both absolute and relative imports for better compatibility.
- Update ESLint to enforce `forceJsExtensions`.
- Remove unused `nodePolyfills` plugin in `vite.config.ts`.
@github-actions
Copy link

github-actions bot commented Aug 28, 2025

Coverage Report

Status Category Percentage Covered / Total
🔵 Lines 94.34% 567 / 601
🔵 Statements 94.34% 567 / 601
🔵 Functions 96.07% 49 / 51
🔵 Branches 89% 89 / 100
File Coverage
File Stmts Branches Functions Lines Uncovered Lines
Changed Files
src/main.ts 100% 100% 100% 100%
src/api/api-client.ts 100% 100% 100% 100%
src/api/methods/api-base.ts 84.61% 71.42% 100% 84.61% 14-15
src/api/methods/api-export.ts 100% 100% 100% 100%
src/api/methods/api-files.ts 100% 100% 100% 100%
src/api/methods/api-formats.ts 100% 100% 100% 100%
src/api/methods/api-glossary.ts 100% 62.5% 100% 100%
src/api/methods/api-import.ts 80% 80% 66.66% 80% 53-63
src/api/methods/api-keys.ts 48.48% 100% 66.66% 48.48% 47-67
src/api/methods/api-projects.ts 92.3% 66.66% 100% 92.3% 35
src/api/methods/api-screenshots.ts 100% 100% 100% 100%
src/api/methods/api-webhooks.ts 100% 100% 100% 100%
src/http/fetch-http-adapter.ts 97.01% 87.5% 100% 97.01% 77-78
src/types/export-json-request.ts 0% 0% 0% 0%
src/types/file-get-contents-request.ts 0% 0% 0% 0%
src/types/file-list-keys-request.ts 0% 0% 0% 0%
src/types/files-list-request.ts 0% 0% 0% 0%
src/types/format-plural-meta.ts 0% 0% 0% 0%
src/types/format.ts 0% 0% 0% 0%
src/types/glossary-create-request.ts 0% 0% 0% 0%
src/types/glossary-delete-request.ts 0% 0% 0% 0%
src/types/glossary-find-request.ts 0% 0% 0% 0%
src/types/glossary-list-request.ts 0% 0% 0% 0%
src/types/glossary-record-term.ts 0% 0% 0% 0%
src/types/glossary-record.ts 0% 0% 0% 0%
src/types/glossary-update-request.ts 0% 0% 0% 0%
src/types/i18n-json.ts 0% 0% 0% 0%
src/types/import-data-factory.ts 100% 100% 100% 100%
src/types/import-data-file.ts 0% 0% 0% 0%
src/types/import-data.ts 0% 0% 0% 0%
src/types/import-i18n-options.ts 0% 0% 0% 0%
src/types/import-json-request.ts 0% 0% 0% 0%
src/types/import-progress-request.ts 0% 0% 0% 0%
src/types/key-delete-request.ts 0% 0% 0% 0%
src/types/key-deprecate-request.ts 0% 0% 0% 0%
src/types/key-update-request.ts 0% 0% 0% 0%
src/types/key.ts 0% 0% 0% 0%
src/types/keys-paginated.ts 0% 0% 0% 0%
src/types/locales-keys.ts 0% 0% 0% 0%
src/types/project.ts 0% 0% 0% 0%
src/types/screenshot-create-request.ts 0% 0% 0% 0%
src/types/screenshot-delete-request.ts 0% 0% 0% 0%
src/types/screenshot-update-image-data-request.ts 0% 0% 0% 0%
src/types/screenshot-update-request.ts 0% 0% 0% 0%
src/types/screenshot.ts 0% 0% 0% 0%
src/types/screenshots-list-request.ts 0% 0% 0% 0%
src/types/screenshots-list-tags-request.ts 0% 0% 0% 0%
src/types/upload-session-status.ts 0% 0% 0% 0%
src/types/webhook.ts 0% 0% 0% 0%
src/types/webhooks-get-secret-request.ts 0% 0% 0% 0%
src/types/webhooks-list-request.ts 0% 0% 0% 0%
src/types/webhooks-update-request.ts 0% 0% 0% 0%
src/utils/json-utils.ts 91.66% 88.88% 100% 91.66% 48-49
Generated in workflow #59 for commit cc10788 by the Vitest Coverage Report Action

- Add `scripts/node-test-matrix.sh` for running tests across Node.js versions (20, 22, 24).
- Update `.github/workflows/qa.yml` to utilize a Node.js version matrix in CI.
- Add new `test:matrix` script to `package.json` for local testing.
- Refine `package.json` by simplifying `files` and adding Node.js engine requirement.
@honzabubenik honzabubenik merged commit 8c41e56 into main Aug 28, 2025
3 checks passed
@honzabubenik honzabubenik deleted the fix_audit branch August 28, 2025 21:14
@localazy-bot localazy-bot bot mentioned this pull request Aug 28, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants