create-electro 1.0.6 → 1.0.8

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.
@@ -10,10 +10,10 @@
10
10
  "generate": "electro generate"
11
11
  },
12
12
  "devDependencies": {
13
- "@electrojs/cli": "1.0.6",
14
- "@electrojs/config": "1.0.6",
13
+ "@electrojs/cli": "1.0.7",
14
+ "@electrojs/config": "1.0.7",
15
15
  "@types/node": "^25.5.0",
16
- "electron": "41.0.4",
16
+ "electron": "41.1.0",
17
17
  "typescript": "^6.0.2",
18
18
  "vite": "^8.0.3"
19
19
  },
@@ -4,11 +4,11 @@
4
4
  "private": true,
5
5
  "type": "module",
6
6
  "devDependencies": {
7
- "@electrojs/common": "1.0.6",
8
- "@electrojs/config": "1.0.6",
9
- "@electrojs/runtime": "1.0.6",
7
+ "@electrojs/common": "1.0.7",
8
+ "@electrojs/config": "1.0.7",
9
+ "@electrojs/runtime": "1.0.7",
10
10
  "@types/node": "^25.5.0",
11
- "electron": "41.0.4",
11
+ "electron": "41.1.0",
12
12
  "typescript": "^6.0.2",
13
13
  "vite": "^8.0.3"
14
14
  }
@@ -20,6 +20,8 @@ app.on("before-quit", () => {
20
20
  void kernel.shutdown();
21
21
  });
22
22
 
23
- void app.whenReady().then(async () => {
23
+ void (async () => {
24
+ await kernel.initialize();
25
+ await app.whenReady();
24
26
  await kernel.start();
25
- });
27
+ })();
@@ -29,7 +29,7 @@ export class AppModule {
29
29
  });
30
30
  }
31
31
 
32
- async onReady() {
32
+ async onStart() {
33
33
  await this.window.open();
34
34
  }
35
35
  }
@@ -13,7 +13,8 @@ export class NotesService {
13
13
  {
14
14
  id: "bridge-demo",
15
15
  title: "Bridge is connected",
16
- content: "This note was loaded via bridge.notes.getNotes() — a @query method in the runtime. Try creating and deleting notes to test @command methods.",
16
+ content:
17
+ "This note was loaded via bridge.notes.getNotes() — a @query method in the runtime. Try creating and deleting notes to test @command methods.",
17
18
  createdAt: new Date().toISOString(),
18
19
  },
19
20
  {
@@ -4,8 +4,8 @@
4
4
  "private": true,
5
5
  "type": "module",
6
6
  "devDependencies": {
7
- "@electrojs/config": "^1.0.6",
8
- "@electrojs/renderer": "^1.0.6",
7
+ "@electrojs/config": "^1.0.7",
8
+ "@electrojs/renderer": "^1.0.7",
9
9
  "@types/react": "^19.2.14",
10
10
  "@types/react-dom": "^19.2.3",
11
11
  "@vitejs/plugin-react": "^6.0.1",
@@ -35,7 +35,7 @@ const features = [
35
35
  {
36
36
  icon: "clock-01",
37
37
  title: "Lifecycle-Aware",
38
- detail: "onInit, onReady, onShutdown, onDispose — predictable resource management across your entire app.",
38
+ detail: "onInit, onStart, onReady, onShutdown, onDispose — predictable resource management across your entire app.",
39
39
  },
40
40
  {
41
41
  icon: "computer",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "create-electro",
3
- "version": "1.0.6",
3
+ "version": "1.0.8",
4
4
  "description": "Scaffold a new ElectroJS Electron app with the recommended monorepo layout",
5
5
  "keywords": [
6
6
  "create",