@bhsd/codemirror-mediawiki 3.10.2 → 3.11.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/i18n/en.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "3.10.2",
2
+ "version": "3.11.1",
3
3
  "lang": "en",
4
4
  "title": "CodeMirror Addons",
5
5
  "label": "Please select the addons you wish to load",
package/i18n/zh-hans.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "3.10.2",
2
+ "version": "3.11.1",
3
3
  "lang": "zh-hans",
4
4
  "title": "CodeMirror插件",
5
5
  "label": "请选择您希望加载的插件",
package/i18n/zh-hant.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "3.10.2",
2
+ "version": "3.11.1",
3
3
  "lang": "zh-hant",
4
4
  "title": "CodeMirror外掛程式",
5
5
  "label": "請選擇您希望載入的外掛程式",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bhsd/codemirror-mediawiki",
3
- "version": "3.10.2",
3
+ "version": "3.11.1",
4
4
  "description": "Modified CodeMirror mode based on wikimedia/mediawiki-extensions-CodeMirror",
5
5
  "keywords": [
6
6
  "mediawiki",
@@ -31,15 +31,12 @@
31
31
  "scripts": {
32
32
  "prepublishOnly": "npm run build",
33
33
  "checkout": "git checkout wikitext wikitext.html wikitext-page.js wikitext-page.css",
34
- "bundle:core": "node build.cjs",
35
- "bundle:wiki": "MODE=wiki node build.cjs",
36
- "bundle:unused": "esbuild ./bundle/*.ts --charset=utf8 --bundle --format=esm --outdir=build",
37
34
  "build:css": "esbuild ./css/index.css --bundle --minify --outfile=mediawiki.css",
38
- "build:core": "npm run bundle:core && esbuild ./build/main.js --charset=utf8 --minify --target=es2019 --format=esm --sourcemap --outfile=dist/main.min.js && tsc && esbuild src/config.ts --bundle --format=esm --external:@lezer/highlight --outfile=dist/config.js --legal-comments=inline && rm dist/*{-page,.test}.{js,d.ts}",
39
- "build:mw": "esbuild ./build/wiki.js --charset=utf8 --minify --target=es2019 --format=esm --outfile=dist/mw.min.js && esbuild ./mw/config.ts --charset=utf8 --bundle --target=es2019 --format=esm --outfile=dist/mwConfig.js",
40
- "build:wiki": "npm run bundle:wiki && esbuild ./build/wiki.js --charset=utf8 --minify --target=es2019 --format=iife --sourcemap --outfile=dist/wiki.min.js",
35
+ "build:core": "node build.cjs && tsc && esbuild src/config.ts src/javascript-globals.ts --bundle --format=esm --external:@lezer/highlight --outdir=dist --legal-comments=inline && gsed -i 's|globals/globals.json|globals|' dist/javascript-globals.d.ts && rm dist/*{-page,.test}.{js,d.ts}",
36
+ "build:mw": "MODE=mw node build.cjs && esbuild ./mw/config.ts --charset=utf8 --bundle --target=es2019 --format=esm --outfile=dist/mwConfig.js --external:@bhsd/browser --external:@bhsd/cm-util",
37
+ "build:wiki": "MODE=wiki node build.cjs",
41
38
  "build:gh-page": "esbuild src/*-page.ts --charset=utf8 --bundle --target=es2019 --format=esm --outdir=. --external:/codemirror-mediawiki/dist/main.min.js --external:/codemirror-mediawiki/dist/demo.min.js --external:/wikiparser-node/extensions/dist/test-page-common.js --external:/lezer-abusefilter/dist/dialect.test.js",
42
- "build:demo": "npm run bundle:unused && esbuild ./build/mediawiki.js --charset=utf8 --minify --target=es2019 --format=esm --outfile=dist/demo.min.js",
39
+ "build:demo": "esbuild ./bundle/*.ts --charset=utf8 --bundle --format=esm --outdir=build && esbuild ./bundle/mediawiki.ts --charset=utf8 --bundle --minify --target=es2019 --format=esm --outfile=dist/demo.min.js",
43
40
  "build:test": "rm -rf test/dist/; tsc --project test/tsconfig.json && npm test",
44
41
  "build": "npm run build:css && rm -rf dist/ && npm run build:demo && npm run build:core && npm run build:wiki && npm run build:mw && eslint --no-config-lookup -c eslint.dist.mjs dist/*.min.js",
45
42
  "lint:ts": "tsc --noEmit && tsc --project mw/tsconfig.json --noEmit && tsc --project test/tsconfig.json --noEmit && tsc --project bundle/tsconfig.json --noEmit && eslint --cache .",
@@ -54,14 +51,14 @@
54
51
  "diff": "git diff --ignore-all-space --color-moved --minimal npm wikitext"
55
52
  },
56
53
  "dependencies": {
57
- "@bhsd/browser": "^0.2.1",
54
+ "@bhsd/browser": "^0.3.0",
58
55
  "@bhsd/cm-util": "^0.1.0",
59
56
  "@bhsd/codemirror-css-color-picker": "^6.3.2",
60
57
  "@bhsd/common": "^1.3.1",
61
58
  "@bhsd/lezer-abusefilter": "^0.1.2",
62
59
  "@bhsd/stylelint-util": "^1.0.1",
63
60
  "@codemirror/autocomplete": "^6.20.0",
64
- "@codemirror/commands": "^6.10.1",
61
+ "@codemirror/commands": "^6.10.2",
65
62
  "@codemirror/language": "^6.12.1",
66
63
  "@codemirror/lang-css": "^6.3.1",
67
64
  "@codemirror/lang-html": "^6.4.11",
@@ -72,28 +69,28 @@
72
69
  "@codemirror/lint": "^6.9.3",
73
70
  "@codemirror/search": "^6.6.0",
74
71
  "@codemirror/state": "^6.5.4",
75
- "@codemirror/view": "^6.38.8",
72
+ "@codemirror/view": "^6.39.12",
76
73
  "cm6-theme-nord": "^0.2.0",
77
- "globals": "^17.2.0",
78
- "wikiparser-node": "^1.35.0"
74
+ "globals": "^17.3.0",
75
+ "wikiparser-node": "^1.35.1"
79
76
  },
80
77
  "devDependencies": {
81
78
  "@bhsd/code-standard": "^2.0.0",
82
79
  "@bhsd/test-util": "^0.3.0",
83
80
  "@stylistic/eslint-plugin": "^5.7.1",
84
81
  "@stylistic/stylelint-plugin": "^5.0.1",
85
- "@types/eslint": "^8.56.12",
82
+ "@types/eslint": "^9.6.1",
86
83
  "@types/jquery": "^3.5.33",
87
84
  "@types/mocha": "^10.0.10",
88
- "@types/node": "^24.10.9",
85
+ "@types/node": "^24.10.11",
89
86
  "@types/oojs-ui": "^0.49.4",
90
87
  "@typescript-eslint/eslint-plugin": "^8.54.0",
91
88
  "@typescript-eslint/parser": "^8.54.0",
92
- "esbuild": "^0.27.2",
89
+ "esbuild": "^0.27.3",
93
90
  "eslint": "^9.39.2",
94
- "eslint-plugin-es-x": "^9.3.0",
91
+ "eslint-plugin-es-x": "^9.4.0",
95
92
  "eslint-plugin-eslint-comments": "^3.2.0",
96
- "eslint-plugin-jsdoc": "^62.5.0",
93
+ "eslint-plugin-jsdoc": "^62.5.3",
97
94
  "eslint-plugin-jsonc": "^2.21.0",
98
95
  "eslint-plugin-promise": "^7.2.1",
99
96
  "eslint-plugin-regexp": "^3.0.0",
@@ -103,9 +100,9 @@
103
100
  "markdownlint-cli2": "^0.20.0",
104
101
  "mocha": "^11.7.5",
105
102
  "monaco-editor": "^0.55.1",
106
- "stylelint": "^17.1.0",
103
+ "stylelint": "^17.1.1",
107
104
  "stylelint-config-recommended": "^18.0.0",
108
- "stylelint-plugin-use-baseline": "^1.2.1",
105
+ "stylelint-plugin-use-baseline": "^1.2.2",
109
106
  "types-mediawiki": "^2.0.0",
110
107
  "typescript": "^5.9.3"
111
108
  }