5492 Commits

Author SHA1 Message Date
Jovana Đurić
c15cb077a7
docs(entity-subscribers): document primary key availability in UpdateEvent (#11308)
* docs(entity-subscribers): describe UpdateEvent behavior

* Update docs/listeners-and-subscribers.md

Co-authored-by: Simon Garner <simon@equalogic.com>

---------

Co-authored-by: Simon Garner <simon@equalogic.com>
2025-04-05 14:45:22 +02:00
Pieter Wigboldus
7c5ea99b31
feat: generate ESM migrations via esm flag (#10802)
Including jsdoc for typehinting
Add esm as an option in the migrate cli
Update the documentation for the JS migrations

fixes #10801

Co-authored-by: Mike Guida <mike@mguida.com>
2025-04-04 12:05:33 -06:00
Lucian Mocanu
04f3d3ff4c
chore: fix changelog generation (#11381) 2025-04-04 19:50:49 +02:00
Yevhen Komarov
6ebae3b795
feat: add new foreign key decorator, and entity schemas options (#11144)
* feat: add new foreign key decorator, and entity schemas options

This new feature adds the ability to create foreign key constraints without entity relations, using `@ForeignKey()` decorator or entity schema options.

Closes: #4569
2025-04-04 10:22:40 +13:00
dependabot[bot]
055eafd2e4
build(deps): bump tar-fs from 2.1.1 to 2.1.2 (#11370)
Bumps [tar-fs](https://github.com/mafintosh/tar-fs) from 2.1.1 to 2.1.2.
- [Commits](https://github.com/mafintosh/tar-fs/compare/v2.1.1...v2.1.2)

---
updated-dependencies:
- dependency-name: tar-fs
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-04-03 19:37:22 +03:00
Michael Bromley
cebd63b1f4
chore: Fix publish command (#11379) 2025-04-03 11:18:32 +02:00
Michael Bromley
6c5668bd82
chore: Bump version to v0.3.22 and generate changelog (#11378) 0.3.22 2025-04-03 11:00:34 +02:00
Michael Bromley
72beb26513
chore: Add package publishing workflow (#11377) 2025-04-02 21:49:34 +02:00
Benjamin Renoux
72c6991680
fix: incorrect table alias in insert orUpdate with Postgres driver (#11082)
* fix: resolve issues in insert query orUpdate method with postgres driver

This fix make use of table name alias in WHERE clause of onUpdate method with postgres driver to avoid throwing error

Closes: #11077

* test: update insert on conflict test

---------

Co-authored-by: Lucian Mocanu <alumni@users.noreply.github.com>
2025-04-02 02:31:52 +02:00
Mike Guida
592251962d
docs: add comment explaining select version() (#11376) 2025-04-01 16:41:44 -06:00
Ruben Grimm
7b242e1698
feat: Support Expo SQLite Next
* Add ExpoDriverFactory to create ExpoLegacyDriver

* Add driver for new Expo SQLite API

---------

Co-authored-by: Ruben Grimm <pmk1c@users.noreply.github.com>
Co-authored-by: Lucian Mocanu <alumni@users.noreply.github.com>
2025-04-02 00:27:34 +03:00
Lucian Mocanu
3d79786a92
fix: version detection for Postgres derived variants (#11375) 2025-04-01 21:54:27 +02:00
Lucian Mocanu
460ef023ba
fix(sap): normalize deprecated/removed data types in SAP HANA Cloud (#11356)
* fix(sap): SAP HANA Cloud data types

* fix(sap): fall back to regular index when fulltext is not supported

* fix: remove dead code
2025-04-01 20:54:54 +02:00
Lucian Mocanu
863caf1471
fix: sql escape issues identified by CodeQL (#11338)
* fix: sql escape issues identified by CodeQL

* fix: random generation in sample code
2025-04-01 10:38:36 +02:00
zyoshoka
c3bebdcb4e
fix: remove unnecessary spaces in message when running non-fake migrations (#10809) 2025-03-31 22:27:06 -06:00
ertl
bcaa0bf071
fix: bulk insert NULL values in Oracle (#11363)
resolve issue with bulk insert of NULL values for non VARCHAR2 types in Oracle.
2025-03-31 21:35:03 -06:00
Alex Bevilacqua
a29e04750d
feat: Send DriverInfo to MongoDB client (#11214) 2025-03-31 18:57:36 +02:00
Mohamed Akram
81bb9d53e8
fix: update mongodb connection options (#11310) 2025-03-31 00:32:20 +02:00
Nicklas Laine Overgaard
03dbc7a697
fix: export QueryEvent before/after types (#10688)
* fix: export * from `subscriber/event/QueryEvent`

Otherwise it's impossible to create a listener/subscriper that is using
the Before/After query event types

* docs: clarify that QueryEvent execution time result is in ms
2025-03-30 11:31:52 +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
4e31a8648a
refactor: database server version fetching & comparison (#11357) 2025-03-26 11:41:07 +01:00
Muhammad Ghayas Baig
834e85692f
fix: FindOptionsSelect to use correct type when property is an object (#11355)
* fix: FindOptionsSelectProperty or boolean when Property is object

* fix: add test cases for find options select

* fix: use simple-json for tests
2025-03-25 15:40:42 +05: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
Sudhir Shrestha
ecae9f5990
fix: ensure correct MSSQL parameter conversion in where conditions
Fixes input parameter conversion in SelectQueryBuilder when using an MSSQL connection.

Closes #11285
2025-03-20 23:24:23 +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
John Chan
b0ea913f4e
feat(postgres): support macaddr8 column type
Signed-off-by: John Chan <john.chan@sgwireless.com>
2025-03-19 16:13:12 +05:00
Oleg "OSA413" Sokolov
5d6d893662
test: fix and run tests on Windows (#11257)
* Skip tests that don't work on Windows

* Bring back tests on Windows

* Skip the test on all platforms exept Windows

* Make the test run only on Windows

* Add simple winodws test

* fix cli test on Windows

* let's see if this test passes on linux

* limit test to Windows and run format

* Add withPlatform test helper

* Mock platform in file path tests using withPlatform()

* Fix test: relative paths should not change on non-win32 platforms

* Lowercase relative path on non-win32 platform

* test: add better-sqlite3 and sqlite for Windows tests

---------

Co-authored-by: Simon Garner <simon@equalogic.com>
2025-03-14 16:01:46 +05:00
Lucian Mocanu
ae96f87923
fix: empty objects being hydrated when eager loading relations that have a @VirtualColumn (#10927) 2025-03-14 10:05:19 +01:00
Naor Peled
8429e8f9cc
ci: add CodeQL workflow 2025-03-14 00:02:42 +02:00
Doug Ayers
ba47b62379
chore(test): set timezone to UTC (#11247)
Fixes #11246

To mitigate timezone discrepancies with timestamps in tests with hard coded assertions, standardize on UTC

Co-authored-by: Mike Guida <mike@mguida.com>
2025-03-12 21:56:33 +05:00
Oleg "OSA413" Sokolov
deb0e81398
test: rename tests to better describe the case (#11280)
Fixes #10863
2025-03-12 21:40:55 +05:00
Dmitrii Tkachenko
72145b859d
fix: remove unnecessary import from JS migration (#11327)
* fix: omit ts import for js migration

* test: javascript template create

* test: remove TS from JS templates

* chore: update docs
2025-03-10 19:46:42 +02:00
François de Bellescize
5a276a4f30
Add VirtualColumn to model shim (#11331)
Co-authored-by: Francois de Bellescize <francois.debellescize@ekimetrics.com>
2025-03-10 17:38:16 +05:00
Lucian Mocanu
27b4207c48
fix(sap): incorrect handling of simple array/json data type (#11322) 2025-03-06 14:00:33 +01:00
Lucian Mocanu
04ca83a72f
fix(sap): pass the configured schema to the db client (#11321) 2025-03-06 12:57:12 +01:00
Assaf Sapir
40cc6886d5
chore: don't use version in docker-compose files (#11320) 2025-03-05 22:09:25 +02:00
Robbert Korving
513be336c8
docs: add "How to use Vite for the backend" entry to faq (#11306)
* docs: add "How to use Vite for the backend" entry to faq

* Apply suggestions from code review

docs: apply suggested grammar and spelling changes

Co-authored-by: Mike Guida <mike@mguida.com>

* Apply suggestions from code review

docs: add link to vite documentation

Co-authored-by: Mike Guida <mike@mguida.com>

---------

Co-authored-by: Mike Guida <mike@mguida.com>
2025-03-04 07:56:53 -07:00
Lucian Mocanu
673b6ceb88
Merge pull request #11264 from alumni/fix-transaction-issues 2025-03-03 20:30:50 +01:00
Lucian Mocanu
759cf7cf54 test: issue #11269 2025-03-03 15:35:06 +01:00
Lucian Mocanu
50a660aecc fix: inverse relation metadata not cyclic 2025-03-03 15:35:05 +01:00
Lucian Mocanu
a08ebbdea0 test: improve nested transactions tests 2025-03-03 15:35:05 +01:00
Lucian Mocanu
7aa4f3c3e0 Revert "fix: nested transactions issues (#10210)"
This reverts commit 25e6ecdfd23569b4b6ba15b845b4444927386f42.
2025-03-03 15:35:05 +01:00
Lucian Mocanu
3044e7a233 test: fix cockroach tests 2025-03-03 15:35:05 +01:00
Michael Bromley
206af0aa39
chore: Bump version 0.3.21 (#11314) 0.3.21 2025-03-03 09:02:10 +01:00
Joel Myers
d52ecf60a7
Update eager-and-lazy-relations.md (#10757)
Tweaking copy in eager and lazy relations doc for better readability.

Co-authored-by: Michael Bromley <michaelbromley@users.noreply.github.com>
2025-02-27 18:53:49 -07: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
Michael Dippery
9d862c8a53
docs: correct "it's" -> "its"
"It's" is a contraction for "it is". "its" is the possessive form of
"it".
2025-02-19 09:08:43 +02:00