@markuplint/pug-parser 5.1.0 → 5.2.0

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,17 @@
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.2.0](https://github.com/markuplint/markuplint/compare/v5.1.1...v5.2.0) (2026-10-13)
7
+
8
+ ### Bug Fixes
9
+
10
+ - **pug-parser:** do not enter a namespace by the name of an authored element ([4d11916](https://github.com/markuplint/markuplint/commit/4d11916346c357b3a55d09b49cbd47e88c6dec70))
11
+ - use caret ranges for third-party dependencies of published packages ([5fb5d2e](https://github.com/markuplint/markuplint/commit/5fb5d2ee81eaeea45fe7256a40dd41c95ff0d672))
12
+
13
+ ## [5.1.1](https://github.com/markuplint/markuplint/compare/v5.1.0...v5.1.1) (2026-10-09)
14
+
15
+ **Note:** Version bump only for package @markuplint/pug-parser
16
+
6
17
  # [5.1.0](https://github.com/markuplint/markuplint/compare/v5.0.1...v5.1.0) (2026-10-08)
7
18
 
8
19
  **Note:** Version bump only for package @markuplint/pug-parser
package/lib/parser.js CHANGED
@@ -224,13 +224,14 @@ class PugParser extends Parser {
224
224
  visitElement(token,
225
225
  // eslint-disable-next-line @typescript-eslint/prefer-readonly-parameter-types
226
226
  childNodes, options) {
227
+ const elementType = this.detectElementType(token.nodeName);
227
228
  const startTag = {
228
229
  ...token,
229
230
  ...this.createToken(token),
230
231
  ...options.overwriteProps,
231
232
  type: 'starttag',
232
- elementType: this.detectElementType(token.nodeName),
233
- namespace: getNamespace(token.nodeName, token.parentNode),
233
+ elementType,
234
+ namespace: getNamespace(elementType === 'authored' ? null : token.nodeName, token.parentNode),
234
235
  childNodes: [],
235
236
  blockBehavior: null,
236
237
  parentNodeUuid: token.parentNode?.uuid ?? null,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@markuplint/pug-parser",
3
- "version": "5.1.0",
3
+ "version": "5.2.0",
4
4
  "description": "Pug parser for markuplint",
5
5
  "repository": {
6
6
  "type": "git",
@@ -28,11 +28,11 @@
28
28
  "clean": "tsc --build --clean tsconfig.build.json"
29
29
  },
30
30
  "dependencies": {
31
- "@markuplint/html-parser": "5.1.0",
32
- "@markuplint/ml-ast": "5.1.0",
33
- "@markuplint/parser-utils": "5.1.0",
34
- "pug-lexer": "5.0.1",
35
- "pug-parser": "6.0.0"
31
+ "@markuplint/html-parser": "5.2.0",
32
+ "@markuplint/ml-ast": "5.1.1",
33
+ "@markuplint/parser-utils": "5.2.0",
34
+ "pug-lexer": "^5.0.1",
35
+ "pug-parser": "^6.0.0"
36
36
  },
37
- "gitHead": "3a061784a8211034ad0c1cbd64798c0213414f65"
37
+ "gitHead": "d8b2feab77c9c862513615bea6b80d2817431878"
38
38
  }