From d7145223213cdf6e2127b923b2621c2967ac759c Mon Sep 17 00:00:00 2001 From: Lumi Pakkanen Date: Sun, 21 Apr 2024 10:02:59 +0300 Subject: [PATCH] Update sonic-weave and xen-dev-utils dependencies Better type enforcement. The product of gcd and lcm is the same as the product of the arguments. --- package-lock.json | 68 ++++++++++++++++++++++++++++++++++++++------- package.json | 6 ++-- src/stores/scale.ts | 4 +-- 3 files changed, 63 insertions(+), 15 deletions(-) diff --git a/package-lock.json b/package-lock.json index e3552a45..b5e6a039 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "scale-workshop", - "version": "3.0.0-beta.16", + "version": "3.0.0-beta.17", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "scale-workshop", - "version": "3.0.0-beta.16", + "version": "3.0.0-beta.17", "dependencies": { "isomorphic-qwerty": "^0.0.2", "ji-lattice": "^0.0.3", @@ -14,14 +14,14 @@ "moment-of-symmetry": "^0.4.2", "pinia": "^2.1.7", "qs": "^6.12.0", - "sonic-weave": "github:xenharmonic-devs/sonic-weave#v0.0.21", + "sonic-weave": "github:xenharmonic-devs/sonic-weave#v0.0.22", "sw-synth": "^0.1.0", "temperaments": "^0.5.3", "values.js": "^2.1.1", "vue": "^3.3.4", "vue-router": "^4.3.0", "webmidi": "^3.1.8", - "xen-dev-utils": "^0.2.9", + "xen-dev-utils": "^0.3.0", "xen-midi": "^0.2.0" }, "devDependencies": { @@ -3778,6 +3778,18 @@ "url": "https://github.com/sponsors/frostburn" } }, + "node_modules/ji-lattice/node_modules/xen-dev-utils": { + "version": "0.2.9", + "resolved": "https://registry.npmjs.org/xen-dev-utils/-/xen-dev-utils-0.2.9.tgz", + "integrity": "sha512-ngs85djTa5MH9yMomyFg1ZK1eETgtaG6FN5ZvDazyBbGmShuK/gOEWGRemHqm+I2zp3lOGbXlEU/M4SwYl3HLA==", + "engines": { + "node": ">=10.6.0" + }, + "funding": { + "type": "github", + "url": "https://github.com/sponsors/frostburn" + } + }, "node_modules/joi": { "version": "17.12.3", "resolved": "https://registry.npmjs.org/joi/-/joi-17.12.3.tgz", @@ -4380,6 +4392,18 @@ "url": "https://github.com/sponsors/frostburn" } }, + "node_modules/moment-of-symmetry/node_modules/xen-dev-utils": { + "version": "0.2.9", + "resolved": "https://registry.npmjs.org/xen-dev-utils/-/xen-dev-utils-0.2.9.tgz", + "integrity": "sha512-ngs85djTa5MH9yMomyFg1ZK1eETgtaG6FN5ZvDazyBbGmShuK/gOEWGRemHqm+I2zp3lOGbXlEU/M4SwYl3HLA==", + "engines": { + "node": ">=10.6.0" + }, + "funding": { + "type": "github", + "url": "https://github.com/sponsors/frostburn" + } + }, "node_modules/ms": { "version": "2.1.2", "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.2.tgz", @@ -5443,12 +5467,12 @@ } }, "node_modules/sonic-weave": { - "version": "0.0.21", - "resolved": "git+ssh://git@github.com/xenharmonic-devs/sonic-weave.git#cc3ac1b25ad8d2289920df4b000f719b5c3439b1", + "version": "0.0.22", + "resolved": "git+ssh://git@github.com/xenharmonic-devs/sonic-weave.git#afd84002275dcd1e112a06694966ce8a1596a221", "license": "MIT", "dependencies": { "moment-of-symmetry": "^0.4.2", - "xen-dev-utils": "^0.2.9" + "xen-dev-utils": "^0.3.0" }, "bin": { "sonic-weave": "bin/sonic-weave.js" @@ -5770,6 +5794,18 @@ "url": "https://github.com/sponsors/frostburn" } }, + "node_modules/temperaments/node_modules/xen-dev-utils": { + "version": "0.2.9", + "resolved": "https://registry.npmjs.org/xen-dev-utils/-/xen-dev-utils-0.2.9.tgz", + "integrity": "sha512-ngs85djTa5MH9yMomyFg1ZK1eETgtaG6FN5ZvDazyBbGmShuK/gOEWGRemHqm+I2zp3lOGbXlEU/M4SwYl3HLA==", + "engines": { + "node": ">=10.6.0" + }, + "funding": { + "type": "github", + "url": "https://github.com/sponsors/frostburn" + } + }, "node_modules/text-table": { "version": "0.2.0", "resolved": "https://registry.npmjs.org/text-table/-/text-table-0.2.0.tgz", @@ -6580,9 +6616,9 @@ } }, "node_modules/xen-dev-utils": { - "version": "0.2.9", - "resolved": "https://registry.npmjs.org/xen-dev-utils/-/xen-dev-utils-0.2.9.tgz", - "integrity": "sha512-ngs85djTa5MH9yMomyFg1ZK1eETgtaG6FN5ZvDazyBbGmShuK/gOEWGRemHqm+I2zp3lOGbXlEU/M4SwYl3HLA==", + "version": "0.3.0", + "resolved": "https://registry.npmjs.org/xen-dev-utils/-/xen-dev-utils-0.3.0.tgz", + "integrity": "sha512-yyAT+9fXeZ88JDGslx8MAc5tQOkXKaPKk9+9f3/w4V+tEM+U5aTwH0oy81Muv+UXUX/uBwe0ufIHMyIHeaIDQw==", "engines": { "node": ">=10.6.0" }, @@ -6604,6 +6640,18 @@ "url": "https://github.com/sponsors/frostburn" } }, + "node_modules/xen-midi/node_modules/xen-dev-utils": { + "version": "0.2.9", + "resolved": "https://registry.npmjs.org/xen-dev-utils/-/xen-dev-utils-0.2.9.tgz", + "integrity": "sha512-ngs85djTa5MH9yMomyFg1ZK1eETgtaG6FN5ZvDazyBbGmShuK/gOEWGRemHqm+I2zp3lOGbXlEU/M4SwYl3HLA==", + "engines": { + "node": ">=10.6.0" + }, + "funding": { + "type": "github", + "url": "https://github.com/sponsors/frostburn" + } + }, "node_modules/xml-name-validator": { "version": "4.0.0", "resolved": "https://registry.npmjs.org/xml-name-validator/-/xml-name-validator-4.0.0.tgz", diff --git a/package.json b/package.json index dc374263..9a6b1603 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "scale-workshop", - "version": "3.0.0-beta.16", + "version": "3.0.0-beta.17", "scripts": { "dev": "vite", "build": "run-p type-check \"build-only {@}\" --", @@ -21,14 +21,14 @@ "moment-of-symmetry": "^0.4.2", "pinia": "^2.1.7", "qs": "^6.12.0", - "sonic-weave": "github:xenharmonic-devs/sonic-weave#v0.0.21", + "sonic-weave": "github:xenharmonic-devs/sonic-weave#v0.0.22", "sw-synth": "^0.1.0", "temperaments": "^0.5.3", "values.js": "^2.1.1", "vue": "^3.3.4", "vue-router": "^4.3.0", "webmidi": "^3.1.8", - "xen-dev-utils": "^0.2.9", + "xen-dev-utils": "^0.3.0", "xen-midi": "^0.2.0" }, "devDependencies": { diff --git a/src/stores/scale.ts b/src/stores/scale.ts index a6bf7e87..663ba6fe 100644 --- a/src/stores/scale.ts +++ b/src/stores/scale.ts @@ -395,11 +395,11 @@ export const useScaleStore = defineStore('scale', () => { ) } else if (autoColors.value === 'cents') { colors.value = intervals.map( - (interval) => interval.color?.value ?? centsColor(interval).value + (interval) => interval.color?.value ?? centsColor.bind(ev)(interval).value ) } else { colors.value = intervals.map( - (interval) => interval.color?.value ?? factorColor(interval).value + (interval) => interval.color?.value ?? factorColor.bind(ev)(interval).value ) } labels.value = intervals.map((interval) => interval.label || name(interval))