orange-orm 4.7.0 → 4.7.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.
package/README.md CHANGED
@@ -2053,10 +2053,8 @@ async function updateRow() {
2053
2053
 
2054
2054
  output:
2055
2055
  ```bash
2056
- BEGIN
2057
2056
  select _order.id as s_order0,_order.orderDate as s_order1,_order.customerId as s_order2 from _order _order where _order.id=2 order by _order.id limit 1
2058
2057
  select orderLine.id as sorderLine0,orderLine.orderId as sorderLine1,orderLine.product as sorderLine2,orderLine.amount as sorderLine3 from orderLine orderLine where orderLine.orderId in (2) order by orderLine.id
2059
- COMMIT
2060
2058
  BEGIN
2061
2059
  select _order.id as s_order0,_order.orderDate as s_order1,_order.customerId as s_order2 from _order _order where _order.id=2 order by _order.id limit 1
2062
2060
  INSERT INTO orderLine (orderId,product,amount) VALUES (2,?,300)
package/dist/index.mjs CHANGED
@@ -7,7 +7,6 @@ import * as axios from 'axios';
7
7
  import * as _default from 'rfdc/default';
8
8
  import * as ajv from 'ajv';
9
9
  import * as onChange from '@lroal/on-change';
10
- import * as url from 'url';
11
10
  import * as connectionString from '@tediousjs/connection-string';
12
11
 
13
12
  function getDefaultExportFromCjs (x) {
@@ -15115,8 +15114,6 @@ function requireEnd$8 () {
15115
15114
  return end$8;
15116
15115
  }
15117
15116
 
15118
- var require$$3 = /*@__PURE__*/getDefaultExportFromNamespaceIfPresent(url);
15119
-
15120
15117
  /* eslint-disable no-prototype-builtins */
15121
15118
 
15122
15119
  var newPgPool_1$1;
@@ -15130,7 +15127,6 @@ function requireNewPgPool$1 () {
15130
15127
  const log = requireLog();
15131
15128
  const defaults = requirePoolDefaults();
15132
15129
  const genericPool = requireGenericPool();
15133
- const { URL } = require$$3;
15134
15130
  let SQL;
15135
15131
 
15136
15132
  function newPgPool(connectionString, poolOptions = {}) {
@@ -16564,7 +16560,6 @@ function requireNewGenericPool$5 () {
16564
16560
 
16565
16561
  var genericPool = requireGenericPool();
16566
16562
  var Database;
16567
-
16568
16563
  function newGenericPool(connectionString, poolOptions) {
16569
16564
  poolOptions = poolOptions || {};
16570
16565
  var pool = genericPool.Pool({
@@ -16577,7 +16572,8 @@ function requireNewGenericPool$5 () {
16577
16572
  try {
16578
16573
  try {
16579
16574
  if (!Database)
16580
- ({ Database } = await import('bun:Database'));
16575
+ ({ Database } = await import('bun:sqlite'));
16576
+
16581
16577
  }
16582
16578
  catch (err) {
16583
16579
  return cb(err, null);
package/docs/changelog.md CHANGED
@@ -1,12 +1,16 @@
1
1
  ## Changelog
2
+ __4.7.2__
3
+ Updated dependencies
4
+ __4.7.1__
5
+ Bugfix: Error when using bun and sqlite: Cannot find package 'Database'. See [#127](https://github.com/alfateam/issues/127)
2
6
  __4.7.0__
3
- Support for [PGLite](https://pglite.dev/). See [#124](https://github.com/alfateam/issues/124)
7
+ Support for [PGLite](https://pglite.dev/). See [#124](https://github.com/alfateam/orange-orm/issues/124)
4
8
  __4.6.3__
5
- Bugfix: Chained Reference relation throws if first one is null. See [#126](https://github.com/alfateam/issues/126)
9
+ Bugfix: Chained Reference relation throws if first one is null. See [#126](https://github.com/alfateam/orange-orm/issues/126)
6
10
  __4.6.2__
7
11
  Bugfix: crashed when combining endsWith filter with other filter: e.g. `endsWith('foo').or(...)`
8
12
  __4.6.1__
9
- Bugfix: No intellisense when running in browser mode . See [#125](https://github.com/alfateam/issues/125)
13
+ Bugfix: No intellisense when running in browser mode . See [#125](https://github.com/alfateam/orange-orm/issues/125)
10
14
  __4.6.0__
11
15
  Support for Deno and Bun.
12
16
  Using builtin sqlite for Node22++.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "orange-orm",
3
- "version": "4.7.0",
3
+ "version": "4.7.2",
4
4
  "main": "./src/index.js",
5
5
  "module": "./dist/index.mjs",
6
6
  "browser": "./dist/index.browser.mjs",
@@ -68,25 +68,24 @@
68
68
  "@types/express": "^4.17.13",
69
69
  "@types/oracledb": "^6.0.4",
70
70
  "@types/tedious": "^4.0.14",
71
- "ajv": "^6.10.2",
71
+ "ajv": "^8.17.1",
72
72
  "axios": "^1.6.2",
73
73
  "fast-json-patch": "^3.1.1",
74
74
  "findup-sync": "^5.0.0",
75
- "glob": "^10.3.4",
76
- "module-definition": "^4.0.0",
75
+ "glob": "^10.3.4 || ^11.0.2",
76
+ "module-definition": "^4.0.0 || ^5.0.0 || || ^6.0.0",
77
77
  "rfdc": "^1.2.0",
78
- "uuid": "^8.3.2"
78
+ "uuid": "^8.3.2 || ^9.0.0 || ^10.0.0 || ^11.1.0"
79
79
  },
80
80
  "peerDependencies": {
81
+ "@electric-sql/pglite": "^0.3.0",
81
82
  "msnodesqlv8": "^4.1.0",
82
83
  "mysql2": "^2.2.5 || ^3.9.4",
83
84
  "oracledb": "^6.3.0",
84
85
  "pg": "^8.5.1",
85
- "pg-native": "^3.0.0",
86
86
  "pg-query-stream": "^3.3.2",
87
87
  "sqlite3": "^5.0.2",
88
- "tedious": "^15.1.2 || ^16.0.0 || ^18.1.0",
89
- "@electric-sql/pglite": "^0.3.0"
88
+ "tedious": "^15.1.2 || ^16.0.0 || ^18.1.0"
90
89
  },
91
90
  "peerDependenciesMeta": {
92
91
  "pg": {
@@ -4,7 +4,6 @@
4
4
  const log = require('../../table/log');
5
5
  const defaults = require('../../poolDefaults');
6
6
  const genericPool = require('../../generic-pool');
7
- const { URL } = require('url');
8
7
  let SQL;
9
8
 
10
9
  function newPgPool(connectionString, poolOptions = {}) {
@@ -3,7 +3,6 @@ var defaults = require('../../poolDefaults');
3
3
 
4
4
  var genericPool = require('../../generic-pool');
5
5
  var Database;
6
-
7
6
  function newGenericPool(connectionString, poolOptions) {
8
7
  poolOptions = poolOptions || {};
9
8
  var pool = genericPool.Pool({
@@ -16,7 +15,8 @@ function newGenericPool(connectionString, poolOptions) {
16
15
  try {
17
16
  try {
18
17
  if (!Database)
19
- ({ Database } = await import('bun:Database'));
18
+ ({ Database } = await import('bun:sqlite'));
19
+
20
20
  }
21
21
  catch (err) {
22
22
  return cb(err, null);