Fix code quality violations and exclude Manifest from checks

Document application modes (development/debug/production)
Add global file drop handler, order column normalization, SPA hash fix
Serve CDN assets via /_vendor/ URLs instead of merging into bundles
Add production minification with license preservation
Improve JSON formatting for debugging and production optimization
Add CDN asset caching with CSS URL inlining for production builds
Add three-mode system (development, debug, production)
Update Manifest CLAUDE.md to reflect helper class architecture
Refactor Manifest.php into helper classes for better organization
Pre-manifest-refactor checkpoint: Add app_mode documentation

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

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
root
2026-01-14 10:38:22 +00:00
parent bb9046af1b
commit d523f0f600
2355 changed files with 231384 additions and 32223 deletions

View File

@@ -254,7 +254,7 @@ if (next && next.type !== 'combinator') {
}
```
### `node.replaceWith(node)`
### `node.replaceWith(node[,...nodeN])`
Replace a node with another.
@@ -267,6 +267,8 @@ attr.replaceWith(className);
Arguments:
* `node`: The node to substitute the original with.
...
* `nodeN`: The node to substitute the original with.
### `node.remove()`
@@ -531,7 +533,7 @@ Arguments:
* `node`: The node to add.
### `container.insertBefore(old, new)` & `container.insertAfter(old, new)`
### `container.insertBefore(old, new[, ...newNodes])` & `container.insertAfter(old, new[, ...newNodes])`
Add a node before or after an existing node in a container:

View File

@@ -1,3 +1,16 @@
# 7.1.1
- perf: replace startsWith with strict equality (#308)
- fix(types): add walkUniversal declaration (#311)
# 7.1.0
- feat: insert(Before|After) support multiple new node
# 7.0.0
- Feat: make insertions during iteration safe (major)
# 6.1.2
- Fixed: erroneous trailing combinators in pseudos

View File

@@ -548,7 +548,7 @@ var Parser = /*#__PURE__*/function () {
if (_space2.endsWith(' ') && _rawSpace2.endsWith(' ')) {
spaces.before = _space2.slice(0, _space2.length - 1);
raws.spaces.before = _rawSpace2.slice(0, _rawSpace2.length - 1);
} else if (_space2.startsWith(' ') && _rawSpace2.startsWith(' ')) {
} else if (_space2[0] === ' ' && _rawSpace2[0] === ' ') {
spaces.after = _space2.slice(1);
raws.spaces.after = _rawSpace2.slice(1);
} else {

View File

@@ -33,6 +33,9 @@ var Container = /*#__PURE__*/function (_Node) {
_proto.prepend = function prepend(selector) {
selector.parent = this;
this.nodes.unshift(selector);
for (var id in this.indexes) {
this.indexes[id]++;
}
return this;
};
_proto.at = function at(index) {
@@ -69,29 +72,39 @@ var Container = /*#__PURE__*/function (_Node) {
return this.removeAll();
};
_proto.insertAfter = function insertAfter(oldNode, newNode) {
var _this$nodes;
newNode.parent = this;
var oldIndex = this.index(oldNode);
this.nodes.splice(oldIndex + 1, 0, newNode);
var resetNode = [];
for (var i = 2; i < arguments.length; i++) {
resetNode.push(arguments[i]);
}
(_this$nodes = this.nodes).splice.apply(_this$nodes, [oldIndex + 1, 0, newNode].concat(resetNode));
newNode.parent = this;
var index;
for (var id in this.indexes) {
index = this.indexes[id];
if (oldIndex <= index) {
this.indexes[id] = index + 1;
if (oldIndex < index) {
this.indexes[id] = index + arguments.length - 1;
}
}
return this;
};
_proto.insertBefore = function insertBefore(oldNode, newNode) {
var _this$nodes2;
newNode.parent = this;
var oldIndex = this.index(oldNode);
this.nodes.splice(oldIndex, 0, newNode);
var resetNode = [];
for (var i = 2; i < arguments.length; i++) {
resetNode.push(arguments[i]);
}
(_this$nodes2 = this.nodes).splice.apply(_this$nodes2, [oldIndex, 0, newNode].concat(resetNode));
newNode.parent = this;
var index;
for (var id in this.indexes) {
index = this.indexes[id];
if (index <= oldIndex) {
this.indexes[id] = index + 1;
if (index >= oldIndex) {
this.indexes[id] = index + arguments.length - 1;
}
}
return this;
@@ -117,7 +130,7 @@ var Container = /*#__PURE__*/function (_Node) {
* Return the most specific node at the line and column number given.
* The source location is based on the original parsed location, locations aren't
* updated as selector nodes are mutated.
*
*
* Note that this location is relative to the location of the first character
* of the selector, and not the location of the selector in the overall document
* when used in conjunction with postcss.

View File

@@ -1,6 +1,6 @@
{
"name": "postcss-selector-parser",
"version": "6.1.2",
"version": "7.1.1",
"devDependencies": {
"@babel/cli": "^7.11.6",
"@babel/core": "^7.11.6",
@@ -11,7 +11,7 @@
"@babel/register": "^7.11.5",
"ava": "^5.1.0",
"babel-plugin-add-module-exports": "^1.0.4",
"coveralls": "^3.1.0",
"coveralls-next": "^4.2.1",
"del-cli": "^5.0.0",
"eslint": "^8.28.0",
"eslint-plugin-import": "^2.26.0",
@@ -39,6 +39,7 @@
"lintfix": "eslint --fix src",
"report": "nyc report --reporter=html",
"test": "nyc ava src/__tests__/*.mjs",
"test:node22": "nyc ava src/__tests__/*.mjs --node-arguments=--no-experimental-detect-module",
"testone": "ava"
},
"dependencies": {

View File

@@ -86,12 +86,12 @@ declare namespace parser {
interface Options {
/**
* Preserve whitespace when true. Default: false;
* Preserve whitespace when true. Default: true;
*/
lossless: boolean;
/**
* When true and a postcss.Rule is passed, set the result of
* processing back onto the rule when done. Default: false.
* processing back onto the rule when done. Default: true.
*/
updateSelector: boolean;
}
@@ -235,8 +235,8 @@ declare namespace parser {
removeChild(child: Child): this;
removeAll(): this;
empty(): this;
insertAfter(oldNode: Child, newNode: Child): this;
insertBefore(oldNode: Child, newNode: Child): this;
insertAfter(oldNode: Child, newNode: Child, ...restNode: Child[]): this;
insertBefore(oldNode: Child, newNode: Child, ...restNode: Child[]): this;
each(callback: (node: Child, index: number) => boolean | void): boolean | undefined;
walk(
callback: (node: Node, index: number) => boolean | void
@@ -263,6 +263,7 @@ declare namespace parser {
callback: (node: Pseudo) => boolean | void
): boolean | undefined;
walkTags(callback: (node: Tag) => boolean | void): boolean | undefined;
walkUniversals(callback: (node: Universal) => boolean | void): boolean | undefined;
split(callback: (node: Child) => boolean): [Child[], Child[]];
map<T>(callback: (node: Child) => T): T[];
reduce(