@objectql/create 4.1.0 → 4.2.1

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/dist/bin.js CHANGED
@@ -124,7 +124,7 @@ program
124
124
  try {
125
125
  await fs.writeFile(path.join(root, '.gitignore'), `node_modules/\ndist/\n*.log\n.DS_Store\n*.sqlite3\n.env\n.env.local\n`);
126
126
  }
127
- catch { }
127
+ catch (_e) { /* .gitignore write failure is non-critical */ }
128
128
  console.log(chalk_1.default.green('\n✅ Done! Now run:\n'));
129
129
  console.log(chalk_1.default.cyan(` cd ${targetDir}`));
130
130
  console.log(chalk_1.default.cyan(` npm install`));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@objectql/create",
3
- "version": "4.1.0",
3
+ "version": "4.2.1",
4
4
  "description": "Create ObjectQL apps with one command",
5
5
  "bin": {
6
6
  "create-objectql": "./dist/bin.js"
@@ -22,6 +22,7 @@
22
22
  },
23
23
  "scripts": {
24
24
  "build": "tsc && node scripts/copy-templates.js",
25
- "copy-templates": "node scripts/copy-templates.js"
25
+ "copy-templates": "node scripts/copy-templates.js",
26
+ "test": "vitest run"
26
27
  }
27
28
  }
@@ -1,5 +1,25 @@
1
1
  # @objectql/starter-enterprise
2
2
 
3
+ ## 4.2.1
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies [a0aa26a]
8
+ - @objectql/types@4.2.1
9
+ - @objectql/core@4.2.1
10
+ - @objectql/platform-node@4.2.1
11
+ - @objectql/driver-sql@4.2.1
12
+
13
+ ## 5.0.0
14
+
15
+ ### Patch Changes
16
+
17
+ - Updated dependencies
18
+ - @objectql/types@4.2.0
19
+ - @objectql/core@4.2.0
20
+ - @objectql/platform-node@4.2.0
21
+ - @objectql/driver-sql@4.2.0
22
+
3
23
  ## 4.0.6
4
24
 
5
25
  ### Patch Changes
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@objectql/example-enterprise-erp",
3
- "version": "4.1.0",
3
+ "version": "4.2.1",
4
4
  "description": "ObjectQL Enterprise Example - CRM & HR Demo",
5
5
  "private": true,
6
6
  "keywords": [
@@ -28,7 +28,7 @@
28
28
  "start": "ts-node src/index.ts",
29
29
  "codegen": "objectql types -s src -o src/types",
30
30
  "build": "tsc && rsync -a --include '*/' --include '*.yml' --exclude '*' src/ dist/",
31
- "test": "jest"
31
+ "test": "vitest run"
32
32
  },
33
33
  "peerDependencies": {
34
34
  "@objectql/core": "workspace:*",
@@ -43,10 +43,7 @@
43
43
  "@objectql/driver-sql": "workspace:*",
44
44
  "@objectql/platform-node": "workspace:*",
45
45
  "@objectql/types": "workspace:*",
46
- "@types/jest": "^30.0.0",
47
46
  "@types/node": "^20.0.0",
48
- "jest": "^30.2.0",
49
- "ts-jest": "^29.4.6",
50
47
  "typescript": "^5.3.0"
51
48
  }
52
49
  }
@@ -1,5 +1,21 @@
1
1
  # @example/hello-world
2
2
 
3
+ ## 4.2.1
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies [a0aa26a]
8
+ - @objectql/core@4.2.1
9
+ - @objectql/driver-sql@4.2.1
10
+
11
+ ## 4.1.1
12
+
13
+ ### Patch Changes
14
+
15
+ - Updated dependencies
16
+ - @objectql/core@4.2.0
17
+ - @objectql/driver-sql@4.2.0
18
+
3
19
  ## 4.0.6
4
20
 
5
21
  ### Patch Changes
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@objectql/example-hello-world",
3
- "version": "4.1.0",
3
+ "version": "4.2.1",
4
4
  "private": true,
