pulse-js-framework 1.4.2 → 1.4.3

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/README.md CHANGED
@@ -26,7 +26,7 @@ npm install pulse-js-framework
26
26
  ### Create a new project
27
27
 
28
28
  ```bash
29
- npx pulse create my-app
29
+ npx pulse-js-framework create my-app
30
30
  cd my-app
31
31
  npm install
32
32
  npm run dev
package/cli/build.js CHANGED
@@ -120,7 +120,7 @@ function processDirectory(srcDir, outDir) {
120
120
 
121
121
  // Rewrite runtime imports
122
122
  content = content.replace(
123
- /from\s+['"]pulse-framework\/runtime['"]/g,
123
+ /from\s+['"]pulse-js-framework\/runtime['"]/g,
124
124
  "from './runtime.js'"
125
125
  );
126
126
 
@@ -168,7 +168,7 @@ ${readRuntimeFile('store.js')}
168
168
  */
169
169
  function readRuntimeFile(filename) {
170
170
  const paths = [
171
- join(process.cwd(), 'node_modules', 'pulse-framework', 'runtime', filename),
171
+ join(process.cwd(), 'node_modules', 'pulse-js-framework', 'runtime', filename),
172
172
  join(dirname(new URL(import.meta.url).pathname), '..', 'runtime', filename)
173
173
  ];
174
174
 
package/cli/dev.js CHANGED
@@ -79,7 +79,7 @@ export async function startDevServer(args) {
79
79
  try {
80
80
  const source = readFileSync(filePath, 'utf-8');
81
81
  const result = compile(source, {
82
- runtime: '/node_modules/pulse-framework/runtime/index.js'
82
+ runtime: '/node_modules/pulse-js-framework/runtime/index.js'
83
83
  });
84
84
 
85
85
  if (result.success) {
@@ -108,8 +108,8 @@ export async function startDevServer(args) {
108
108
  }
109
109
 
110
110
  // Handle node_modules
111
- if (pathname.startsWith('/node_modules/pulse-framework/')) {
112
- const modulePath = join(root, '..', 'pulse', pathname.replace('/node_modules/pulse-framework/', ''));
111
+ if (pathname.startsWith('/node_modules/pulse-js-framework/')) {
112
+ const modulePath = join(root, '..', 'pulse', pathname.replace('/node_modules/pulse-js-framework/', ''));
113
113
  if (existsSync(modulePath)) {
114
114
  const content = readFileSync(modulePath, 'utf-8');
115
115
  res.writeHead(200, { 'Content-Type': 'application/javascript' });
package/cli/index.js CHANGED
@@ -11,7 +11,7 @@ import { existsSync, mkdirSync, writeFileSync, readFileSync, cpSync } from 'fs';
11
11
  const __filename = fileURLToPath(import.meta.url);
12
12
  const __dirname = dirname(__filename);
13
13
 
14
- const VERSION = '1.4.2';
14
+ const VERSION = '1.4.3';
15
15
 
16
16
  // Command handlers
17
17
  const commands = {
@@ -25,7 +25,7 @@ export class Transformer {
25
25
  constructor(ast, options = {}) {
26
26
  this.ast = ast;
27
27
  this.options = {
28
- runtime: 'pulse-framework/runtime',
28
+ runtime: 'pulse-js-framework/runtime',
29
29
  minify: false,
30
30
  scopeStyles: true, // Enable CSS scoping by default
31
31
  ...options
package/index.js CHANGED
@@ -11,7 +11,7 @@ export * from './runtime/index.js';
11
11
  export { compile, parse, tokenize } from './compiler/index.js';
12
12
 
13
13
  // Version
14
- export const VERSION = '1.4.2';
14
+ export const VERSION = '1.4.3';
15
15
 
16
16
  // Default export
17
17
  export default {
@@ -43,7 +43,7 @@ export default function pulsePlugin(options = {}) {
43
43
 
44
44
  try {
45
45
  const result = compile(code, {
46
- runtime: 'pulse-framework/runtime',
46
+ runtime: 'pulse-js-framework/runtime',
47
47
  sourceMap
48
48
  });
49
49
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pulse-js-framework",
3
- "version": "1.4.2",
3
+ "version": "1.4.3",
4
4
  "description": "A declarative DOM framework with CSS selector-based structure and reactive pulsations",
5
5
  "type": "module",
6
6
  "main": "index.js",