Update jqhtml packages
🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
18
node_modules/.package-lock.json
generated
vendored
18
node_modules/.package-lock.json
generated
vendored
@@ -2211,9 +2211,9 @@
|
||||
}
|
||||
},
|
||||
"node_modules/@jqhtml/core": {
|
||||
"version": "2.3.21",
|
||||
"resolved": "http://privatenpm.hanson.xyz/@jqhtml/core/-/core-2.3.21.tgz",
|
||||
"integrity": "sha512-M6ZTSPL4mAIaezP+VOmo1jFC09lnoUueu/ZknIGrlpwDA/OxiLp+j6btMOukhlB7OQmB+xr9I8HulT8e/4uw+g==",
|
||||
"version": "2.3.22",
|
||||
"resolved": "http://privatenpm.hanson.xyz/@jqhtml/core/-/core-2.3.22.tgz",
|
||||
"integrity": "sha512-zsTrWSHXk7kSAwEy9/R448tkmjM8NaCkM9IM7KugRJRD+XMj/3iEHkRHveAh6Ny5Y8KDF9hD5xGckGBxN6AuEA==",
|
||||
"license": "MIT",
|
||||
"dependencies": {
|
||||
"@rollup/plugin-node-resolve": "^16.0.1",
|
||||
@@ -2237,9 +2237,9 @@
|
||||
}
|
||||
},
|
||||
"node_modules/@jqhtml/parser": {
|
||||
"version": "2.3.21",
|
||||
"resolved": "http://privatenpm.hanson.xyz/@jqhtml/parser/-/parser-2.3.21.tgz",
|
||||
"integrity": "sha512-S5VUqo9SN4HEeeTsYNbvRXreTML9cLO3N9mFrz76Z5+iwi9SnSxZEKx4ImDrkhcmQCjZu+JHGyscVj2QrehzvA==",
|
||||
"version": "2.3.22",
|
||||
"resolved": "http://privatenpm.hanson.xyz/@jqhtml/parser/-/parser-2.3.22.tgz",
|
||||
"integrity": "sha512-nI6kWHuffMtp/UEFiQdJOHsPmzkPQHF9QyZAXlrGs3or8Ua256A1l6fOjaxcVg8N5XGzjkTald/NHnYIWvqZ4w==",
|
||||
"license": "MIT",
|
||||
"dependencies": {
|
||||
"@types/jest": "^29.5.11",
|
||||
@@ -2277,9 +2277,9 @@
|
||||
}
|
||||
},
|
||||
"node_modules/@jqhtml/vscode-extension": {
|
||||
"version": "2.3.21",
|
||||
"resolved": "http://privatenpm.hanson.xyz/@jqhtml/vscode-extension/-/vscode-extension-2.3.21.tgz",
|
||||
"integrity": "sha512-CXCjk+RcqXUbx1EnvAqZwYqLmcTEz5kiGQS8/JaiqvMHbil2PiiFrTCqfhWcPBXPuW6XH2fosQIzPlC+35MI7g==",
|
||||
"version": "2.3.22",
|
||||
"resolved": "http://privatenpm.hanson.xyz/@jqhtml/vscode-extension/-/vscode-extension-2.3.22.tgz",
|
||||
"integrity": "sha512-Q848uJ+duTrfM8tnEwyyvNyuo1Q5551ro0bYZT2S1m1Il6Lf4f8VLEDcqPicXjKVlWS8/qYfjDpxI20O2clDig==",
|
||||
"license": "MIT",
|
||||
"engines": {
|
||||
"vscode": "^1.74.0"
|
||||
|
||||
1
node_modules/@jqhtml/core/dist/component.d.ts
generated
vendored
1
node_modules/@jqhtml/core/dist/component.d.ts
generated
vendored
@@ -34,7 +34,6 @@ export declare class Jqhtml_Component {
|
||||
private _data_before_render;
|
||||
private _lifecycle_callbacks;
|
||||
private _lifecycle_states;
|
||||
private __loading;
|
||||
private _did_first_render;
|
||||
private _render_count;
|
||||
private _args_on_last_render;
|
||||
|
||||
2
node_modules/@jqhtml/core/dist/component.d.ts.map
generated
vendored
2
node_modules/@jqhtml/core/dist/component.d.ts.map
generated
vendored
@@ -1 +1 @@
|
||||
{"version":3,"file":"component.d.ts","sourceRoot":"","sources":["../src/component.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAgBH,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,MAAM;QACd,YAAY,CAAC,EAAE;YACb,GAAG,EAAE,CAAC,aAAa,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,EAAE,IAAI,CAAC,EAAE,GAAG,KAAK,IAAI,CAAC;YACjF,UAAU,EAAE,MAAM,IAAI,CAAC;SACxB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AO,CAAC,aAAa;IAIrB;;;OAGG;IACH,OAAO,CAAC,qBAAqB;IAkB7B,OAAO,CAAC,kBAAkB;IA4B1B,OAAO,CAAC,yBAAyB;IAuHjC,OAAO,CAAC,eAAe;IAUvB,OAAO,CAAC,mBAAmB;IAO3B,OAAO,CAAC,gBAAgB;IAcxB;;;;OAIG;IACH,OAAO,CAAC,iBAAiB;IA+BzB,OAAO,CAAC,cAAc;IActB,OAAO,CAAC,UAAU;IAUlB;;;;;;;;;;;;;;OAcG;IACH,OAAO,CAAC,0BAA0B;CAqEnC"}
|
||||
14
node_modules/@jqhtml/core/dist/index.cjs
generated
vendored
14
node_modules/@jqhtml/core/dist/index.cjs
generated
vendored
@@ -2109,7 +2109,6 @@ class Jqhtml_Component {
|
||||
this._data_before_render = null; // Store data state before initial render
|
||||
this._lifecycle_callbacks = new Map();
|
||||
this._lifecycle_states = new Map(); // Track which lifecycle events have occurred and their data
|
||||
this.__loading = false; // Flag to prevent render() calls during on_load()
|
||||
this._did_first_render = false; // Track if component has rendered at least once
|
||||
this._render_count = 0; // Incremented each time _render() is called, used to detect stale renders
|
||||
this._args_on_last_render = null; // Args snapshot from last render (for reload() comparison)
|
||||
@@ -2388,13 +2387,6 @@ class Jqhtml_Component {
|
||||
}
|
||||
return child._render();
|
||||
}
|
||||
// Prevent render() calls during on_load()
|
||||
if (this.__loading) {
|
||||
throw new Error(`[JQHTML] Component "${this.component_name()}" attempted to call render() during on_load().\n` +
|
||||
`on_load() should ONLY modify this.data. DOM updates happen automatically after on_load() completes.\n\n` +
|
||||
`Fix: Remove the this.render() call from on_load().\n` +
|
||||
`The framework will automatically re-render if this.data changes during on_load().`);
|
||||
}
|
||||
this._log_lifecycle('render', 'start');
|
||||
// HTML CACHE MODE - If we have cached HTML, inject it directly and skip template rendering
|
||||
if (this._cached_html !== null) {
|
||||
@@ -2938,8 +2930,6 @@ class Jqhtml_Component {
|
||||
catch (error) {
|
||||
// Args contain circular references - skip validation
|
||||
}
|
||||
// Set loading flag to prevent render() calls during on_load()
|
||||
this.__loading = true;
|
||||
// Create restricted proxy that operates on the detached context
|
||||
const component_name = this.component_name();
|
||||
const restricted_this = new Proxy(detached_context, {
|
||||
@@ -3016,8 +3006,6 @@ class Jqhtml_Component {
|
||||
await on_load_promise;
|
||||
}
|
||||
finally {
|
||||
// Always clear loading flag
|
||||
this.__loading = false;
|
||||
// Complete coordination if we registered
|
||||
if (complete_coordination) {
|
||||
complete_coordination();
|
||||
@@ -4844,7 +4832,7 @@ function init(jQuery) {
|
||||
}
|
||||
}
|
||||
// Version - will be replaced during build with actual version from package.json
|
||||
const version = '2.3.21';
|
||||
const version = '2.3.22';
|
||||
// Default export with all functionality
|
||||
const jqhtml = {
|
||||
// Core
|
||||
|
||||
2
node_modules/@jqhtml/core/dist/index.cjs.map
generated
vendored
2
node_modules/@jqhtml/core/dist/index.cjs.map
generated
vendored
File diff suppressed because one or more lines are too long
14
node_modules/@jqhtml/core/dist/index.js
generated
vendored
14
node_modules/@jqhtml/core/dist/index.js
generated
vendored
@@ -2105,7 +2105,6 @@ class Jqhtml_Component {
|
||||
this._data_before_render = null; // Store data state before initial render
|
||||
this._lifecycle_callbacks = new Map();
|
||||
this._lifecycle_states = new Map(); // Track which lifecycle events have occurred and their data
|
||||
this.__loading = false; // Flag to prevent render() calls during on_load()
|
||||
this._did_first_render = false; // Track if component has rendered at least once
|
||||
this._render_count = 0; // Incremented each time _render() is called, used to detect stale renders
|
||||
this._args_on_last_render = null; // Args snapshot from last render (for reload() comparison)
|
||||
@@ -2384,13 +2383,6 @@ class Jqhtml_Component {
|
||||
}
|
||||
return child._render();
|
||||
}
|
||||
// Prevent render() calls during on_load()
|
||||
if (this.__loading) {
|
||||
throw new Error(`[JQHTML] Component "${this.component_name()}" attempted to call render() during on_load().\n` +
|
||||
`on_load() should ONLY modify this.data. DOM updates happen automatically after on_load() completes.\n\n` +
|
||||
`Fix: Remove the this.render() call from on_load().\n` +
|
||||
`The framework will automatically re-render if this.data changes during on_load().`);
|
||||
}
|
||||
this._log_lifecycle('render', 'start');
|
||||
// HTML CACHE MODE - If we have cached HTML, inject it directly and skip template rendering
|
||||
if (this._cached_html !== null) {
|
||||
@@ -2934,8 +2926,6 @@ class Jqhtml_Component {
|
||||
catch (error) {
|
||||
// Args contain circular references - skip validation
|
||||
}
|
||||
// Set loading flag to prevent render() calls during on_load()
|
||||
this.__loading = true;
|
||||
// Create restricted proxy that operates on the detached context
|
||||
const component_name = this.component_name();
|
||||
const restricted_this = new Proxy(detached_context, {
|
||||
@@ -3012,8 +3002,6 @@ class Jqhtml_Component {
|
||||
await on_load_promise;
|
||||
}
|
||||
finally {
|
||||
// Always clear loading flag
|
||||
this.__loading = false;
|
||||
// Complete coordination if we registered
|
||||
if (complete_coordination) {
|
||||
complete_coordination();
|
||||
@@ -4840,7 +4828,7 @@ function init(jQuery) {
|
||||
}
|
||||
}
|
||||
// Version - will be replaced during build with actual version from package.json
|
||||
const version = '2.3.21';
|
||||
const version = '2.3.22';
|
||||
// Default export with all functionality
|
||||
const jqhtml = {
|
||||
// Core
|
||||
|
||||
2
node_modules/@jqhtml/core/dist/index.js.map
generated
vendored
2
node_modules/@jqhtml/core/dist/index.js.map
generated
vendored
File diff suppressed because one or more lines are too long
16
node_modules/@jqhtml/core/dist/jqhtml-core.esm.js
generated
vendored
16
node_modules/@jqhtml/core/dist/jqhtml-core.esm.js
generated
vendored
@@ -1,5 +1,5 @@
|
||||
/**
|
||||
* JQHTML Core v2.3.21
|
||||
* JQHTML Core v2.3.22
|
||||
* (c) 2025 JQHTML Team
|
||||
* Released under the MIT License
|
||||
*/
|
||||
@@ -2110,7 +2110,6 @@ class Jqhtml_Component {
|
||||
this._data_before_render = null; // Store data state before initial render
|
||||
this._lifecycle_callbacks = new Map();
|
||||
this._lifecycle_states = new Map(); // Track which lifecycle events have occurred and their data
|
||||
this.__loading = false; // Flag to prevent render() calls during on_load()
|
||||
this._did_first_render = false; // Track if component has rendered at least once
|
||||
this._render_count = 0; // Incremented each time _render() is called, used to detect stale renders
|
||||
this._args_on_last_render = null; // Args snapshot from last render (for reload() comparison)
|
||||
@@ -2389,13 +2388,6 @@ class Jqhtml_Component {
|
||||
}
|
||||
return child._render();
|
||||
}
|
||||
// Prevent render() calls during on_load()
|
||||
if (this.__loading) {
|
||||
throw new Error(`[JQHTML] Component "${this.component_name()}" attempted to call render() during on_load().\n` +
|
||||
`on_load() should ONLY modify this.data. DOM updates happen automatically after on_load() completes.\n\n` +
|
||||
`Fix: Remove the this.render() call from on_load().\n` +
|
||||
`The framework will automatically re-render if this.data changes during on_load().`);
|
||||
}
|
||||
this._log_lifecycle('render', 'start');
|
||||
// HTML CACHE MODE - If we have cached HTML, inject it directly and skip template rendering
|
||||
if (this._cached_html !== null) {
|
||||
@@ -2939,8 +2931,6 @@ class Jqhtml_Component {
|
||||
catch (error) {
|
||||
// Args contain circular references - skip validation
|
||||
}
|
||||
// Set loading flag to prevent render() calls during on_load()
|
||||
this.__loading = true;
|
||||
// Create restricted proxy that operates on the detached context
|
||||
const component_name = this.component_name();
|
||||
const restricted_this = new Proxy(detached_context, {
|
||||
@@ -3017,8 +3007,6 @@ class Jqhtml_Component {
|
||||
await on_load_promise;
|
||||
}
|
||||
finally {
|
||||
// Always clear loading flag
|
||||
this.__loading = false;
|
||||
// Complete coordination if we registered
|
||||
if (complete_coordination) {
|
||||
complete_coordination();
|
||||
@@ -4845,7 +4833,7 @@ function init(jQuery) {
|
||||
}
|
||||
}
|
||||
// Version - will be replaced during build with actual version from package.json
|
||||
const version = '2.3.21';
|
||||
const version = '2.3.22';
|
||||
// Default export with all functionality
|
||||
const jqhtml = {
|
||||
// Core
|
||||
|
||||
2
node_modules/@jqhtml/core/dist/jqhtml-core.esm.js.map
generated
vendored
2
node_modules/@jqhtml/core/dist/jqhtml-core.esm.js.map
generated
vendored
File diff suppressed because one or more lines are too long
2
node_modules/@jqhtml/core/package.json
generated
vendored
2
node_modules/@jqhtml/core/package.json
generated
vendored
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@jqhtml/core",
|
||||
"version": "2.3.21",
|
||||
"version": "2.3.22",
|
||||
"description": "Core runtime library for JQHTML",
|
||||
"type": "module",
|
||||
"main": "./dist/index.js",
|
||||
|
||||
2
node_modules/@jqhtml/parser/dist/codegen.js
generated
vendored
2
node_modules/@jqhtml/parser/dist/codegen.js
generated
vendored
@@ -1377,7 +1377,7 @@ export class CodeGenerator {
|
||||
for (const [name, component] of this.components) {
|
||||
code += `// Component: ${name}\n`;
|
||||
code += `jqhtml_components.set('${name}', {\n`;
|
||||
code += ` _jqhtml_version: '2.3.21',\n`; // Version will be replaced during build
|
||||
code += ` _jqhtml_version: '2.3.22',\n`; // Version will be replaced during build
|
||||
code += ` name: '${name}',\n`;
|
||||
code += ` tag: '${component.tagName}',\n`;
|
||||
code += ` defaultAttributes: ${this.serializeAttributeObject(component.defaultAttributes)},\n`;
|
||||
|
||||
2
node_modules/@jqhtml/parser/package.json
generated
vendored
2
node_modules/@jqhtml/parser/package.json
generated
vendored
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@jqhtml/parser",
|
||||
"version": "2.3.21",
|
||||
"version": "2.3.22",
|
||||
"description": "JQHTML template parser - converts templates to JavaScript",
|
||||
"type": "module",
|
||||
"main": "dist/index.js",
|
||||
|
||||
2
node_modules/@jqhtml/vscode-extension/.version
generated
vendored
2
node_modules/@jqhtml/vscode-extension/.version
generated
vendored
@@ -1 +1 @@
|
||||
2.3.21
|
||||
2.3.22
|
||||
|
||||
Binary file not shown.
2
node_modules/@jqhtml/vscode-extension/package.json
generated
vendored
2
node_modules/@jqhtml/vscode-extension/package.json
generated
vendored
@@ -2,7 +2,7 @@
|
||||
"name": "@jqhtml/vscode-extension",
|
||||
"displayName": "JQHTML",
|
||||
"description": "Syntax highlighting and language support for JQHTML template files",
|
||||
"version": "2.3.21",
|
||||
"version": "2.3.22",
|
||||
"publisher": "jqhtml",
|
||||
"license": "MIT",
|
||||
"publishConfig": {
|
||||
|
||||
Reference in New Issue
Block a user