@nymphjs/driver-postgresql 1.0.0-alpha.2 → 1.0.0-alpha.23

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
@@ -3,6 +3,98 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ # [1.0.0-alpha.23](https://github.com/sciactive/nymphjs/compare/v1.0.0-alpha.22...v1.0.0-alpha.23) (2021-12-30)
7
+
8
+ **Note:** Version bump only for package @nymphjs/driver-postgresql
9
+
10
+ # [1.0.0-alpha.22](https://github.com/sciactive/nymphjs/compare/v1.0.0-alpha.21...v1.0.0-alpha.22) (2021-12-14)
11
+
12
+ ### Features
13
+
14
+ - update smui to latest versions ([912873b](https://github.com/sciactive/nymphjs/commit/912873b863d1ae5d51c359a3c0558bff38ce85cd))
15
+
16
+ # [1.0.0-alpha.21](https://github.com/sciactive/nymphjs/compare/v1.0.0-alpha.20...v1.0.0-alpha.21) (2021-11-29)
17
+
18
+ **Note:** Version bump only for package @nymphjs/driver-postgresql
19
+
20
+ # [1.0.0-alpha.20](https://github.com/sciactive/nymphjs/compare/v1.0.0-alpha.19...v1.0.0-alpha.20) (2021-11-24)
21
+
22
+ **Note:** Version bump only for package @nymphjs/driver-postgresql
23
+
24
+ # [1.0.0-alpha.19](https://github.com/sciactive/nymphjs/compare/v1.0.0-alpha.18...v1.0.0-alpha.19) (2021-11-18)
25
+
26
+ ### Features
27
+
28
+ - update smui and other packages to latest versions ([2465340](https://github.com/sciactive/nymphjs/commit/24653400d887bc04c41c3c4ee0c73ce2f2289e0d))
29
+
30
+ # [1.0.0-alpha.18](https://github.com/sciactive/nymphjs/compare/v1.0.0-alpha.17...v1.0.0-alpha.18) (2021-11-09)
31
+
32
+ **Note:** Version bump only for package @nymphjs/driver-postgresql
33
+
34
+ # [1.0.0-alpha.17](https://github.com/sciactive/nymphjs/compare/v1.0.0-alpha.16...v1.0.0-alpha.17) (2021-10-14)
35
+
36
+ **Note:** Version bump only for package @nymphjs/driver-postgresql
37
+
38
+ # [1.0.0-alpha.16](https://github.com/sciactive/nymphjs/compare/v1.0.0-alpha.15...v1.0.0-alpha.16) (2021-10-14)
39
+
40
+ ### Bug Fixes
41
+
42
+ - don't ignore built files in npm packages ([7d688db](https://github.com/sciactive/nymphjs/commit/7d688dbec362f1f71fb451a1d0dbcaecc15d99fc))
43
+
44
+ # [1.0.0-alpha.15](https://github.com/sciactive/nymphjs/compare/v1.0.0-alpha.14...v1.0.0-alpha.15) (2021-10-14)
45
+
46
+ **Note:** Version bump only for package @nymphjs/driver-postgresql
47
+
48
+ # [1.0.0-alpha.14](https://github.com/sciactive/nymphjs/compare/v1.0.0-alpha.13...v1.0.0-alpha.14) (2021-10-14)
49
+
50
+ **Note:** Version bump only for package @nymphjs/driver-postgresql
51
+
52
+ # [1.0.0-alpha.13](https://github.com/sciactive/nymphjs/compare/v1.0.0-alpha.12...v1.0.0-alpha.13) (2021-10-14)
53
+
54
+ **Note:** Version bump only for package @nymphjs/driver-postgresql
55
+
56
+ # [1.0.0-alpha.12](https://github.com/sciactive/nymphjs/compare/v1.0.0-alpha.11...v1.0.0-alpha.12) (2021-10-13)
57
+
58
+ **Note:** Version bump only for package @nymphjs/driver-postgresql
59
+
60
+ # [1.0.0-alpha.11](https://github.com/sciactive/nymphjs/compare/v1.0.0-alpha.10...v1.0.0-alpha.11) (2021-10-13)
61
+
62
+ **Note:** Version bump only for package @nymphjs/driver-postgresql
63
+
64
+ # [1.0.0-alpha.10](https://github.com/sciactive/nymphjs/compare/v1.0.0-alpha.9...v1.0.0-alpha.10) (2021-10-12)
65
+
66
+ **Note:** Version bump only for package @nymphjs/driver-postgresql
67
+
68
+ # [1.0.0-alpha.9](https://github.com/sciactive/nymphjs/compare/v1.0.0-alpha.8...v1.0.0-alpha.9) (2021-10-12)
69
+
70
+ **Note:** Version bump only for package @nymphjs/driver-postgresql
71
+
72
+ # [1.0.0-alpha.8](https://github.com/sciactive/nymphjs/compare/v1.0.0-alpha.7...v1.0.0-alpha.8) (2021-10-12)
73
+
74
+ **Note:** Version bump only for package @nymphjs/driver-postgresql
75
+
76
+ # [1.0.0-alpha.7](https://github.com/sciactive/nymphjs/compare/v1.0.0-alpha.6...v1.0.0-alpha.7) (2021-10-05)
77
+
78
+ **Note:** Version bump only for package @nymphjs/driver-postgresql
79
+
80
+ # [1.0.0-alpha.6](https://github.com/sciactive/nymphjs/compare/v1.0.0-alpha.5...v1.0.0-alpha.6) (2021-10-05)
81
+
82
+ **Note:** Version bump only for package @nymphjs/driver-postgresql
83
+
84
+ # [1.0.0-alpha.5](https://github.com/sciactive/nymphjs/compare/v1.0.0-alpha.4...v1.0.0-alpha.5) (2021-09-30)
85
+
86
+ **Note:** Version bump only for package @nymphjs/driver-postgresql
87
+
88
+ # [1.0.0-alpha.4](https://github.com/sciactive/nymphjs/compare/v1.0.0-alpha.3...v1.0.0-alpha.4) (2021-09-27)
89
+
90
+ **Note:** Version bump only for package @nymphjs/driver-postgresql
91
+
92
+ # [1.0.0-alpha.3](https://github.com/sciactive/nymphjs/compare/v1.0.0-alpha.2...v1.0.0-alpha.3) (2021-09-22)
93
+
94
+ ### Features
95
+
96
+ - move to fully instance based design, no more globals ([c036220](https://github.com/sciactive/nymphjs/commit/c0362209b90a475b8b85269a829b0ec6bed4465f))
97
+
6
98
  # [1.0.0-alpha.2](https://github.com/sciactive/nymphjs/compare/v1.0.0-alpha.1...v1.0.0-alpha.2) (2021-09-21)
7
99
 
8
100
  ### Features
package/README.md CHANGED
@@ -12,10 +12,10 @@ npm install --save @nymphjs/driver-postgresql
12
12
 
13
13
  ## Usage
14
14
 
15
- Supply an instance of this driver with its configuration to Nymph's init function.
15
+ Supply an instance of this driver with its configuration to Nymph's constructor.
16
16
 
17
17
  ```ts
18
- import nymph from '@nymphjs/nymph';
18
+ import { Nymph } from '@nymphjs/nymph';
19
19
  import PostgreSQLDriver from '@nymphjs/driver-postgresql';
20
20
 
21
21
  const postgresqlConfig = {
@@ -25,7 +25,7 @@ const postgresqlConfig = {
25
25
  password: 'your_password',
26
26
  };
27
27
 
28
- nymph.init({}, new PostgreSQLDriver(postgresqlConfig));
28
+ const nymph = new Nymph({}, new PostgreSQLDriver(postgresqlConfig));
29
29
 
30
30
  // All done. Nymph is ready to use.
31
31
  ```
@@ -1,23 +1,4 @@
1
1
  "use strict";
2
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
- if (k2 === undefined) k2 = k;
4
- Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
5
- }) : (function(o, m, k, k2) {
6
- if (k2 === undefined) k2 = k;
7
- o[k2] = m[k];
8
- }));
9
- var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
10
- Object.defineProperty(o, "default", { enumerable: true, value: v });
11
- }) : function(o, v) {
12
- o["default"] = v;
13
- });
14
- var __importStar = (this && this.__importStar) || function (mod) {
15
- if (mod && mod.__esModule) return mod;
16
- var result = {};
17
- if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
18
- __setModuleDefault(result, mod);
19
- return result;
20
- };
21
2
  var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
