@markuplint/types 4.8.2 → 5.0.0-alpha.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/package.json CHANGED
@@ -1,10 +1,13 @@
1
1
  {
2
2
  "name": "@markuplint/types",
3
- "version": "4.8.2",
3
+ "version": "5.0.0-alpha.0",
4
4
  "description": "Type declaration and value checker",
5
5
  "repository": "git@github.com:markuplint/markuplint.git",
6
6
  "author": "Yusuke Hirao <yusukehirao@me.com>",
7
7
  "license": "MIT",
8
+ "engines": {
9
+ "node": ">=22"
10
+ },
8
11
  "type": "module",
9
12
  "exports": {
10
13
  ".": {
@@ -29,16 +32,15 @@
29
32
  "schema:prettier": "npx prettier --write \"./src/types.schema.ts\" \"./types.schema.json\" --log-level warn"
30
33
  },
31
34
  "dependencies": {
32
- "@markuplint/shared": "4.4.13",
35
+ "@markuplint/shared": "5.0.0-alpha.0",
33
36
  "@types/css-tree": "2.3.11",
34
37
  "@types/debug": "4.1.12",
35
- "@types/whatwg-mimetype": "3.0.2",
36
38
  "bcp-47": "2.1.0",
37
39
  "css-tree": "3.1.0",
38
40
  "debug": "4.4.3",
39
41
  "leven": "4.1.0",
40
- "type-fest": "4.41.0",
41
- "whatwg-mimetype": "4.0.0"
42
+ "type-fest": "5.4.4",
43
+ "whatwg-mimetype": "5.0.0"
42
44
  },
43
- "gitHead": "193ee7c1262bbed95424e38efdf1a8e56ff049f4"
45
+ "gitHead": "13dcfc84ec83d87360c720e253383b60767e1b56"
44
46
  }
package/types.schema.json CHANGED
@@ -1274,13 +1274,22 @@
1274
1274
  "ref": { "type": "string" }
1275
1275
  }
1276
1276
  },
1277
+ "pattern": {
1278
+ "type": "object",
1279
+ "required": ["pattern"],
1280
+ "additionalProperties": false,
1281
+ "properties": {
1282
+ "pattern": { "type": "string" }
1283
+ }
1284
+ },
1277
1285
  "type": {
1278
1286
  "oneOf": [
1279
1287
  { "$ref": "#/definitions/keyword-defined-type" },
1280
1288
  { "$ref": "#/definitions/list" },
1281
1289
  { "$ref": "#/definitions/enum" },
1282
1290
  { "$ref": "#/definitions/number" },
1283
- { "$ref": "#/definitions/directive" }
1291
+ { "$ref": "#/definitions/directive" },
1292
+ { "$ref": "#/definitions/pattern" }
1284
1293
  ]
1285
1294
  }
1286
1295
  },