create-feltdb 0.4.3 → 0.4.5

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.
@@ -8,6 +8,7 @@
8
8
  * - Version matching between components
9
9
  */
10
10
  import crypto from 'crypto';
11
+ import { FELTDB_PACKAGE_VERSION } from './package-versions.js';
11
12
  /**
12
13
  * Generate a stable UUID from application name
13
14
  * Ensures same name always produces same ID
@@ -47,8 +48,7 @@ export function sanitizeAppName(name) {
47
48
  * Get current FeltDB version from package.json
48
49
  */
49
50
  export function getCurrentFeltDBVersion() {
50
- // This would be replaced at build time with the actual version
51
- return '0.4.2';
51
+ return FELTDB_PACKAGE_VERSION;
52
52
  }
53
53
  /**
54
54
  * Create application identity manifest
package/dist/cli.js CHANGED
@@ -9,6 +9,7 @@ import { fileURLToPath } from 'url';
9
9
  import readline from 'readline';
10
10
  import { spawn } from 'child_process';
11
11
  import { createProject } from './create.js';
12
+ import { FELTDB_PACKAGE_VERSION } from './package-versions.js';
12
13
  const __dirname = path.dirname(fileURLToPath(import.meta.url));
13
14
  function parseArgs(args) {
14
15
  const options = {
@@ -124,11 +125,11 @@ async function promptForOptions(defaults) {
124
125
  async function main() {
125
126
  const args = process.argv.slice(2);
126
127
  if (args.includes('--help') || args.includes('-h')) {
127
- console.log(`create-feltdb 0.4.2\n\nUsage: create-feltdb [project-name] [options]\n\nOptions:\n --runtime <browser|node|self-hosted>\n --framework <react|vanilla>\n --no-distributed\n --no-agents\n --capabilities <list>\n --no-install\n --no-start\n -y, --yes\n -h, --help\n --version`);
128
+ console.log(`create-feltdb ${FELTDB_PACKAGE_VERSION}\n\nUsage: create-feltdb [project-name] [options]\n\nOptions:\n --runtime <browser|node|self-hosted>\n --framework <react|vanilla>\n --no-distributed\n --no-agents\n --capabilities <list>\n --no-install\n --no-start\n -y, --yes\n -h, --help\n --version`);
128
129
  return;
129
130
  }
130
131
  if (args.includes('--version')) {
131
- console.log('0.4.2');
132
+ console.log(FELTDB_PACKAGE_VERSION);
132
133
  return;
133
134
  }
134
135
  // Find project name (first non-flag argument)
package/dist/create.js CHANGED
@@ -54,14 +54,12 @@ export async function createProject(options) {
54
54
  },
55
55
  devDependencies: {
56
56
  '@feltdb/cli': feltdbPackageRange,
57
- '@feltdb/studio': feltdbPackageRange,
58
57
  typescript: '^5.0.0',
59
58
  '@types/node': '^20.0.0',
60
59
  vite: '^8.2.1',
61
60
  },
62
61
  };
63
62
  if (framework === 'react') {
64
- packageJson.dependencies['@feltdb/react'] = feltdbPackageRange;
65
63
  packageJson.dependencies['react'] = '^18.0.0';
66
64
  packageJson.dependencies['react-dom'] = '^18.0.0';
67
65
  packageJson.devDependencies['@types/react'] = '^18.0.0';
@@ -1,4 +1,4 @@
1
1
  // One release train keeps generated applications installable. The repository
2
2
  // validation script checks these values against every workspace manifest.
3
- export const FELTDB_PACKAGE_VERSION = '0.4.3';
3
+ export const FELTDB_PACKAGE_VERSION = '0.4.5';
4
4
  export const feltdbPackageRange = `^${FELTDB_PACKAGE_VERSION}`;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "create-feltdb",
3
- "version": "0.4.3",
3
+ "version": "0.4.5",
4
4
  "description": "Create a new FeltDB application with one command",
5
5
  "license": "MIT",
6
6
  "bin": {