@markuplint/spec-generator 4.1.0 → 4.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.
Files changed (2) hide show
  1. package/lib/aria.js +6 -0
  2. package/package.json +5 -5
package/lib/aria.js CHANGED
@@ -75,6 +75,11 @@ async function getRoles(version, graphicsAria = false) {
75
75
  .toArray()
76
76
  .map(p => $(p).text().trim().replaceAll(/\s+/g, ' ').replaceAll(/\t+/g, ''))
77
77
  .join('\n\n');
78
+ const deprecated = description.toLowerCase().search(
79
+ // eslint-disable-next-line regexp/strict
80
+ /\[deprecated in aria 1\.\d]/i) === -1
81
+ ? undefined
82
+ : true;
78
83
  const $features = $el.find('.role-features tr');
79
84
  const generalization = $features
80
85
  .find('.role-parent a')
@@ -126,6 +131,7 @@ async function getRoles(version, graphicsAria = false) {
126
131
  name,
127
132
  description,
128
133
  isAbstract,
134
+ deprecated,
129
135
  generalization,
130
136
  requiredContextRole,
131
137
  requiredOwnedElements,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@markuplint/spec-generator",
3
- "version": "4.1.0",
3
+ "version": "4.2.0",
4
4
  "description": "Generates @markuplint/html-spec",
5
5
  "repository": "git@github.com:markuplint/markuplint.git",
6
6
  "author": "Yusuke Hirao <yusukehirao@me.com>",
@@ -25,15 +25,15 @@
25
25
  "ajv": "^8.12.0",
26
26
  "cheerio": "^1.0.0-rc.12",
27
27
  "cli-progress": "^3.12.0",
28
- "fast-xml-parser": "^4.3.4",
28
+ "fast-xml-parser": "^4.3.5",
29
29
  "glob": "^10.3.6",
30
30
  "strip-json-comments": "^5.0.1"
31
31
  },
32
32
  "devDependencies": {
33
- "@markuplint/ml-spec": "4.0.2",
34
- "@markuplint/test-tools": "4.0.2",
33
+ "@markuplint/ml-spec": "4.1.0",
34
+ "@markuplint/test-tools": "4.1.0",
35
35
  "@types/cli-progress": "^3.11.5",
36
36
  "type-fest": "^4.10.2"
37
37
  },
38
- "gitHead": "10ce6c8374106f311eeaaffbae8f3fdcbb40f877"
38
+ "gitHead": "d5d99c5d84b676f8b2bb84684533ed74cf2f1da6"
39
39
  }