orange-orm 4.7.0 → 4.7.1

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/dist/index.mjs CHANGED
@@ -16564,7 +16564,6 @@ function requireNewGenericPool$5 () {
16564
16564
 
16565
16565
  var genericPool = requireGenericPool();
16566
16566
  var Database;
16567
-
16568
16567
  function newGenericPool(connectionString, poolOptions) {
16569
16568
  poolOptions = poolOptions || {};
16570
16569
  var pool = genericPool.Pool({
@@ -16577,7 +16576,8 @@ function requireNewGenericPool$5 () {
16577
16576
  try {
16578
16577
  try {
16579
16578
  if (!Database)
16580
- ({ Database } = await import('bun:Database'));
16579
+ ({ Database } = await import('bun:sqlite'));
16580
+
16581
16581
  }
16582
16582
  catch (err) {
16583
16583
  return cb(err, null);
package/docs/changelog.md CHANGED
@@ -1,12 +1,14 @@
1
1
  ## Changelog
2
+ __4.7.1__
3
+ Bugfix: Error when using bun and sqlite: Cannot find package 'Database'. See [#127](https://github.com/alfateam/issues/127)
2
4
  __4.7.0__
3
- Support for [PGLite](https://pglite.dev/). See [#124](https://github.com/alfateam/issues/124)
5
+ Support for [PGLite](https://pglite.dev/). See [#124](https://github.com/alfateam/orange-orm/issues/124)
4
6
  __4.6.3__
5
- Bugfix: Chained Reference relation throws if first one is null. See [#126](https://github.com/alfateam/issues/126)
7
+ Bugfix: Chained Reference relation throws if first one is null. See [#126](https://github.com/alfateam/orange-orm/issues/126)
6
8
  __4.6.2__
7
9
  Bugfix: crashed when combining endsWith filter with other filter: e.g. `endsWith('foo').or(...)`
8
10
  __4.6.1__
9
- Bugfix: No intellisense when running in browser mode . See [#125](https://github.com/alfateam/issues/125)
11
+ Bugfix: No intellisense when running in browser mode . See [#125](https://github.com/alfateam/orange-orm/issues/125)
10
12
  __4.6.0__
11
13
  Support for Deno and Bun.
12
14
  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.1",
4
4
  "main": "./src/index.js",
5
5
  "module": "./dist/index.mjs",
6
6
  "browser": "./dist/index.browser.mjs",
@@ -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);