@objectql/create 4.2.0 → 4.2.2

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.2.0",
3
+ "version": "4.2.2",
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.2
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies [9a30c50]
8
+ - @objectql/core@4.2.2
9
+ - @objectql/driver-sql@4.2.2
10
+ - @objectql/platform-node@4.2.2
11
+ - @objectql/types@4.2.2
12
+
13
+ ## 4.2.1
14
+
15
+ ### Patch Changes
16
+
17
+ - Updated dependencies [a0aa26a]
18
+ - @objectql/types@4.2.1
19
+ - @objectql/core@4.2.1
20
+ - @objectql/platform-node@4.2.1
21
+ - @objectql/driver-sql@4.2.1
22
+
3
23
  ## 5.0.0
4
24
 
5
25
  ### Patch Changes
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@objectql/example-enterprise-erp",
3
- "version": "5.0.0",
3
+ "version": "4.2.2",
4
4
  "description": "ObjectQL Enterprise Example - CRM & HR Demo",
5
5
  "private": true,
6
6
  "keywords": [
@@ -6,8 +6,7 @@
6
6
  * LICENSE file in the root directory of this source tree.
7
7
  */
8
8
 
9
- // Import ObjectQLPlugin types from @objectql/core instead of @objectstack/runtime
10
- // to avoid ESM/CJS compatibility issues
9
+ // Plugin types defined locally to avoid ESM/CJS compatibility issues
11
10
  type RuntimeContext = any;
12
11
 
13
12
  interface ObjectQLPlugin {
@@ -1,5 +1,21 @@
1
1
  # @example/hello-world
2
2
 
3
+ ## 4.2.2
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies [9a30c50]
8
+ - @objectql/core@4.2.2
9
+ - @objectql/driver-sql@4.2.2
10
+
11
+ ## 4.2.1
12
+
13
+ ### Patch Changes
14
+
15
+ - Updated dependencies [a0aa26a]
16
+ - @objectql/core@4.2.1
17
+ - @objectql/driver-sql@4.2.1
18
+
3
19
  ## 4.1.1
4
20
 
5
21
  ### Patch Changes
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@objectql/example-hello-world",
3
- "version": "4.1.1",
3
+ "version": "4.2.2",
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.2
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies [9a30c50]
8
+ - @objectql/core@4.2.2
9
+ - @objectql/driver-sql@4.2.2
10
+ - @objectql/platform-node@4.2.2
11
+ - @objectql/types@4.2.2
12
+
13
+ ## 4.2.1
14
+
15
+ ### Patch Changes
16
+
17
+ - Updated dependencies [a0aa26a]
18
+ - @objectql/types@4.2.1
19
+ - @objectql/core@4.2.1
20
+ - @objectql/platform-node@4.2.1
21
+ - @objectql/driver-sql@4.2.1
22
+
3
23
  ## 5.0.0
4
24
 
5
25
  ### Patch Changes
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@objectql/example-project-tracker",
3
- "version": "5.0.0",
3
+ "version": "4.2.2",
4
4
  "description": "ObjectQL Basic Example Project",
5
5
  "private": true,
6
6
  "keywords": [
@@ -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