Implement BEM-style enum naming and fetch() anti-aliasing policy

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
root
2025-12-26 02:17:31 +00:00
parent a289eecf0f
commit 7d379b2402
50 changed files with 1041 additions and 577 deletions

57
node_modules/.package-lock.json generated vendored
View File

@@ -2211,9 +2211,9 @@
}
},
"node_modules/@jqhtml/core": {
"version": "2.3.30",
"resolved": "http://privatenpm.hanson.xyz/@jqhtml/core/-/core-2.3.30.tgz",
"integrity": "sha512-6VuZCo4aCr9Qk5LhOnG0Fv6GE2Z/mUfXnSwE5iSk3v+i7bE4IgEMrQVGsndaJtHHLRRnB2n+Aed2W3H5eeV9Fg==",
"version": "2.3.31",
"resolved": "http://privatenpm.hanson.xyz/@jqhtml/core/-/core-2.3.31.tgz",
"integrity": "sha512-VbTAbFF8QVOljNjf+1OZ4cFTE3NaeNzyMidqrooYSsHZvb6Ja5NIMDft+M4FxeidrMoRIwa7QN09XgiJWBVNRg==",
"license": "MIT",
"dependencies": {
"@rollup/plugin-node-resolve": "^16.0.1",
@@ -2237,9 +2237,9 @@
}
},
"node_modules/@jqhtml/parser": {
"version": "2.3.30",
"resolved": "http://privatenpm.hanson.xyz/@jqhtml/parser/-/parser-2.3.30.tgz",
"integrity": "sha512-UHiGZ0bueaOGtSIQahitzc+1mJ/pibYZgYUOf6gc3a788Gq37lRA5IuyOKtoe7YYPQjJCyH43joF+Qv4bNBXDA==",
"version": "2.3.31",
"resolved": "http://privatenpm.hanson.xyz/@jqhtml/parser/-/parser-2.3.31.tgz",
"integrity": "sha512-ILV1onWn+rMdwaPd6DYIPM0dj2aUExTJ4ww4c0/+h3Zk50gnxMJQc6fOirDrTB1nWwKtY19yFDMPFYnurOJ2wA==",
"license": "MIT",
"dependencies": {
"@types/jest": "^29.5.11",
@@ -2277,9 +2277,9 @@
}
},
"node_modules/@jqhtml/ssr": {
"version": "2.3.30",
"resolved": "http://privatenpm.hanson.xyz/@jqhtml/ssr/-/ssr-2.3.30.tgz",
"integrity": "sha512-gNpwsWkeqT8TEGzvi6vccjhtFvT28b3NOHiqNSpgGUHgkMupHU4oqEi/QDNhEeU87kNVvqEhTsEIqAXX07Wt3Q==",
"version": "2.3.31",
"resolved": "http://privatenpm.hanson.xyz/@jqhtml/ssr/-/ssr-2.3.31.tgz",
"integrity": "sha512-EpZ597l/3MEgpvAJTqcZ81cVTJwYxJzs8BLXAdbnQY+ySeOYQL8ot31IV3hdS8b6FnYezzaHN+jSBtqZZsAYnQ==",
"license": "MIT",
"dependencies": {
"jquery": "^3.7.1",
@@ -2373,9 +2373,9 @@
}
},
"node_modules/@jqhtml/vscode-extension": {
"version": "2.3.30",
"resolved": "http://privatenpm.hanson.xyz/@jqhtml/vscode-extension/-/vscode-extension-2.3.30.tgz",
"integrity": "sha512-+l2kI1Uj/kSCeM1bzCHbEtsRE+X6VpxQpw7wfrExqMKYvrzRmU6yiQADHuc85CFg8F2HF+7d7XA9zvgj8cOXcg==",
"version": "2.3.31",
"resolved": "http://privatenpm.hanson.xyz/@jqhtml/vscode-extension/-/vscode-extension-2.3.31.tgz",
"integrity": "sha512-aQoKAxLz1ziuJ6I2EfFXxUBvPEsDxirR2q/6VwEzYqfVTHdKiw6M2Sk25Nhm/lrg5dNLuiKa+snRodV8yEOWpQ==",
"license": "MIT",
"engines": {
"vscode": "^1.74.0"
@@ -2574,26 +2574,6 @@
"url": "https://opencollective.com/parcel"
}
},
"node_modules/@parcel/watcher-linux-x64-musl": {
"version": "2.5.1",
"resolved": "https://registry.npmjs.org/@parcel/watcher-linux-x64-musl/-/watcher-linux-x64-musl-2.5.1.tgz",
"integrity": "sha512-n0E2EQbatQ3bXhcH2D1XIAANAcTZkQICBPVaxMeaCVBtOpBZpWJuf7LwyWPSBDITb7In8mqQgJ7gH8CILCURXg==",
"cpu": [
"x64"
],
"license": "MIT",
"optional": true,
"os": [
"linux"
],
"engines": {
"node": ">= 10.0.0"
},
"funding": {
"type": "opencollective",
"url": "https://opencollective.com/parcel"
}
},
"node_modules/@popperjs/core": {
"version": "2.11.8",
"resolved": "https://registry.npmjs.org/@popperjs/core/-/core-2.11.8.tgz",
@@ -2745,19 +2725,6 @@
"linux"
]
},
"node_modules/@rollup/rollup-linux-x64-musl": {
"version": "4.54.0",
"resolved": "https://registry.npmjs.org/@rollup/rollup-linux-x64-musl/-/rollup-linux-x64-musl-4.54.0.tgz",
"integrity": "sha512-JzQmb38ATzHjxlPHuTH6tE7ojnMKM2kYNzt44LO/jJi8BpceEC8QuXYA908n8r3CNuG/B3BV8VR3Hi1rYtmPiw==",
"cpu": [
"x64"
],
"license": "MIT",
"optional": true,
"os": [
"linux"
]
},
"node_modules/@sinclair/typebox": {
"version": "0.27.8",
"resolved": "https://registry.npmjs.org/@sinclair/typebox/-/typebox-0.27.8.tgz",

View File

@@ -4698,13 +4698,16 @@ function init_jquery_plugin(jQuery) {
catch (error) {
console.warn('[JQHTML] Error stopping existing component during replacement:', error);
}
// Remove component classes (any class starting with capital letter)
// Remove component classes (any class starting with capital letter, except BEM classes)
const classes = element.attr('class');
if (classes) {
const classList = classes.split(/\s+/);
const nonComponentClasses = classList.filter((cls) => {
// Keep class if it doesn't start with capital letter
return !cls || cls[0] !== cls[0].toUpperCase() || cls[0] === cls[0].toLowerCase();
// Keep class if:
// 1. It's empty
// 2. It doesn't start with a capital letter
// 3. It's a BEM-style class (contains __) - these persist across reinitialization
return !cls || cls[0] !== cls[0].toUpperCase() || cls[0] === cls[0].toLowerCase() || cls.includes('__');
});
element.attr('class', nonComponentClasses.join(' '));
}
@@ -4981,7 +4984,7 @@ function init(jQuery) {
}
}
// Version - will be replaced during build with actual version from package.json
const version = '2.3.30';
const version = '2.3.31';
// Default export with all functionality
const jqhtml = {
// Core

File diff suppressed because one or more lines are too long

View File

@@ -4694,13 +4694,16 @@ function init_jquery_plugin(jQuery) {
catch (error) {
console.warn('[JQHTML] Error stopping existing component during replacement:', error);
}
// Remove component classes (any class starting with capital letter)
// Remove component classes (any class starting with capital letter, except BEM classes)
const classes = element.attr('class');
if (classes) {
const classList = classes.split(/\s+/);
const nonComponentClasses = classList.filter((cls) => {
// Keep class if it doesn't start with capital letter
return !cls || cls[0] !== cls[0].toUpperCase() || cls[0] === cls[0].toLowerCase();
// Keep class if:
// 1. It's empty
// 2. It doesn't start with a capital letter
// 3. It's a BEM-style class (contains __) - these persist across reinitialization
return !cls || cls[0] !== cls[0].toUpperCase() || cls[0] === cls[0].toLowerCase() || cls.includes('__');
});
element.attr('class', nonComponentClasses.join(' '));
}
@@ -4977,7 +4980,7 @@ function init(jQuery) {
}
}
// Version - will be replaced during build with actual version from package.json
const version = '2.3.30';
const version = '2.3.31';
// Default export with all functionality
const jqhtml = {
// Core

File diff suppressed because one or more lines are too long

View File

@@ -1,5 +1,5 @@
/**
* JQHTML Core v2.3.30
* JQHTML Core v2.3.31
* (c) 2025 JQHTML Team
* Released under the MIT License
*/
@@ -4699,13 +4699,16 @@ function init_jquery_plugin(jQuery) {
catch (error) {
console.warn('[JQHTML] Error stopping existing component during replacement:', error);
}
// Remove component classes (any class starting with capital letter)
// Remove component classes (any class starting with capital letter, except BEM classes)
const classes = element.attr('class');
if (classes) {
const classList = classes.split(/\s+/);
const nonComponentClasses = classList.filter((cls) => {
// Keep class if it doesn't start with capital letter
return !cls || cls[0] !== cls[0].toUpperCase() || cls[0] === cls[0].toLowerCase();
// Keep class if:
// 1. It's empty
// 2. It doesn't start with a capital letter
// 3. It's a BEM-style class (contains __) - these persist across reinitialization
return !cls || cls[0] !== cls[0].toUpperCase() || cls[0] === cls[0].toLowerCase() || cls.includes('__');
});
element.attr('class', nonComponentClasses.join(' '));
}
@@ -4982,7 +4985,7 @@ function init(jQuery) {
}
}
// Version - will be replaced during build with actual version from package.json
const version = '2.3.30';
const version = '2.3.31';
// Default export with all functionality
const jqhtml = {
// Core

File diff suppressed because one or more lines are too long

View File

@@ -1 +1 @@
{"version":3,"file":"jquery-plugin.d.ts","sourceRoot":"","sources":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,CAAC,QAAQ,EAAE,MAAM,GAAG,MAAM,CAAC;KACvC;CACF;AAGD,wBAAgB,kBAAkB,CAAC,MAAM,EAAE,GAAG,GAAG,IAAI,CA6apD"}

View File

@@ -1,6 +1,6 @@
{
"name": "@jqhtml/core",
"version": "2.3.30",
"version": "2.3.31",
"description": "Core runtime library for JQHTML",
"type": "module",
"main": "./dist/index.js",

View File

@@ -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.30',\n`; // Version will be replaced during build
code += ` _jqhtml_version: '2.3.31',\n`; // Version will be replaced during build
code += ` name: '${name}',\n`;
code += ` tag: '${component.tagName}',\n`;
code += ` defaultAttributes: ${this.serializeAttributeObject(component.defaultAttributes)},\n`;

View File

@@ -1,6 +1,6 @@
{
"name": "@jqhtml/parser",
"version": "2.3.30",
"version": "2.3.31",
"description": "JQHTML template parser - converts templates to JavaScript",
"type": "module",
"main": "dist/index.js",

View File

@@ -1,6 +1,6 @@
{
"name": "@jqhtml/ssr",
"version": "2.3.30",
"version": "2.3.31",
"description": "Server-Side Rendering for JQHTML components - renders components to HTML for SEO",
"main": "src/index.js",
"bin": {

View File

@@ -1 +1 @@
2.3.30
2.3.31

View File

@@ -2,7 +2,7 @@
"name": "@jqhtml/vscode-extension",
"displayName": "JQHTML",
"description": "Syntax highlighting and language support for JQHTML template files",
"version": "2.3.30",
"version": "2.3.31",
"publisher": "jqhtml",
"license": "MIT",
"publishConfig": {

View File

@@ -1,21 +0,0 @@
MIT License
Copyright (c) 2017-present Devon Govett
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.

View File

@@ -1 +0,0 @@
This is the linux-x64-musl build of @parcel/watcher. See https://github.com/parcel-bundler/watcher for details.

View File

@@ -1,33 +0,0 @@
{
"name": "@parcel/watcher-linux-x64-musl",
"version": "2.5.1",
"main": "watcher.node",
"repository": {
"type": "git",
"url": "https://github.com/parcel-bundler/watcher.git"
},
"description": "A native C++ Node module for querying and subscribing to filesystem events. Used by Parcel 2.",
"license": "MIT",
"publishConfig": {
"access": "public"
},
"funding": {
"type": "opencollective",
"url": "https://opencollective.com/parcel"
},
"files": [
"watcher.node"
],
"engines": {
"node": ">= 10.0.0"
},
"os": [
"linux"
],
"cpu": [
"x64"
],
"libc": [
"musl"
]
}

Binary file not shown.

View File

@@ -1,3 +0,0 @@
# `@rollup/rollup-linux-x64-musl`
This is the **x86_64-unknown-linux-musl** binary for `rollup`

View File

@@ -1,25 +0,0 @@
{
"name": "@rollup/rollup-linux-x64-musl",
"version": "4.54.0",
"os": [
"linux"
],
"cpu": [
"x64"
],
"files": [
"rollup.linux-x64-musl.node"
],
"description": "Native bindings for Rollup",
"author": "Lukas Taegert-Atkinson",
"homepage": "https://rollupjs.org/",
"license": "MIT",
"repository": {
"type": "git",
"url": "git+https://github.com/rollup/rollup.git"
},
"libc": [
"musl"
],
"main": "./rollup.linux-x64-musl.node"
}