orchid-orm 1.3.5 → 1.3.7
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/CHANGELOG.md +16 -0
- package/package.json +5 -5
- package/src/test-utils/test-models.ts +1 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,21 @@
|
|
|
1
1
|
# orchid-orm
|
|
2
2
|
|
|
3
|
+
## 1.3.7
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Update homepage link in package.json
|
|
8
|
+
- Updated dependencies
|
|
9
|
+
- pqb@0.7.4
|
|
10
|
+
|
|
11
|
+
## 1.3.6
|
|
12
|
+
|
|
13
|
+
### Patch Changes
|
|
14
|
+
|
|
15
|
+
- Add required min and max parameters to text column
|
|
16
|
+
- Updated dependencies
|
|
17
|
+
- pqb@0.7.3
|
|
18
|
+
|
|
3
19
|
## 1.3.5
|
|
4
20
|
|
|
5
21
|
### Patch Changes
|
package/package.json
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "orchid-orm",
|
|
3
|
-
"version": "1.3.
|
|
3
|
+
"version": "1.3.7",
|
|
4
4
|
"description": "Postgres ORM",
|
|
5
|
-
"homepage": "https://orchid-orm.netlify.app/guide/orm.html",
|
|
5
|
+
"homepage": "https://orchid-orm.netlify.app/guide/orm-setup-and-overview.html",
|
|
6
6
|
"repository": {
|
|
7
7
|
"type": "git",
|
|
8
|
-
"url": "https://github.com/romeerez/orchid-orm/tree/main/packages/
|
|
8
|
+
"url": "https://github.com/romeerez/orchid-orm/tree/main/packages/orm"
|
|
9
9
|
},
|
|
10
10
|
"main": "dist/index.js",
|
|
11
11
|
"typings": "dist/index.d.ts",
|
|
@@ -31,14 +31,14 @@
|
|
|
31
31
|
"author": "Roman Kushyn",
|
|
32
32
|
"license": "ISC",
|
|
33
33
|
"dependencies": {
|
|
34
|
-
"pqb": "0.7.
|
|
34
|
+
"pqb": "0.7.4"
|
|
35
35
|
},
|
|
36
36
|
"devDependencies": {
|
|
37
37
|
"@swc/core": "^1.3.19",
|
|
38
38
|
"rollup": "^2.79.0",
|
|
39
39
|
"rollup-plugin-dts": "^4.2.2",
|
|
40
40
|
"rollup-plugin-esbuild": "^4.10.1",
|
|
41
|
-
"orchid-orm-schema-to-zod": "0.1.
|
|
41
|
+
"orchid-orm-schema-to-zod": "0.1.4",
|
|
42
42
|
"@swc/jest": "^0.2.21",
|
|
43
43
|
"@types/jest": "^28.1.2",
|
|
44
44
|
"@types/node": "^18.0.1",
|
|
@@ -5,6 +5,7 @@ import { modelToZod } from 'orchid-orm-schema-to-zod';
|
|
|
5
5
|
export const Model = createModel({
|
|
6
6
|
columnTypes: {
|
|
7
7
|
...columnTypes,
|
|
8
|
+
text: (min = 0, max = Infinity) => columnTypes.text(min, max),
|
|
8
9
|
timestamp() {
|
|
9
10
|
return columnTypes.timestamp().parse((input) => new Date(input));
|
|
10
11
|
},
|