22
3
  function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
23
4
  return new (P || (P = Promise))(function (resolve, reject) {
@@ -31,7 +12,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
31
12
  return (mod && mod.__esModule) ? mod : { "default": mod };
32
13
  };
33
14
  Object.defineProperty(exports, "__esModule", { value: true });
34
- const nymph_1 = __importStar(require("@nymphjs/nymph"));
15
+ const nymph_1 = require("@nymphjs/nymph");
35
16
  const PostgreSQLDriver_1 = __importDefault(require("./PostgreSQLDriver"));
36
17
  const postgresqlConfig = {
37
18
  host: 'localhost',
@@ -39,13 +20,13 @@ const postgresqlConfig = {
39
20
  user: 'nymph',
40
21
  password: 'nymph',
41
22
  };
42
- nymph_1.default.init({}, new PostgreSQLDriver_1.default(postgresqlConfig));
23
+ const nymph = new nymph_1.Nymph({}, new PostgreSQLDriver_1.default(postgresqlConfig));
43
24
  describe('PostgreSQLDriver', () => {
44
- (0, nymph_1.QueriesTest)(it);
45
- (0, nymph_1.UIDTest)(it);
46
- (0, nymph_1.ExportImportTest)(it);
25
+ (0, nymph_1.QueriesTest)(nymph, it);
26
+ (0, nymph_1.UIDTest)(nymph, it);
27
+ (0, nymph_1.ExportImportTest)(nymph, it);
47
28
  afterAll(() => __awaiter(void 0, void 0, void 0, function* () {
48
- yield nymph_1.default.driver.disconnect();
29
+ yield nymph.driver.disconnect();
49
30
  }));
50
31
  });
51
32
  //# sourceMappingURL=PostgreSQLDriver.test.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"PostgreSQLDriver.test.js","sourceRoot":"","sources":["../src/PostgreSQLDriver.test.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,wDAA+E;AAE/E,0EAAkD;AAElD,MAAM,gBAAgB,GAAG;IACvB,IAAI,EAAE,WAAW;IACjB,QAAQ,EAAE,OAAO;IACjB,IAAI,EAAE,OAAO;IACb,QAAQ,EAAE,OAAO;CAClB,CAAC;AAEF,eAAK,CAAC,IAAI,CAAC,EAAE,EAAE,IAAI,0BAAgB,CAAC,gBAAgB,CAAC,CAAC,CAAC;AAEvD,QAAQ,CAAC,kBAAkB,EAAE,GAAG,EAAE;IAChC,IAAA,mBAAW,EAAC,EAAE,CAAC,CAAC;IAChB,IAAA,eAAO,EAAC,EAAE,CAAC,CAAC;IACZ,IAAA,wBAAgB,EAAC,EAAE,CAAC,CAAC;IAErB,QAAQ,CAAC,GAAS,EAAE;QAClB,MAAM,eAAK,CAAC,MAAM,CAAC,UAAU,EAAE,CAAC;IAClC,CAAC,CAAA,CAAC,CAAC;AACL,CAAC,CAAC,CAAC"}
1
+ {"version":3,"file":"PostgreSQLDriver.test.js","sourceRoot":"","sources":["../src/PostgreSQLDriver.test.ts"],"names":[],"mappings":";;;;;;;;;;;;;;AAAA,0CAA+E;AAE/E,0EAAkD;AAElD,MAAM,gBAAgB,GAAG;IACvB,IAAI,EAAE,WAAW;IACjB,QAAQ,EAAE,OAAO;IACjB,IAAI,EAAE,OAAO;IACb,QAAQ,EAAE,OAAO;CAClB,CAAC;AAEF,MAAM,KAAK,GAAG,IAAI,aAAK,CAAC,EAAE,EAAE,IAAI,0BAAgB,CAAC,gBAAgB,CAAC,CAAC,CAAC;AAEpE,QAAQ,CAAC,kBAAkB,EAAE,GAAG,EAAE;IAChC,IAAA,mBAAW,EAAC,KAAK,EAAE,EAAE,CAAC,CAAC;IACvB,IAAA,eAAO,EAAC,KAAK,EAAE,EAAE,CAAC,CAAC;IACnB,IAAA,wBAAgB,EAAC,KAAK,EAAE,EAAE,CAAC,CAAC;IAE5B,QAAQ,CAAC,GAAS,EAAE;QAClB,MAAM,KAAK,CAAC,MAAM,CAAC,UAAU,EAAE,CAAC;IAClC,CAAC,CAAA,CAAC,CAAC;AACL,CAAC,CAAC,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nymphjs/driver-postgresql",
3
- "version": "1.0.0-alpha.2",
3
+ "version": "1.0.0-alpha.23",
4
4
  "description": "NymphJS - PostgreSQL DB Driver",
5
5
  "type": "commonjs",
6
6
  "main": "dist/index.js",
@@ -35,19 +35,19 @@
35
35
  },
36
36
  "license": "Apache-2.0",
37
37
  "dependencies": {
38
- "@nymphjs/nymph": "^1.0.0-alpha.2",
39
- "nanoid": "^3.1.25",
38
+ "@nymphjs/nymph": "^1.0.0-alpha.23",
39
+ "nanoid": "^3.1.30",
40
40
  "pg": "^8.7.1",
41
41
  "pg-format": "^1.0.4"
42
42
  },
43
43
  "devDependencies": {
44
44
  "@tsconfig/recommended": "^1.0.1",
45
- "@types/jest": "^27.0.1",
45
+ "@types/jest": "^27.0.3",
46
46
  "@types/pg": "^8.6.1",
47
47
  "@types/pg-format": "^1.0.2",
48
- "jest": "^27.0.6",
49
- "ts-jest": "^27.0.5",
50
- "typescript": "^4.3.5"
48
+ "jest": "^27.4.5",
49
+ "ts-jest": "^27.1.1",
50
+ "typescript": "^4.5.4"
51
51
  },
52
- "gitHead": "9596354bffaa484f3002f3063f0963f6261040be"
52
+ "gitHead": "4d0ec97a49f09228581fbc3773d5709531ccab73"
53
53
  }
@@ -1,4 +1,4 @@
1
- import nymph, { QueriesTest, UIDTest, ExportImportTest } from '@nymphjs/nymph';
1
+ import { Nymph, QueriesTest, UIDTest, ExportImportTest } from '@nymphjs/nymph';
2
2
 
3
3
  import PostgreSQLDriver from './PostgreSQLDriver';
4
4
 
@@ -9,12 +9,12 @@ const postgresqlConfig = {
9
9
  password: 'nymph',
10
10
  };
11
11
 
12
- nymph.init({}, new PostgreSQLDriver(postgresqlConfig));
12
+ const nymph = new Nymph({}, new PostgreSQLDriver(postgresqlConfig));
13
13
 
14
14
  describe('PostgreSQLDriver', () => {
15
- QueriesTest(it);
16
- UIDTest(it);
17
- ExportImportTest(it);
15
+ QueriesTest(nymph, it);
16
+ UIDTest(nymph, it);
17
+ ExportImportTest(nymph, it);
18
18
 
19
19
  afterAll(async () => {
20
20
  await nymph.driver.disconnect(); // avoid jest open handle error