cormo-graphql 2.1.0 → 2.2.0

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.
@@ -0,0 +1,8 @@
1
+ # Changesets
2
+
3
+ Hello and welcome! This folder has been automatically generated by `@changesets/cli`, a build tool that works
4
+ with multi-package repos, or single-package repos to help you version and publish your code. You can
5
+ find the full documentation for it [in our repository](https://github.com/changesets/changesets)
6
+
7
+ We have a quick list of common questions to get you started engaging with this project in
8
+ [our documentation](https://github.com/changesets/changesets/blob/main/docs/common-questions.md)
@@ -0,0 +1,11 @@
1
+ {
2
+ "$schema": "https://unpkg.com/@changesets/config@3.0.5/schema.json",
3
+ "changelog": "@changesets/cli/changelog",
4
+ "commit": false,
5
+ "fixed": [],
6
+ "linked": [],
7
+ "access": "public",
8
+ "baseBranch": "main",
9
+ "updateInternalDependencies": "patch",
10
+ "ignore": []
11
+ }
package/CHANGELOG.md ADDED
@@ -0,0 +1,7 @@
1
+ # cormo-graphql
2
+
3
+ ## 2.2.0
4
+
5
+ ### Minor Changes
6
+
7
+ - 3108621: Adopt changesets
@@ -15,13 +15,23 @@ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (
15
15
  }) : function(o, v) {
16
16
  o["default"] = v;
17
17
  });
18
- var __importStar = (this && this.__importStar) || function (mod) {
19
- if (mod && mod.__esModule) return mod;
20
- var result = {};
21
- if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
22
- __setModuleDefault(result, mod);
23
- return result;
24
- };
18
+ var __importStar = (this && this.__importStar) || (function () {
19
+ var ownKeys = function(o) {
20
+ ownKeys = Object.getOwnPropertyNames || function (o) {
21
+ var ar = [];
22
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
23
+ return ar;
24
+ };
25
+ return ownKeys(o);
26
+ };
27
+ return function (mod) {
28
+ if (mod && mod.__esModule) return mod;
29
+ var result = {};
30
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
31
+ __setModuleDefault(result, mod);
32
+ return result;
33
+ };
34
+ })();
25
35
  Object.defineProperty(exports, "__esModule", { value: true });
26
36
  exports.Model = Model;
27
37
  exports.Column = Column;
package/lib/cjs/schema.js CHANGED
@@ -15,13 +15,23 @@ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (
15
15
  }) : function(o, v) {
16
16
  o["default"] = v;
17
17
  });
18
- var __importStar = (this && this.__importStar) || function (mod) {
19
- if (mod && mod.__esModule) return mod;
20
- var result = {};
21
- if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
22
- __setModuleDefault(result, mod);
23
- return result;
24
- };
18
+ var __importStar = (this && this.__importStar) || (function () {
19
+ var ownKeys = function(o) {
20
+ ownKeys = Object.getOwnPropertyNames || function (o) {
21
+ var ar = [];
22
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
23
+ return ar;
24
+ };
25
+ return ownKeys(o);
26
+ };
27
+ return function (mod) {
28
+ if (mod && mod.__esModule) return mod;
29
+ var result = {};
30
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
31
+ __setModuleDefault(result, mod);
32
+ return result;
33
+ };
34
+ })();
25
35
  var __importDefault = (this && this.__importDefault) || function (mod) {
26
36
  return (mod && mod.__esModule) ? mod : { "default": mod };
27
37
  };
@@ -1 +1 @@
1
- {"root":["../../src/decorators.ts","../../src/index.ts","../../src/schema.ts"],"version":"5.6.3"}
1
+ {"root":["../../src/decorators.ts","../../src/index.ts","../../src/schema.ts"],"version":"5.7.2"}
@@ -1 +1 @@
1
- {"root":["../../src/decorators.ts","../../src/index.ts","../../src/schema.ts"],"version":"5.6.3"}
1
+ {"root":["../../src/decorators.ts","../../src/index.ts","../../src/schema.ts"],"version":"5.7.2"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cormo-graphql",
3
- "version": "2.1.0",
3
+ "version": "2.2.0",
4
4
  "description": "GraphQL support for CORMO",
5
5
  "type": "module",
6
6
  "main": "./lib/cjs/index.js",
@@ -16,7 +16,10 @@
16
16
  "test:type": "tsc --noEmit",
17
17
  "test:unit": "NODE_ENV=test TZ=Etc/UTC mocha -n import=tsx ./test/*/*.ts",
18
18
  "test": "npm run test:type && npm run lint && npm run test:unit --",
19
- "test:debug": "npm run test:unit -- --inspect-brk=30000"
19
+ "test:debug": "npm run test:unit -- --inspect-brk=30000",
20
+ "test:cov": "c8 npm run test",
21
+ "changeset": "changeset",
22
+ "release": "npm run lint && npm run build && npm run changeset publish"
20
23
  },
21
24
  "repository": {
22
25
  "type": "git",
@@ -29,25 +32,34 @@
29
32
  },
30
33
  "homepage": "https://github.com/croquiscom/cormo",
31
34
  "dependencies": {
32
- "@croquiscom/crary-graphql": "^1.3.1",
35
+ "@croquiscom/crary-graphql": "^1.4.0",
33
36
  "cormo": "^2.1.0",
34
- "graphql": "^16.9.0",
37
+ "graphql": "^16.10.0",
35
38
  "lodash": "^4.17.21"
36
39
  },
37
40
  "devDependencies": {
38
- "@types/chai": "^4.3.11",
39
- "@types/lodash": "^4.17.12",
40
- "@types/mocha": "^10.0.9",
41
- "@types/node": "^22.8.1",
41
+ "@changesets/cli": "^2.27.11",
42
+ "@types/chai": "^5.0.1",
43
+ "@types/lodash": "^4.17.13",
44
+ "@types/mocha": "^10.0.10",
45
+ "@types/node": "^22.10.2",
42
46
  "@types/sinon": "^17.0.3",
43
- "chai": "^4.3.10",
44
- "mocha": "^10.7.3",
47
+ "c8": "^10.1.3",
48
+ "chai": "^5.1.2",
49
+ "mocha": "^11.0.1",
45
50
  "mysql": "^2.18.1",
46
- "mysql2": "^3.11.3",
51
+ "mysql2": "^3.11.5",
47
52
  "rimraf": "^6.0.1",
48
53
  "sinon": "^19.0.2",
49
- "tsx": "^4.19.1",
50
- "typescript": "^5.6.3"
54
+ "tsx": "^4.19.2",
55
+ "typescript": "^5.7.2"
51
56
  },
52
- "gitHead": "5d6a6ed534b29f77ad1df933c63b8c0f375c578a"
57
+ "c8": {
58
+ "extension": [
59
+ ".ts"
60
+ ],
61
+ "reporter": [
62
+ "lcov"
63
+ ]
64
+ }
53
65
  }
package/tsconfig.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "compilerOptions": {
3
- "target": "es2021",
3
+ "target": "ES2023",
4
4
  "module": "NodeNext",
5
5
  "moduleResolution": "NodeNext",
6
6
  "declaration": true,
@@ -8,6 +8,7 @@
8
8
  "strict": true,
9
9
  "stripInternal": true,
10
10
  "esModuleInterop": true,
11
- "lib": ["es2017", "dom", "esnext.asynciterable"]
11
+ "useDefineForClassFields": false,
12
+ "lib": ["ES2023"]
12
13
  }
13
14
  }