574 Commits

Author SHA1 Message Date
Piotr Kuczynski
5b01c399ce
docs: fix link to email, when vulnerability found (#11667)
* docs: fix link to email, when vulnerability found

* Update package.json

* Update CONTRIBUTING.md

---------

Co-authored-by: Giorgio Boa <35845425+gioboa@users.noreply.github.com>
2025-11-07 13:55:47 +01:00
Piotr Kuczynski
b9309098bc
feat(cli/init): pick dependencies versions from our own package.json (#11705) 2025-10-03 13:51:06 +07:00
Piotr Kuczynski
dbfaad9e7c
ci: bump actions/setup-node to v5 and benefit from automatic caching (#11709) 2025-10-03 13:50:13 +07:00
Piotr Kuczynski
e0e7de14ca
ci: introduce jsdoc eslint plugin (warnings only) (#11681)
* ci: introduce jsdoc eslint plugin (warnings only)

* fixed

* fixed
2025-09-26 18:11:29 +02:00
Lucian Mocanu
d4f7b44fdf
chore: fix package preview (#11542) 2025-09-20 09:34:22 +02:00
Lucian Mocanu
c16ef63db7
chore: update dependencies (#11666) 2025-09-19 18:34:39 +02:00
Michael Bromley
9ea8577f42
chore: Release v0.3.27 (#11661) 2025-09-19 11:45:01 +02:00
Lucian Mocanu
8b76e1af74
feat(mysql): add support for MySQL 9 / MariaDB 12 (#11575) 2025-09-17 09:08:31 +02:00
Prateek Hegde
9cdfb20b12
chore: bump sha.js from 2.4.11 to 2.4.12 (fix security issue: CVE-2025-9288) (#11639)
* chore: bump sha.js from 2.4.11 to 2.4.12 (fix security issue: CVE-2025-9288)

* test: add unit tests for hash() to ensure sha.js upgrade compatibility

- Verify SHA1 output for known inputs
- Test truncation with options.length
- Handle empty string input
- Confirm deterministic behavior for identical inputs

* removed .only from test/unit/util/string-utils.ts to run all the unit tests

* fix(hash): ensure negative or zero options.length returns full hash

- Updated hash() to only truncate when options.length > 0
- Prevents accidental truncation when options.length is negative
- Maintains expected behavior for full-length hash

* added strict +ve number input validation for hash()

* simplified the logic to check number len before applying slice() in StringUtils.ts->hash()

---------

Co-authored-by: Prateek Hegde <prateek.hegde@deliverysolutions.co>
Co-authored-by: Prateek Hegde <prateek@Prateeks-MacBook-Pro.local>
2025-09-10 09:19:54 +12:00
Mackenzie Salisbury
6965fa2082
fix: Add package.json exports for react-native (#11623) 2025-08-30 16:04:25 +12:00
Michael Bromley
4d204adf56
chore: Release v0.3.26 (#11602) 2025-08-18 17:32:25 +01:00
Park Jin Woong
17cf837ba9
feat(11528): add Redis 5.x support with backward compatibility wite peer dependency to allow (#11585)
* feat: add Redis 5 support to cache implementation

- Add version detection for Redis client to handle API differences
- Support Redis 5 Promise-based API while maintaining backward compatibility
- Update methods to use appropriate API based on Redis version
- Add tests for Redis 5 compatibility

Redis 5 introduced Promise-based API as default, replacing the callback-based
API. This change detects the Redis version and uses the appropriate API calls
to ensure compatibility with Redis 3, 4, and 5.

Closes #11528

* feat: add Redis 5 support to cache implementation

Implement automatic version detection for Redis client libraries to support
Redis 3, 4, and 5 seamlessly. The implementation uses runtime API testing
to determine the appropriate Redis client behavior without breaking existing
functionality.

Changes include:
  - Dynamic Redis version detection based on client API characteristics
  - Promise-based API support for Redis 5.x
  - Backward compatibility with Redis 3.x and 4.x callback-based APIs
  - Safe fallback mechanism defaulting to Redis 3 behavior
  - Updated peer dependency to include Redis 5.x versions

The cache implementation now automatically adapts to the installed Redis version, ensuring optimal performance and compatibility across all supported Redis client versions while maintaining full backward compatibility.

* fix: delete wrong migration guide

* feat: add package-lock.json

* refactor: optimize Redis client creation to reduce memory usage
Eliminate unnecessary Redis client recreation by using explicit tempClient
variable management, reducing potential client instances while maintaining
full Redis 3/4/5 compatibility and accurate version detection.

* refactor: improve Redis version detection to avoid cache pollution
Replace test key creation method with client method signature analysis
to prevent potential cache pollution and improve performance.

* style: apply Prettier formatting to RedisQueryResultCache.ts
2025-08-01 17:30:41 +02:00
Mohamed Akram
1ea3a5eb06
fix: support for better-sqlite3 v12 (#11557) 2025-07-03 20:35:13 +02:00
Lucian Mocanu
aebc7ebc67
feat(sap): use the native driver for connection pooling (#11520)
* feat(sap): use the native driver for connection pooling

* Add pool error handler
2025-07-01 23:43:12 +02:00
Lucian Mocanu
01dddfef97
fix: add stricter type-checking and improve event loop handling (#11540)
* refactor: minor type improvements

* chore: add type-checked eslint rules

* fix: enable no-misused-promises

* fix: enable no-floating-promises

* fix: enable await-thenable

* fix: enable require-await

* fix: enable no-misused-new

* refactor: enable no-namespace

* refactor: enable tseslint eslint recommended

* code review
2025-06-22 11:51:29 +02:00
Lucian Mocanu
abf8863a53
feat(sap): add support for REAL_VECTOR and HALF_VECTOR data types in SAP HANA Cloud (#11526)
* feat(sap): add support for REAL_VECTOR data type

* feat(sap): add support for HALF_VECTOR data type
2025-06-22 01:43:10 +02:00
Michael Bromley
bdb8326ad7
chore: Release 0.3.25 (#11535) 2025-06-19 18:08:24 +02:00
Lucian Mocanu
ead4f98ee4
fix: improve async calls on disconnect (#11523) 2025-06-19 00:43:38 +02:00
Naor Peled
4b0ffeeb33
docs: new website initial commit
Co-authored-by: Giorgio Boa <35845425+gioboa@users.noreply.github.com>
Co-authored-by: Jovana Đurić <63621526+jovanadjuric@users.noreply.github.com>
Co-authored-by: jovanadjuric <mat.jovana@gmail.com>
Co-authored-by: Mike Guida <mike@mguida.com>
Co-authored-by: gioboa <giorgiob.boa@gmail.com>
2025-06-06 18:03:25 +03:00
Lucian Mocanu
61753b1adf
chore: improve linting (#11510) 2025-06-05 21:40:45 +02:00
Mike Guida
12a71e4581
chore: version 0.3.24 (#11478) 2025-05-14 12:00:37 -06:00
Naor Peled
2168441e6c
fix(ci): resolve pkg.pr.new publish failure
Co-authored-by: AmirHossein Sakhravi <amirhosseinpr184@gmail.com>
2025-05-11 19:53:08 +03:00
Maxim Bronnikov
a213bbd215
chore: Add husky and lint-staged (#11448)
Co-authored-by: maxbronnikov10 <maxbronnikov2004@gmail.com>
2025-05-08 21:53:45 -06:00
Eliya Cohen
c464ff87cb
feat: add tagged template for executing raw SQL queries (#11432)
* Added a new SQL tagged template feature for executing raw SQL queries with automatic parameter handling.

---------

Co-authored-by: Simon Garner <simon@equalogic.com>
2025-05-09 13:19:40 +12:00
Michael Bromley
80e9b3004a
chore: Version 0.3.23 (#11439) 2025-05-07 12:03:48 +02:00
Naor Peled
274bdf2e1a
feat: publish PR releases using pkg.pr.new 2025-05-02 23:09:42 +03:00
Lucian Mocanu
04f3d3ff4c
chore: fix changelog generation (#11381) 2025-04-04 19:50:49 +02:00
Michael Bromley
6c5668bd82
chore: Bump version to v0.3.22 and generate changelog (#11378) 2025-04-03 11:00:34 +02:00
Lucian Mocanu
fb06662bea
build: setup SAP HANA tests (#11347)
* build: setup SAP HANA tests

* test: fix/skip failing SAP HANA tests

* fix(sap): rename schema
2025-03-29 22:35:44 +01:00
Lucian Mocanu
6ba408214e
build: improve test workflow (#11361) 2025-03-26 22:10:19 +01:00
Lucian Mocanu
00d5639efb
chore: update dependencies (#11339)
* style: sort package json

* chore: update dependencies

* fix: update dependencies added by the init command

* fix: restore node 16/18 compatibility

* docs: update package description

* chore: remove unused dependencies
2025-03-21 19:57:18 +02:00
Lucian Mocanu
8c2b2ae240
style: lint repository (#11346)
* style: lint uncommon rules

* style: fix `no-wrapper-object-types`

* fix: type errors after Object -> object change

* style: fix `prefer-const`

* build: add eslint/prettier exclusions
2025-03-20 22:15:39 +02:00
Mike Guida
de8eb04c72
build: run format in ci (#11342)
* style: run format on existing files

* build: run format in ci

* build: add format:ci to check formatting in ci
2025-03-20 20:27:09 +02:00
Michael Bromley
206af0aa39
chore: Bump version 0.3.21 (#11314) 2025-03-03 09:02:10 +01:00
Lucian Mocanu
988673c549
refactor: use ansis instead of chalk (#11263) 2025-02-27 19:53:59 +01:00
Michael Bromley
17a3c52855
chore: Fix release issues (#11303) 2025-02-20 14:56:54 +01:00
Joshua Mark Furtado
6c0c2bab63
fix: Add support for better-sqlite3 v10 and 11 (#11096) 2025-01-21 08:25:50 +01:00
Lucian Mocanu
1516cfebdd
refactor: use sql-highlight instead of cli-highlight (#11221) 2025-01-20 22:03:13 +01:00
Shenghan Gao
3a51160818
fix: Update mssql allowed version to fix vulnerability. (#10933) 2025-01-20 21:42:08 +01:00
Rohan Talip
08cea16ac5
chore: added --cache to prettier call (#10865) 2025-01-20 21:19:34 +01:00
Oleg "OSA413" Sokolov
9d1d3f1008
chore(test): Add Coverage on Coveralls (#11225)
use lcov by default
2025-01-09 11:03:32 +01:00
Lucian Mocanu
71addb2ef4
refactor: use node:fs/promises (#11206)
* refactor: use fs promises

* refactor: remove del, update rimraf
2024-12-30 09:33:51 +01:00
Lucian Mocanu
af7ac1c6d8
chore: migrate to ESLint flat config (#11205) 2024-12-29 16:33:46 +01:00
Oleg "OSA413" Sokolov
af603ae5cf
test: Expand node version matrix to node16, node18, and node20 (#11183) 2024-12-14 08:51:17 +01:00
Oleg "OSA413" Sokolov
14657737a4
chore: Update some packages and run npm audit fix (#11181)
Closes #11171
2024-12-12 14:11:30 +01:00
Oleg "OSA413" Sokolov
e7649d2746
fix: moved reflect-metadata to peerDependencies and set version to "^0.1.14 || ^0.2.0" (#10779) 2024-03-28 20:06:13 +05:00
Umed Khudoiberdiev
3d55188c0d version bump 2024-01-26 16:18:56 +05:00
Lucian Mocanu
c22e30f1d2
build: set TS compile target to ES2021 (#10595)
* build: set TS compile target to ES2021

* docs: update minimum supported node version

* build: use @tsconfig/node16
2024-01-04 09:57:12 +05:00
Umed Khudoiberdiev
73e3b49edc version bump 2024-01-03 19:43:45 +05:00
Umed Khudoiberdiev
5464dec2fa version bump 2024-01-03 17:42:18 +05:00