@smartive/graphql-magic 16.3.5 → 16.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/docs/package.json CHANGED
@@ -20,14 +20,14 @@
20
20
  "@mdx-js/react": "^3.0.0",
21
21
  "clsx": "^2.0.0",
22
22
  "prism-react-renderer": "^2.3.0",
23
- "react": "^18.0.0",
24
- "react-dom": "^18.0.0"
23
+ "react": "^19.0.0",
24
+ "react-dom": "^19.0.0"
25
25
  },
26
26
  "devDependencies": {
27
27
  "@docusaurus/module-type-aliases": "3.7.0",
28
28
  "@docusaurus/tsconfig": "3.7.0",
29
29
  "@docusaurus/types": "3.7.0",
30
- "typescript": "5.5.4"
30
+ "typescript": "5.7.3"
31
31
  },
32
32
  "browserslist": {
33
33
  "production": [
@@ -42,6 +42,6 @@
42
42
  ]
43
43
  },
44
44
  "engines": {
45
- "node": ">=18.0"
45
+ "node": ">=22.0"
46
46
  }
47
47
  }
@@ -10,7 +10,7 @@ export const up = async (knex: Knex) => {
10
10
  await knex.schema.createTable('User', (table) => {
11
11
  table.uuid('id').notNullable().primary();
12
12
  table.string('username', undefined).nullable();
13
- table.enum('role', null as any, {
13
+ table.enum('role', null, {
14
14
  useNative: true,
15
15
  existingType: true,
16
16
  enumName: 'role',
@@ -61,7 +61,7 @@ export const up = async (knex: Knex) => {
61
61
 
62
62
  await knex.schema.createTable('Reaction', (table) => {
63
63
  table.uuid('id').notNullable().primary();
64
- table.enum('type', null as any, {
64
+ table.enum('type', null, {
65
65
  useNative: true,
66
66
  existingType: true,
67
67
  enumName: 'reactionType',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@smartive/graphql-magic",
3
- "version": "16.3.5",
3
+ "version": "16.3.7",
4
4
  "description": "",
5
5
  "source": "src/index.ts",
6
6
  "type": "module",
@@ -35,8 +35,7 @@
35
35
  "gqm": "dist/bin/gqm.cjs"
36
36
  },
37
37
  "overrides": {
38
- "graphql": "$graphql",
39
- "rollup": "3.29.5"
38
+ "graphql": "$graphql"
40
39
  },
41
40
  "browserslist": "> 0.25%, not dead",
42
41
  "publishConfig": {
@@ -50,6 +49,7 @@
50
49
  "@graphql-codegen/typescript-compatibility": "^2.1.5",
51
50
  "@graphql-codegen/typescript-operations": "^4.0.1",
52
51
  "@graphql-codegen/typescript-resolvers": "^4.0.1",
52
+ "@types/node": "^22.13.5",
53
53
  "code-block-writer": "^13.0.0",
54
54
  "commander": "^13.0.0",
55
55
  "dayjs": "^1.11.10",
@@ -86,6 +86,6 @@
86
86
  "prettier": "2.8.8",
87
87
  "ts-jest": "29.2.6",
88
88
  "ts-node": "10.9.2",
89
- "typescript": "5.5.4"
89
+ "typescript": "5.7.3"
90
90
  }
91
91
  }
@@ -657,7 +657,7 @@ export class MigrationGenerator {
657
657
  this.writer.write(`table.specificType('${name}', '"${typeToField(field.type)}"[]')`);
658
658
  } else {
659
659
  this.writer
660
- .write(`table.enum('${name}', null as any, `)
660
+ .write(`table.enum('${name}', null, `)
661
661
  .inlineBlock(() => {
662
662
  this.writer.writeLine(`useNative: true,`);
663
663
  this.writer.writeLine(`existingType: true,`);
package/tsconfig.json CHANGED
@@ -1,6 +1,13 @@
1
1
  {
2
- "include": ["./src/**/*.ts", "./src/**/*.tsx"],
3
- "exclude": ["node_modules", "dist", "src/bin"],
2
+ "include": [
3
+ "./src/**/*.ts",
4
+ "./src/**/*.tsx"
5
+ ],
6
+ "exclude": [
7
+ "node_modules",
8
+ "dist",
9
+ "src/bin"
10
+ ],
4
11
  "compilerOptions": {
5
12
  "outDir": "./dist/esm",
6
13
  "rootDir": "./src",