@nymphjs/driver-sqlite3 1.0.0-beta.13 → 1.0.0-beta.130

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/package.json CHANGED
@@ -1,47 +1,58 @@
1
1
  {
2
2
  "name": "@nymphjs/driver-sqlite3",
3
- "version": "1.0.0-beta.13",
4
- "description": "NymphJS - SQLite3 DB Driver",
5
- "type": "commonjs",
3
+ "version": "1.0.0-beta.130",
4
+ "description": "Nymph.js - SQLite3 DB Driver",
5
+ "type": "module",
6
6
  "main": "dist/index.js",
7
7
  "types": "dist/index.d.ts",
8
8
  "keywords": [
9
9
  "nymph",
10
- "ORM",
11
- "object relational mapper"
10
+ "nymph.js",
11
+ "application data framework",
12
+ "application data and access framework",
13
+ "nymph driver",
14
+ "sqlite",
15
+ "sqlite3"
12
16
  ],
13
17
  "scripts": {
14
18
  "clean": "test -d dist && rm -r dist || true",
15
19
  "build": "tsc",
16
20
  "watch": "tsc --watch",
17
- "prepare": "npm run clean && npm run build",
18
- "test": "jest",
19
- "test:watch": "jest --watch"
21
+ "prepublish": "npm run clean && npm run build",
22
+ "typecheck": "npx tsc --noEmit",
23
+ "test": "cross-env NODE_OPTIONS=--experimental-vm-modules jest --passWithNoTests",
24
+ "test:watch": "cross-env NODE_OPTIONS=--experimental-vm-modules jest --passWithNoTests --watch"
20
25
  },
21
26
  "publishConfig": {
22
27
  "access": "public"
23
28
  },
29
+ "homepage": "https://nymph.io",
24
30
  "repository": {
25
31
  "type": "git",
26
- "url": "git+https://github.com/sciactive/nymphjs.git"
32
+ "url": "https://forge.sciactive.com/sciactive/nymphjs.git",
33
+ "directory": "packages/driver-sqlite3"
27
34
  },
28
- "author": "Hunter Perrin <hperrin@gmail.com>",
35
+ "author": "Hunter Perrin <hperrin@port87.com>",
29
36
  "bugs": {
30
- "url": "https://github.com/sciactive/nymphjs/issues"
37
+ "url": "https://forge.sciactive.com/sciactive/nymphjs/issues"
31
38
  },
32
39
  "license": "Apache-2.0",
33
40
  "dependencies": {
34
- "@nymphjs/guid": "^1.0.0-beta.13",
35
- "@nymphjs/nymph": "^1.0.0-beta.13",
36
- "better-sqlite3": "^8.1.0"
41
+ "@nymphjs/guid": "^1.0.0-beta.130",
42
+ "@nymphjs/nymph": "^1.0.0-beta.130",
43
+ "@sciactive/tokenizer": "^3.4.0"
37
44
  },
38
45
  "devDependencies": {
39
- "@tsconfig/recommended": "^1.0.2",
40
- "@types/better-sqlite3": "^7.6.3",
41
- "@types/jest": "^29.4.0",
42
- "jest": "^29.4.3",
43
- "ts-jest": "^29.0.5",
44
- "typescript": "^4.9.5"
46
+ "@nymphjs/tilmeld": "^1.0.0-beta.130",
47
+ "@swc/core": "^1.16.1",
48
+ "@swc/jest": "^0.2.39",
49
+ "@tsconfig/recommended": "^1.0.13",
50
+ "@types/jest": "^30.0.0",
51
+ "@types/node": "^26.2.0",
52
+ "cross-env": "^10.1.0",
53
+ "jest": "^30.4.2",
54
+ "ts-node": "^10.9.2",
55
+ "typescript": "^7.0.2"
45
56
  },
46
- "gitHead": "fcc750b12db6426cbf9dbd38618280c1ba965491"
57
+ "gitHead": "c6f7f2da04eec397ac1f9c64f1ce2ccc7fd47292"
47
58
  }
@@ -1,13 +1,20 @@
1
1
  import { tmpdir } from 'node:os';
2
2
  import { resolve } from 'node:path';
3
3
  import fs from 'node:fs';
4
- import { Nymph, QueriesTest, UIDTest, ExportImportTest } from '@nymphjs/nymph';
4
+ import { Nymph } from '@nymphjs/nymph';
5
+ import {
6
+ EntitiesTest,
7
+ UIDTest,
8
+ ExportImportTest,
9
+ } from '@nymphjs/nymph/dist/driver/testArtifacts.js';
10
+ import { TilmeldTest } from '@nymphjs/tilmeld/dist/testArtifacts.js';
5
11
 
6
- import SQLite3Driver from './SQLite3Driver';
12
+ import SQLite3Driver from './SQLite3Driver.js';
7
13
 
8
14
  describe('SQLite3Driver In-Memory', () => {
9
15
  const sqliteConfig = {
10
16
  filename: ':memory:',
17
+ explicitWrite: true,
11
18
  };
12
19
  const nymph = new Nymph({}, new SQLite3Driver(sqliteConfig));
13
20
 
@@ -15,15 +22,19 @@ describe('SQLite3Driver In-Memory', () => {
15
22
  nymph.driver.disconnect();
16
23
  nymph.driver.connect();
17
24
  }
18
- QueriesTest(nymph, it);
19
- UIDTest(nymph, it);
20
- ExportImportTest(nymph, it);
25
+ EntitiesTest(nymph, describe, it);
26
+ UIDTest(nymph, describe, it);
27
+ ExportImportTest(nymph, describe, it);
28
+
29
+ const tilmeldNymph = nymph.clone();
30
+ TilmeldTest(tilmeldNymph, describe, it);
21
31
  });
22
32
 
23
33
  describe('SQLite3Driver DB File', () => {
24
- const filename = resolve(tmpdir(), `nymph-test-${new Date().getTime()}.db`);
34
+ const filename = resolve(tmpdir(), `nymph-test-${Date.now()}.db`);
25
35
  const sqliteConfig = {
26
36
  filename,
37
+ explicitWrite: true,
27
38
  };
28
39
  const nymph = new Nymph({}, new SQLite3Driver(sqliteConfig));
29
40
 
@@ -31,9 +42,12 @@ describe('SQLite3Driver DB File', () => {
31
42
  nymph.driver.disconnect();
32
43
  nymph.driver.connect();
33
44
  }
34
- QueriesTest(nymph, it);
35
- UIDTest(nymph, it);
36
- ExportImportTest(nymph, it);
45
+ EntitiesTest(nymph, describe, it);
46
+ UIDTest(nymph, describe, it);
47
+ ExportImportTest(nymph, describe, it);
48
+
49
+ const tilmeldNymph = nymph.clone();
50
+ TilmeldTest(tilmeldNymph, describe, it);
37
51
 
38
52
  it('cleans up the db', () => {
39
53
  try {