@markuplint/selector 5.0.0-dev.5 → 5.0.0-rc.1
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/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,14 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
# [5.0.0-rc.1](https://github.com/markuplint/markuplint/compare/v5.0.0-rc.0...v5.0.0-rc.1) (2026-03-27)
|
|
7
|
+
|
|
8
|
+
**Note:** Version bump only for package @markuplint/selector
|
|
9
|
+
|
|
10
|
+
# [5.0.0-rc.0](https://github.com/markuplint/markuplint/compare/v5.0.0-alpha.3...v5.0.0-rc.0) (2026-03-12)
|
|
11
|
+
|
|
12
|
+
**Note:** Version bump only for package @markuplint/selector
|
|
13
|
+
|
|
6
14
|
# [5.0.0-alpha.3](https://github.com/markuplint/markuplint/compare/v5.0.0-alpha.2...v5.0.0-alpha.3) (2026-02-26)
|
|
7
15
|
|
|
8
16
|
**Note:** Version bump only for package @markuplint/selector
|
|
@@ -7,4 +7,4 @@ import type { Specificity } from './types.js';
|
|
|
7
7
|
* @param b - The second specificity tuple `[id, class, type]`
|
|
8
8
|
* @returns `-1` if `a` is less specific, `1` if `a` is more specific, `0` if equal
|
|
9
9
|
*/
|
|
10
|
-
export declare function compareSpecificity(a: Specificity, b: Specificity):
|
|
10
|
+
export declare function compareSpecificity(a: Specificity, b: Specificity): 1 | -1 | 0;
|
|
@@ -1,13 +1 @@
|
|
|
1
|
-
|
|
2
|
-
* Error thrown when a CSS selector string cannot be parsed.
|
|
3
|
-
*/
|
|
4
|
-
export declare class InvalidSelectorError extends Error {
|
|
5
|
-
name: string;
|
|
6
|
-
/** The invalid selector string that caused this error */
|
|
7
|
-
selector: string;
|
|
8
|
-
/**
|
|
9
|
-
* @param selector - The invalid selector string
|
|
10
|
-
* @param message - An optional custom error message
|
|
11
|
-
*/
|
|
12
|
-
constructor(selector: string, message?: string);
|
|
13
|
-
}
|
|
1
|
+
export { InvalidSelectorError } from '@markuplint/shared';
|
|
@@ -1,16 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
*/
|
|
4
|
-
export class InvalidSelectorError extends Error {
|
|
5
|
-
name = 'InvalidSelectorError';
|
|
6
|
-
/** The invalid selector string that caused this error */
|
|
7
|
-
selector;
|
|
8
|
-
/**
|
|
9
|
-
* @param selector - The invalid selector string
|
|
10
|
-
* @param message - An optional custom error message
|
|
11
|
-
*/
|
|
12
|
-
constructor(selector, message) {
|
|
13
|
-
super(message ?? `Invalid selector: "${selector}"`);
|
|
14
|
-
this.selector = selector;
|
|
15
|
-
}
|
|
16
|
-
}
|
|
1
|
+
// Re-export from @markuplint/shared — this class is now defined there.
|
|
2
|
+
export { InvalidSelectorError } from '@markuplint/shared';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@markuplint/selector",
|
|
3
|
-
"version": "5.0.0-
|
|
3
|
+
"version": "5.0.0-rc.1",
|
|
4
4
|
"description": "Extended W3C Selectors matcher",
|
|
5
5
|
"repository": "git@github.com:markuplint/markuplint.git",
|
|
6
6
|
"author": "Yusuke Hirao <yusukehirao@me.com>",
|
|
@@ -27,15 +27,16 @@
|
|
|
27
27
|
"clean": "tsc --build --clean tsconfig.build.json"
|
|
28
28
|
},
|
|
29
29
|
"dependencies": {
|
|
30
|
-
"@markuplint/ml-spec": "5.0.0-
|
|
31
|
-
"@
|
|
30
|
+
"@markuplint/ml-spec": "5.0.0-rc.1",
|
|
31
|
+
"@markuplint/shared": "5.0.0-rc.1",
|
|
32
|
+
"@types/debug": "4.1.13",
|
|
32
33
|
"debug": "4.4.3",
|
|
33
34
|
"postcss-selector-parser": "7.1.1",
|
|
34
|
-
"type-fest": "5.
|
|
35
|
+
"type-fest": "5.5.0"
|
|
35
36
|
},
|
|
36
37
|
"devDependencies": {
|
|
37
|
-
"@types/jsdom": "28.0.
|
|
38
|
-
"jsdom": "
|
|
38
|
+
"@types/jsdom": "28.0.1",
|
|
39
|
+
"jsdom": "29.0.1"
|
|
39
40
|
},
|
|
40
|
-
"gitHead": "
|
|
41
|
+
"gitHead": "0d6b4324d9a7d6b9e1ba57d4a57e45d36975cba9"
|
|
41
42
|
}
|