fimo 0.21.0-staging.6 → 1.0.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.
@@ -6,8 +6,14 @@
6
6
  * the tenant DB contains visible values. It never writes label values.
7
7
  */
8
8
  import { existsSync, readFileSync, readdirSync, statSync } from 'node:fs';
9
+ import { createRequire } from 'node:module';
9
10
  import { join } from 'node:path';
10
- import { parseSync } from 'oxc-parser';
11
+ const require = createRequire(import.meta.url);
12
+ let parseSync;
13
+ function parse(filePath, code) {
14
+ parseSync ??= require('oxc-parser').parseSync;
15
+ return parseSync(filePath, code);
16
+ }
11
17
  function findSourceFiles(dir, files = []) {
12
18
  if (!existsSync(dir)) {
13
19
  return files;
@@ -46,7 +52,7 @@ function importedNames(body, source, importedName) {
46
52
  }
47
53
  function extractFromModule(filePath, code, parsePath = filePath) {
48
54
  const declarations = [];
49
- const result = parseSync(parsePath, code);
55
+ const result = parse(parsePath, code);
50
56
  const ast = result.program;
51
57
  const fimoLabelNames = new Set([
52
58
  ...importedNames(ast.body, 'fimo-react', 'Label'),
@@ -109,7 +115,7 @@ function extractFromSvelte(filePath, code) {
109
115
  const labelNames = new Set();
110
116
  const markup = code
111
117
  .replace(SVELTE_SCRIPT, (_script, contents) => {
112
- const ast = parseSync(`${filePath}.ts`, contents).program;
118
+ const ast = parse(`${filePath}.ts`, contents).program;
113
119
  for (const moduleName of ['fimo-sveltekit/components', 'fimo/sveltekit/components']) {
114
120
  for (const name of importedNames(ast.body, moduleName, 'Label')) {
115
121
  labelNames.add(name);
@@ -13,8 +13,14 @@
13
13
  * ✅ GOOD: t('nav.home') // Literal DB-owned key
14
14
  */
15
15
  import { existsSync, readFileSync, readdirSync, statSync } from 'fs';
16
+ import { createRequire } from 'node:module';
16
17
  import { join } from 'path';
17
- import { parseSync } from 'oxc-parser';
18
+ const require = createRequire(import.meta.url);
19
+ let parseSync;
20
+ function parse(filePath, code) {
21
+ parseSync ??= require('oxc-parser').parseSync;
22
+ return parseSync(filePath, code);
23
+ }
18
24
  const SRC_DIR = 'src';
19
25
  // ── Helpers ──────────────────────────────────────────────────────────────────
20
26
  function getLineAndColumn(code, offset) {
@@ -65,7 +71,7 @@ export function lintTranslationKeys(filePath, code) {
65
71
  const errors = [];
66
72
  let ast;
67
73
  try {
68
- const result = parseSync(filePath, code);
74
+ const result = parse(filePath, code);
69
75
  ast = result.program;
70
76
  }
71
77
  catch {
package/package.json CHANGED
@@ -1,7 +1,10 @@
1
1
  {
2
2
  "name": "fimo",
3
- "version": "0.21.0-staging.6",
3
+ "version": "1.0.0",
4
4
  "description": "Fimo CLI - create, deploy, and manage Fimo projects",
5
+ "keywords": [
6
+ "astro-component"
7
+ ],
5
8
  "bin": {
6
9
  "fimo": "dist/cli/index.js"
7
10
  },
@@ -181,12 +184,12 @@
181
184
  "devDependencies": {
182
185
  "@clack/core": "^1.2.0",
183
186
  "@clack/prompts": "^1.2.0",
184
- "@fimo/agents-bundle": "0.21.0-staging.6",
185
- "@fimo/api-contracts": "0.21.0-staging.6",
186
- "@fimo/cli-kit": "0.21.0-staging.6",
187
- "@fimo/framework-detect": "0.21.0-staging.6",
188
- "@fimo/routes": "0.21.0-staging.6",
189
- "@fimo/tsconfig": "0.21.0-staging.6",
187
+ "@fimo/agents-bundle": "1.0.0",
188
+ "@fimo/api-contracts": "1.0.0",
189
+ "@fimo/cli-kit": "1.0.0",
190
+ "@fimo/framework-detect": "1.0.0",
191
+ "@fimo/routes": "1.0.0",
192
+ "@fimo/tsconfig": "1.0.0",
190
193
  "@types/node": "22.18.6",
191
194
  "agent-install": "^0.0.5",
192
195
  "astro": "^7.1.6",
@@ -202,18 +205,6 @@
202
205
  "wrangler": "4.124.0",
203
206
  "yaml": "2.8.2"
204
207
  },
205
- "peerDependencies": {
206
- "astro": "^5.0.0 || ^6.0.0 || ^7.0.0",
207
- "vite": "^7.0.0 || ^8.0.0"
208
- },
209
- "peerDependenciesMeta": {
210
- "astro": {
211
- "optional": true
212
- },
213
- "vite": {
214
- "optional": true
215
- }
216
- },
217
208
  "engines": {
218
209
  "node": ">=20.12.0"
219
210
  }
package/release.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "source": "npm",
3
- "apiUrl": "https://api.staging.fimo.team",
4
- "webUrl": "https://staging.fimo.team"
3
+ "apiUrl": "https://api.fimo.ai",
4
+ "webUrl": "https://fimo.ai"
5
5
  }
@@ -9,8 +9,8 @@
9
9
  "check": "astro sync && astro check"
10
10
  },
11
11
  "dependencies": {
12
- "fimo": "0.21.0-staging.6",
13
- "fimo-astro": "0.21.0-staging.6"
12
+ "fimo": "1.0.0",
13
+ "fimo-astro": "1.0.0"
14
14
  },
15
15
  "devDependencies": {
16
16
  "@astrojs/check": "^0.9.10",
@@ -12,8 +12,8 @@
12
12
  },
13
13
  "dependencies": {
14
14
  "@tanstack/react-query": "^5.80.6",
15
- "fimo": "0.21.0-staging.6",
16
- "fimo-next": "0.21.0-staging.6",
15
+ "fimo": "1.0.0",
16
+ "fimo-next": "1.0.0",
17
17
  "next": "^16.3.0",
18
18
  "react": "^19.2.7",
19
19
  "react-dom": "^19.2.7"
@@ -21,9 +21,9 @@
21
21
  "cmdk": "^1.1.1",
22
22
  "date-fns": "^4.1.0",
23
23
  "embla-carousel-react": "^8.6.0",
24
- "fimo": "0.21.0-staging.6",
25
- "fimo-react": "0.21.0-staging.6",
26
- "fimo-react-router": "0.21.0-staging.6",
24
+ "fimo": "1.0.0",
25
+ "fimo-react": "1.0.0",
26
+ "fimo-react-router": "1.0.0",
27
27
  "input-otp": "^1.4.2",
28
28
  "isbot": "^5",
29
29
  "lucide-react": "^0.577.0",
@@ -11,8 +11,8 @@
11
11
  "prepare": "svelte-kit sync"
12
12
  },
13
13
  "dependencies": {
14
- "fimo": "0.21.0-staging.6",
15
- "fimo-sveltekit": "0.21.0-staging.6"
14
+ "fimo": "1.0.0",
15
+ "fimo-sveltekit": "1.0.0"
16
16
  },
17
17
  "devDependencies": {
18
18
  "@sveltejs/kit": "^2.70.2",
@@ -11,9 +11,9 @@
11
11
  },
12
12
  "dependencies": {
13
13
  "@tanstack/react-query": "^5.80.6",
14
- "fimo": "0.21.0-staging.6",
15
- "fimo-react": "0.21.0-staging.6",
16
- "fimo-react-router": "0.21.0-staging.6",
14
+ "fimo": "1.0.0",
15
+ "fimo-react": "1.0.0",
16
+ "fimo-react-router": "1.0.0",
17
17
  "react": "^19.2.7",
18
18
  "react-dom": "^19.2.7",
19
19
  "react-router": "^8.3.0"