orchid-orm 1.3.9 → 1.3.11

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 CHANGED
@@ -1,5 +1,20 @@
1
1
  # orchid-orm
2
2
 
3
+ ## 1.3.11
4
+
5
+ ### Patch Changes
6
+
7
+ - Change connectionString to databaseURL option, add ssl option
8
+ - Updated dependencies
9
+ - pqb@0.7.8
10
+
11
+ ## 1.3.10
12
+
13
+ ### Patch Changes
14
+
15
+ - Updated dependencies
16
+ - pqb@0.7.7
17
+
3
18
  ## 1.3.9
4
19
 
5
20
  ### Patch Changes
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "orchid-orm",
3
- "version": "1.3.9",
3
+ "version": "1.3.11",
4
4
  "description": "Postgres ORM",
5
5
  "homepage": "https://orchid-orm.netlify.app/guide/orm-setup-and-overview.html",
6
6
  "repository": {
@@ -31,14 +31,14 @@
31
31
  "author": "Roman Kushyn",
32
32
  "license": "ISC",
33
33
  "dependencies": {
34
- "pqb": "0.7.6"
34
+ "pqb": "0.7.8"
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.6",
41
+ "orchid-orm-schema-to-zod": "0.1.8",
42
42
  "@swc/jest": "^0.2.21",
43
43
  "@types/jest": "^28.1.2",
44
44
  "@types/node": "^18.0.1",
package/src/orm.test.ts CHANGED
@@ -12,7 +12,12 @@ import { columnTypes } from 'pqb';
12
12
  describe('orm', () => {
13
13
  useTestDatabase();
14
14
 
15
- const Model = createModel({ columnTypes });
15
+ const Model = createModel({
16
+ columnTypes: {
17
+ ...columnTypes,
18
+ text: (min = 0, max = Infinity) => columnTypes.text(min, max),
19
+ },
20
+ });
16
21
 
17
22
  type User = UserModel['columns']['type'];
18
23
  class UserModel extends Model {
@@ -10,7 +10,7 @@ import {
10
10
  } from './test-models';
11
11
 
12
12
  export const pgConfig = {
13
- connectionString: process.env.DATABASE_URL,
13
+ databaseURL: process.env.DATABASE_URL,
14
14
  };
15
15
 
16
16
  export const db = orchidORM(