5
5
  "repository": {
6
6
  "type": "git",
@@ -1,5 +1,25 @@
1
1
  # @objectql/starter-basic
2
2
 
3
+ ## 4.2.1
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies [a0aa26a]
8
+ - @objectql/types@4.2.1
9
+ - @objectql/core@4.2.1
10
+ - @objectql/platform-node@4.2.1
11
+ - @objectql/driver-sql@4.2.1
12
+
13
+ ## 5.0.0
14
+
15
+ ### Patch Changes
16
+
17
+ - Updated dependencies
18
+ - @objectql/types@4.2.0
19
+ - @objectql/core@4.2.0
20
+ - @objectql/platform-node@4.2.0
21
+ - @objectql/driver-sql@4.2.0
22
+
3
23
  ## 4.0.6
4
24
 
5
25
  ### Patch Changes
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@objectql/example-project-tracker",
3
- "version": "4.1.0",
3
+ "version": "4.2.1",
4
4
  "description": "ObjectQL Basic Example Project",
5
5
  "private": true,
6
6
  "keywords": [
@@ -30,7 +30,7 @@
30
30
  "codegen": "objectql types -s src -o src/types",
31
31
  "build": "tsc && rsync -a --include '*/' --include '*.yml' --exclude '*' src/ dist/",
32
32
  "repl": "objectql repl",
33
- "test": "jest"
33
+ "test": "vitest run"
34
34
  },
35
35
  "peerDependencies": {
36
36
  "@objectql/core": "workspace:*",
@@ -45,10 +45,7 @@
45
45
  "@objectql/driver-sql": "workspace:*",
46
46
  "@objectql/platform-node": "workspace:*",
47
47
  "@objectql/types": "workspace:*",
48
- "@types/jest": "^30.0.0",
49
48
  "@types/node": "^20.0.0",
50
- "jest": "^30.2.0",
51
- "ts-jest": "^29.4.6",
52
49
  "typescript": "^5.3.0"
53
50
  }
54
51
  }
@@ -7,6 +7,7 @@
7
7
  */
8
8
 
9
9
  import { ObjectHookDefinition } from '@objectql/types';
10
+ import { Projects } from '../../types/projects';
10
11
 
11
12
  /**
12
13
  * Project Hooks - Business Logic Implementation
@@ -14,7 +15,7 @@ import { ObjectHookDefinition } from '@objectql/types';
14
15
  * This file implements all lifecycle hooks for the Project object.
15
16
  * Hooks are automatically triggered during CRUD operations.
16
17
  */
17
- const hooks: ObjectHookDefinition = {
18
+ const hooks: ObjectHookDefinition<Projects> = {
18
19
  /**
19
20
  * beforeCreate Hook
20
21
  *
@@ -42,7 +43,7 @@ const hooks: ObjectHookDefinition = {
42
43
  // Auto-assign owner from user context
43
44
  // Note: Framework automatically sets created_by, but we also need owner field
44
45
  if (user?.id) {
45
- data.owner = user.id;
46
+ data.owner = String(user.id);
46
47
  }
47
48
 
48
49
  // Set default status to planned if not provided
@@ -17,6 +17,6 @@
17
17
  "src/**/*"
18
18
  ],
19
19
  "exclude": [
20
- "objectql.config.ts"
20
+ "objectstack.config.ts"
21
21
  ]
22
22
  }
@@ -1,33 +0,0 @@
1
- /**
2
- * ObjectQL
3
- * Copyright (c) 2026-present ObjectStack Inc.
4
- *
5
- * This source code is licensed under the MIT license found in the
6
- * LICENSE file in the root directory of this source tree.
7
- */
8
-
9
- module.exports = {
10
- preset: 'ts-jest',
11
- testEnvironment: 'node',
12
- testMatch: ['**/__tests__/**/*.test.ts'],
13
- moduleNameMapper: {
14
- },
15
- transform: {
16
- '^.+\\.(t|j)sx?$': ['ts-jest', {
17
- isolatedModules: true,
18
- tsconfig: {
19
- esModuleInterop: true,
20
- allowSyntheticDefaultImports: true,
21
- allowJs: true,
22
- }
23
- }],
24
- },
25
- transformIgnorePatterns: [
26
- "/node_modules/(?!(@objectstack|.pnpm))"
27
- ],
28
- setupFilesAfterEnv: ['<rootDir>/jest.setup.js'],
29
- collectCoverageFrom: [
30
- 'src/**/*.ts',
31
- '!src/**/*.d.ts',
32
- ],
33
- };
@@ -1,33 +0,0 @@
1
- /**
2
- * ObjectQL
3
- * Copyright (c) 2026-present ObjectStack Inc.
4
- *
5
- * This source code is licensed under the MIT license found in the
6
- * LICENSE file in the root directory of this source tree.
7
- */
8
-
9
- module.exports = {
10
- preset: 'ts-jest',
11
- testEnvironment: 'node',
12
- testMatch: ['**/__tests__/**/*.test.ts'],
13
- moduleNameMapper: {
14
- },
15
- transform: {
16
- '^.+\\.(t|j)sx?$': ['ts-jest', {
17
- isolatedModules: true,
18
- tsconfig: {
19
- esModuleInterop: true,
20
- allowSyntheticDefaultImports: true,
21
- allowJs: true,
22
- }
23
- }],
24
- },
25
- transformIgnorePatterns: [
26
- "/node_modules/(?!(@objectstack|.pnpm))"
27
- ],
28
- setupFilesAfterEnv: ['<rootDir>/jest.setup.js'],
29
- collectCoverageFrom: [
30
- 'src/**/*.ts',
31
- '!src/**/*.d.ts',
32
- ],
33
- };