orange-orm 4.6.0-beta.1 → 4.6.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/README.md +3 -5
- package/docs/changelog.md +2 -0
- package/package.json +3 -3
package/README.md
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
<img src="./docs/orange.svg" alt="Orange ORM Logo" width="250"/>
|
|
3
3
|
</div>
|
|
4
4
|
|
|
5
|
-
The ultimate Object Relational Mapper for Node.js and
|
|
5
|
+
The ultimate Object Relational Mapper for Node.js, Bun and Deno, offering seamless integration with a variety of popular databases. Orange ORM supports both TypeScript and JavaScript, including both CommonJS and ECMAScript.
|
|
6
6
|
|
|
7
7
|
[](https://www.npmjs.org/package/orange-orm)
|
|
8
8
|
[](https://github.com/alfateam/orange-orm/actions)
|
|
@@ -1571,12 +1571,10 @@ const db = map.sqlite('demo.db');
|
|
|
1571
1571
|
getRows();
|
|
1572
1572
|
|
|
1573
1573
|
async function getRows() {
|
|
1574
|
-
const filter = db.order.lines.any(x => x.product.contains('guitar'));
|
|
1575
|
-
//equivalent syntax:
|
|
1576
|
-
// const filter = db.order.lines.product.contains('guitar');
|
|
1577
|
-
|
|
1578
1574
|
const rows = await db.order.getAll({
|
|
1579
1575
|
where: y => y.lines.any(x => x.product.contains('guitar'))
|
|
1576
|
+
//equivalent syntax:
|
|
1577
|
+
//where: x => x.lines.product.contains('guitar')
|
|
1580
1578
|
});
|
|
1581
1579
|
}
|
|
1582
1580
|
```
|
package/docs/changelog.md
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "orange-orm",
|
|
3
|
-
"version": "4.6.
|
|
3
|
+
"version": "4.6.1",
|
|
4
4
|
"main": "./src/index.js",
|
|
5
5
|
"module": "./dist/index.mjs",
|
|
6
6
|
"browser": "./dist/index.browser.mjs",
|
|
@@ -8,7 +8,8 @@
|
|
|
8
8
|
".": {
|
|
9
9
|
"require": "./src/index.js",
|
|
10
10
|
"import": "./dist/index.mjs",
|
|
11
|
-
"browser": "./dist/index.browser.mjs"
|
|
11
|
+
"browser": "./dist/index.browser.mjs",
|
|
12
|
+
"types": "./src/index.d.ts"
|
|
12
13
|
}
|
|
13
14
|
},
|
|
14
15
|
"bin": {
|
|
@@ -16,7 +17,6 @@
|
|
|
16
17
|
},
|
|
17
18
|
"title": "Orange ORM",
|
|
18
19
|
"description": "Object Relational Mapper",
|
|
19
|
-
"types": "./src/index.d.ts",
|
|
20
20
|
"keywords": [
|
|
21
21
|
"typescript orm",
|
|
22
22
|
"orm",
|