vexflow 5.1.1 → 5.1.2
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/README.md +1 -0
- package/build/cjs/vexflow-bravura.js +2 -2
- package/build/cjs/vexflow-bravura.js.map +1 -1
- package/build/cjs/vexflow-core.js +2 -2
- package/build/cjs/vexflow-core.js.map +1 -1
- package/build/cjs/vexflow-debug-with-tests.js +284 -70
- package/build/cjs/vexflow-debug-with-tests.js.map +1 -1
- package/build/cjs/vexflow-debug.js +284 -70
- package/build/cjs/vexflow-debug.js.map +1 -1
- package/build/cjs/vexflow.js +2 -2
- package/build/cjs/vexflow.js.map +1 -1
- package/build/esm/src/chordkerning.js +98 -0
- package/build/esm/src/chordsymbol.js +108 -27
- package/build/esm/src/version.js +3 -3
- package/build/esm/tests/node/chord-kerning-tests.mjs +173 -0
- package/build/esm/tests/node/tool-security-tests.mjs +85 -0
- package/build/types/src/chordkerning.d.ts +42 -0
- package/build/types/src/chordsymbol.d.ts +19 -0
- package/changelog/CHANGELOG.md +22 -0
- package/package.json +14 -7
- package/tests/flow.html +10 -3
package/changelog/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,25 @@
|
|
|
1
|
+
# 5.1.2
|
|
2
|
+
|
|
3
|
+
## Notation
|
|
4
|
+
|
|
5
|
+
- Add opt-in chord-symbol kerning for Academico/Bravura and Petaluma Script/Petaluma.
|
|
6
|
+
- Support custom kerning profiles with shared Canvas/SVG positioning and stable script bounds.
|
|
7
|
+
- Add an Explorer comparison for chord kerning.
|
|
8
|
+
|
|
9
|
+
## Testing and deployment
|
|
10
|
+
|
|
11
|
+
- Add `npm run tests:upload` to publish the complete visual test gallery to `vexflow.com/tests/`.
|
|
12
|
+
- Bundle QUnit, the test library, source maps, and fonts with no runtime CDN dependency.
|
|
13
|
+
- Share the Explorer's verified upload path, immutable assets, and short HTML cache.
|
|
14
|
+
- Test the standalone gallery, filtering, and deployment behavior in CI.
|
|
15
|
+
|
|
16
|
+
## Security and tooling
|
|
17
|
+
|
|
18
|
+
- Update development dependencies and remove vulnerable transitive packages.
|
|
19
|
+
- Use argument arrays for release commands and reject invalid version inputs.
|
|
20
|
+
- Render uploaded font metadata as text instead of HTML.
|
|
21
|
+
- Update CI actions and pin Node 26.13.1. Use read-only permissions and audit dependencies in CI.
|
|
22
|
+
|
|
1
23
|
# 5.1.1
|
|
2
24
|
|
|
3
25
|
## Fixes and performance
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "vexflow",
|
|
3
|
-
"version": "5.1.
|
|
3
|
+
"version": "5.1.2",
|
|
4
4
|
"description": "A JavaScript library for rendering music notation and guitar tablature.",
|
|
5
5
|
"exports": {
|
|
6
6
|
".": {
|
|
@@ -93,13 +93,12 @@
|
|
|
93
93
|
"eslint-plugin-import": "^2.31.0",
|
|
94
94
|
"eslint-plugin-prettier": "^5.4.1",
|
|
95
95
|
"eslint-plugin-simple-import-sort": "^12.1.1",
|
|
96
|
-
"fork-ts-checker-webpack-plugin": "^9.1.0",
|
|
97
96
|
"globals": "^16.2.0",
|
|
98
97
|
"grunt": "^1.6.1",
|
|
99
98
|
"grunt-cli": "^1.5.0",
|
|
100
99
|
"grunt-contrib-clean": "^2.0.1",
|
|
101
100
|
"grunt-contrib-copy": "^1.0.0",
|
|
102
|
-
"grunt-contrib-qunit": "
|
|
101
|
+
"grunt-contrib-qunit": "11.0.0",
|
|
103
102
|
"grunt-eslint": "^25.0.0",
|
|
104
103
|
"grunt-webpack": "^7.0.0",
|
|
105
104
|
"jsdom": "^26.1.0",
|
|
@@ -108,10 +107,10 @@
|
|
|
108
107
|
"opentype.js": "^1.3.4",
|
|
109
108
|
"prettier": "^3.5.3",
|
|
110
109
|
"prismjs": "1.30.0",
|
|
111
|
-
"puppeteer": "
|
|
110
|
+
"puppeteer": "25.17.0",
|
|
112
111
|
"qunit": "^2.24.1",
|
|
113
112
|
"recursive-copy": "^2.0.14",
|
|
114
|
-
"release-it": "
|
|
113
|
+
"release-it": "21.1.2",
|
|
115
114
|
"string-replace-loader": "^3.1.0",
|
|
116
115
|
"svg2pdf.js": "^2.5.0",
|
|
117
116
|
"terser-webpack-plugin": "^5.3.14",
|
|
@@ -133,7 +132,10 @@
|
|
|
133
132
|
"explorer": "node tools/explorer/cli.mjs serve",
|
|
134
133
|
"explorer:build": "node tools/explorer/cli.mjs build",
|
|
135
134
|
"explorer:test": "node tools/explorer/test.mjs",
|
|
136
|
-
"explorer:upload": "node tools/explorer/upload.mjs"
|
|
135
|
+
"explorer:upload": "node tools/explorer/upload.mjs",
|
|
136
|
+
"tests:build": "node tools/tests-site.mjs build",
|
|
137
|
+
"tests:upload": "node tools/tests-site.mjs upload",
|
|
138
|
+
"tests:test": "node tools/tests-site.test.mjs"
|
|
137
139
|
},
|
|
138
140
|
"homepage": "https://vexflow.com/",
|
|
139
141
|
"keywords": [
|
|
@@ -147,9 +149,14 @@
|
|
|
147
149
|
"structured-clone-es": "^1.0.0"
|
|
148
150
|
},
|
|
149
151
|
"overrides": {
|
|
150
|
-
"undici": "6.23.0",
|
|
151
152
|
"concurrently": {
|
|
152
153
|
"shell-quote": "1.11.0"
|
|
154
|
+
},
|
|
155
|
+
"@typescript-eslint/typescript-estree": {
|
|
156
|
+
"minimatch": "11.0.7"
|
|
157
|
+
},
|
|
158
|
+
"get-uri": {
|
|
159
|
+
"basic-ftp": "6.2.6"
|
|
153
160
|
}
|
|
154
161
|
}
|
|
155
162
|
}
|
package/tests/flow.html
CHANGED
|
@@ -124,14 +124,16 @@
|
|
|
124
124
|
// When flow.html is hosted on unpkg.com, the query string is not available.
|
|
125
125
|
// Allow the user to specify params via the # fragment identifier.
|
|
126
126
|
const hashParams = new URLSearchParams(location.hash.substr(1));
|
|
127
|
+
// Static deployments supply a local, fingerprinted bundle. Keep all test filters available.
|
|
128
|
+
const bundledSource = document.querySelector('meta[name="vexflow-test-bundle"]')?.content;
|
|
127
129
|
|
|
128
130
|
// Optional: Specify the QUnit module or filter in the query params or fragment identifier.
|
|
129
131
|
let QUnitModule = queryParams.get('module') ?? hashParams.get('module');
|
|
130
132
|
let QUnitFilter = queryParams.get('filter') ?? hashParams.get('filter');
|
|
131
133
|
|
|
132
134
|
// The `ver` query param chooses which VexFlow version to load. If omitted, `ver` defaults to 'build'.
|
|
133
|
-
const ver = queryParams.get('ver') ?? hashParams.get('ver') ?? 'build';
|
|
134
|
-
let useESM = queryParams.get('esm') === 'true' || hashParams.get('esm') === 'true';
|
|
135
|
+
const ver = bundledSource ? 'bundled build' : (queryParams.get('ver') ?? hashParams.get('ver') ?? 'build');
|
|
136
|
+
let useESM = !bundledSource && (queryParams.get('esm') === 'true' || hashParams.get('esm') === 'true');
|
|
135
137
|
const isFileProtocol = location.protocol === 'file:';
|
|
136
138
|
|
|
137
139
|
// Determine if we are loading VexFlow from a CDN.
|
|
@@ -148,7 +150,9 @@
|
|
|
148
150
|
const pathCJSorESM = (useESM ? 'esm/entry' : 'cjs') + '/vexflow-debug-with-tests.js';
|
|
149
151
|
|
|
150
152
|
let vexPlusTestsURL;
|
|
151
|
-
if (
|
|
153
|
+
if (bundledSource) {
|
|
154
|
+
vexPlusTestsURL = bundledSource;
|
|
155
|
+
} else if (useCDN) {
|
|
152
156
|
// `ver` can specify a version hosted on the unpkg.com / jsdelivr.com CDN. We only support VexFlow 4 or newer:
|
|
153
157
|
// ver=unpkg@4.2.3 => https://unpkg.com/vexflow@4.2.3/build/cjs/vexflow-debug-with-tests.js
|
|
154
158
|
// ver=unpkg@alpha => https://unpkg.com/vexflow@alpha/build/cjs/vexflow-debug-with-tests.js
|
|
@@ -182,11 +186,14 @@
|
|
|
182
186
|
};
|
|
183
187
|
}
|
|
184
188
|
|
|
189
|
+
// Load deployed faces before tests measure them, even when the preload spans are empty.
|
|
190
|
+
if (bundledSource) await Promise.all([...document.fonts].map((face) => face.load()));
|
|
185
191
|
const fontFaceSet = await document.fonts.ready;
|
|
186
192
|
|
|
187
193
|
showFontLoadingStatus();
|
|
188
194
|
|
|
189
195
|
const VF = await loadVexFlow();
|
|
196
|
+
if (bundledSource) await document.fonts.ready;
|
|
190
197
|
|
|
191
198
|
// If you did not load the fonts via the div#font-preload above, you can load them with this API:
|
|
192
199
|
// await VF.loadFonts(); // Load all web fonts that VexFlow knows about (Font.FILES).
|