Compare commits

..

1 Commits

Author SHA1 Message Date
Tijmen Zwaan 4d7511e121 Convert fraction and timespan into typescript 2026-12-05 07:34:14 +01:00
17 changed files with 138 additions and 92 deletions
+1
View File
@@ -74,6 +74,7 @@
"jsdoc-json": "^2.0.2",
"lerna": "^8.1.9",
"prettier": "^3.4.2",
"typescript": "^6.0.2",
"vite-plugin-bundle-audioworklet": "workspace:*",
"vitest": "^3.0.4"
},
+1 -1
View File
@@ -5,7 +5,7 @@ This program is free software: you can redistribute it and/or modify it under th
*/
import Hap from './hap.mjs';
import Fraction from './fraction.mjs';
import Fraction from './fraction.mts';
import { Pattern, isPattern } from './pattern.mjs';
/**
+1 -1
View File
@@ -4,7 +4,7 @@ Copyright (C) 2026 Strudel contributors - see <https://codeberg.org/uzu/strudel/
This program is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more details. You should have received a copy of the GNU Affero General Public License along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
import Fraction, { lcm } from './fraction.mjs';
import Fraction, { lcm } from './fraction.mts';
import { getCalculateSteps, Pattern } from './pattern.mjs';
import { reify, silence, pure } from './atoms.mjs';
import { _mod, flatten, curry } from './util.mjs';
+1 -1
View File
@@ -4,7 +4,7 @@ Copyright (C) 2022 Strudel contributors - see <https://codeberg.org/uzu/strudel/
This program is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more details. You should have received a copy of the GNU Affero General Public License along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
import Fraction, { gcd } from './fraction.mjs';
import Fraction, { gcd } from './fraction.mts';
/**
* Intended for a debugging, drawLine renders the pattern as a string, where each character represents the same time span.
+1 -1
View File
@@ -15,7 +15,7 @@ import { register } from './register.mjs';
import { timeCat } from './stepwise.mjs';
import { _morph } from './time-structure.mjs';
import { rotate, flatten, splitAt, zipWith } from './util.mjs';
import Fraction from './fraction.mjs';
import Fraction from './fraction.mts';
const left = function (n, x) {
const [ons, offs] = n;
@@ -1,13 +1,43 @@
/*
fraction.mjs - <short description TODO>
Copyright (C) 2022 Strudel contributors - see <https://codeberg.org/uzu/strudel/src/branch/main/packages/core/fraction.mjs>
fraction.mts - <short description TODO>
Copyright (C) 2022 Strudel contributors - see <https://codeberg.org/uzu/strudel/src/branch/main/packages/core/fraction.mts>
This program is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more details. You should have received a copy of the GNU Affero General Public License along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
import Fraction from 'fraction.js';
import { TimeSpan } from './timespan.mjs';
import { TimeSpan } from './timespan.mts';
import { removeUndefineds } from './util.mjs';
declare module 'fraction.js' {
export interface Fraction {
sam(): Fraction;
nextSam(): Fraction;
wholeCycle(): TimeSpan;
cyclePos(): Fraction;
eq(other: FractionArg): boolean;
ne(other: Fraction): boolean;
max(other: Fraction): Fraction;
maximum(...others: Fraction[]): Fraction;
min(other: Fraction): Fraction;
mulmaybe(other: FractionArg): Fraction;
mulmaybe(other: undefined): undefined;
mulmaybe(other: FractionArg | undefined): Fraction | undefined;
divmaybe(other: FractionArg): Fraction;
divmaybe(other: undefined): undefined;
divmaybe(other: FractionArg | undefined): Fraction | undefined;
submaybe(other: FractionArg): Fraction;
submaybe(other: undefined): undefined;
submaybe(other: FractionArg | undefined): Fraction | undefined;
addmaybe(other: FractionArg): Fraction;
addmaybe(other: undefined): undefined;
addmaybe(other: FractionArg | undefined): Fraction | undefined;
show(): `${number}/${number}`;
or(other: FractionArg): FractionArg;
}
}
type FractionArg = Fraction | number | string;
// Returns the start of the cycle.
Fraction.prototype.sam = function () {
return this.floor();
@@ -65,32 +95,32 @@ Fraction.prototype.min = function (other) {
return this.lt(other) ? this : other;
};
Fraction.prototype.mulmaybe = function (other) {
Fraction.prototype.mulmaybe = function (this: Fraction, other) {
return other !== undefined ? this.mul(other) : undefined;
};
} as Fraction['mulmaybe'];
Fraction.prototype.divmaybe = function (other) {
Fraction.prototype.divmaybe = function (this: Fraction, other) {
return other !== undefined ? this.div(other) : undefined;
};
} as Fraction['divmaybe'];
Fraction.prototype.addmaybe = function (other) {
Fraction.prototype.addmaybe = function (this: Fraction, other) {
return other !== undefined ? this.add(other) : undefined;
};
} as Fraction['addmaybe'];
Fraction.prototype.submaybe = function (other) {
Fraction.prototype.submaybe = function (this: Fraction, other) {
return other !== undefined ? this.sub(other) : undefined;
};
} as Fraction['submaybe'];
Fraction.prototype.show = function (/* excludeWhole = false */) {
Fraction.prototype.show = function (this: Fraction /* excludeWhole = false */) {
// return this.toFraction(excludeWhole);
return this.s * this.n + '/' + this.d;
};
} as Fraction['show'];
Fraction.prototype.or = function (other) {
return this.eq(0) ? other : this;
};
const fraction = (n) => {
const fraction = (n: FractionArg) => {
if (typeof n === 'number') {
/*
https://github.com/infusion/Fraction.js/#doubles
@@ -102,10 +132,10 @@ const fraction = (n) => {
*/
// n = String(n); // this is actually faster but imprecise...
}
return Fraction(n);
return new Fraction(n);
};
export const gcd = (...fractions) => {
export const gcd = (...fractions: Fraction[]) => {
fractions = removeUndefineds(fractions);
if (fractions.length === 0) {
return undefined;
@@ -114,7 +144,7 @@ export const gcd = (...fractions) => {
return fractions.reduce((gcd, fraction) => gcd.gcd(fraction), fraction(1));
};
export const lcm = (...fractions) => {
export const lcm = (...fractions: Fraction[]) => {
fractions = removeUndefineds(fractions);
if (fractions.length === 0) {
return undefined;
@@ -126,10 +156,12 @@ export const lcm = (...fractions) => {
);
};
export const isFraction = (x) => x instanceof Fraction;
export const isFraction = (x: any): x is Fraction => x instanceof Fraction;
fraction._original = Fraction;
export type { Fraction };
export default fraction;
// "If you concern performance, cache Fraction.js objects and pass arrays/objects.“
+1 -1
View File
@@ -3,7 +3,7 @@ hap.mjs - <short description TODO>
Copyright (C) 2022 Strudel contributors - see <https://codeberg.org/uzu/strudel/src/branch/main/packages/core/hap.mjs>
This program is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more details. You should have received a copy of the GNU Affero General Public License along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
import Fraction from './fraction.mjs';
import Fraction from './fraction.mts';
import { stringifyValues } from './util.mjs';
/**
+2 -2
View File
@@ -5,7 +5,7 @@ This program is free software: you can redistribute it and/or modify it under th
*/
export * from './euclid.mjs';
import Fraction, { lcm } from './fraction.mjs';
import Fraction, { lcm } from './fraction.mts';
import { logger } from './logger.mjs';
export { Fraction, lcm };
export * from './hap.mjs';
@@ -24,7 +24,7 @@ export * from './deprecated.mjs';
export * from './pick.mjs';
export * from './signal.mjs';
export * from './state.mjs';
export * from './timespan.mjs';
export * from './timespan.mts';
export * from './util.mjs';
export { default as drawLine } from './drawLine.mjs';
// below won't work with runtime.mjs (json import fails)
+1 -1
View File
@@ -4,7 +4,7 @@ Copyright (C) 2026 Strudel contributors - see <https://codeberg.org/uzu/strudel/
This program is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more details. You should have received a copy of the GNU Affero General Public License along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
import { isFraction } from './fraction.mjs';
import { isFraction } from './fraction.mts';
import { Pattern } from './pattern.mjs';
import { reify } from './atoms.mjs';
import { sequence } from './composers.mjs';
+2 -2
View File
@@ -4,8 +4,8 @@ Copyright (C) 2026 Strudel contributors - see <https://codeberg.org/uzu/strudel/
This program is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more details. You should have received a copy of the GNU Affero General Public License along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
import TimeSpan from './timespan.mjs';
import Fraction, { lcm } from './fraction.mjs';
import TimeSpan from './timespan.mts';
import Fraction, { lcm } from './fraction.mts';
import Hap from './hap.mjs';
import State from './state.mjs';
+2 -2
View File
@@ -4,8 +4,8 @@ Copyright (C) 2024 Strudel contributors - see <https://codeberg.org/uzu/strudel/
This program is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more details. You should have received a copy of the GNU Affero General Public License along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
import Fraction from './fraction.mjs';
import TimeSpan from './timespan.mjs';
import Fraction from './fraction.mts';
import TimeSpan from './timespan.mts';
import { Hap } from './hap.mjs';
import { Pattern, isPattern } from './pattern.mjs';
import { pure, reify, silence } from './atoms.mjs';
+2 -2
View File
@@ -4,8 +4,8 @@ Copyright (C) 2026 Strudel contributors - see <https://codeberg.org/uzu/strudel/
This program is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more details. You should have received a copy of the GNU Affero General Public License along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
import Fraction, { lcm } from './fraction.mjs';
import TimeSpan from './timespan.mjs';
import Fraction, { lcm } from './fraction.mts';
import TimeSpan from './timespan.mts';
import Hap from './hap.mjs';
import { flatten, uniqsortr, pairs, removeUndefineds } from './util.mjs';
import { Pattern, getCalculateSteps } from './pattern.mjs';
+1 -1
View File
@@ -4,7 +4,7 @@ Copyright (C) 2022 Strudel contributors - see <https://codeberg.org/uzu/strudel/
This program is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more details. You should have received a copy of the GNU Affero General Public License along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
import Fraction, { gcd } from '../fraction.mjs';
import Fraction, { gcd } from '../fraction.mts';
import { describe, it, expect } from 'vitest';
describe('gcd', () => {
+2 -2
View File
@@ -4,8 +4,8 @@ Copyright (C) 2026 Strudel contributors - see <https://codeberg.org/uzu/strudel/
This program is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more details. You should have received a copy of the GNU Affero General Public License along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
import TimeSpan from './timespan.mjs';
import Fraction from './fraction.mjs';
import TimeSpan from './timespan.mts';
import Fraction from './fraction.mts';
import Hap from './hap.mjs';
import { Pattern, getCalculateSteps } from './pattern.mjs';
import { silence, nothing, pure, reify } from './atoms.mjs';
@@ -1,19 +1,22 @@
/*
timespan.mjs - <short description TODO>
Copyright (C) 2022 Strudel contributors - see <https://codeberg.org/uzu/strudel/src/branch/main/packages/core/timespan.mjs>
timespan.mts - <short description TODO>
Copyright (C) 2022 Strudel contributors - see <https://codeberg.org/uzu/strudel/src/branch/main/packages/core/timespan.mts>
This program is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more details. You should have received a copy of the GNU Affero General Public License along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
import Fraction from './fraction.mjs';
import fraction, { type Fraction } from './fraction.mts';
export class TimeSpan {
constructor(begin, end) {
this.begin = Fraction(begin);
this.end = Fraction(end);
begin: Fraction;
end: Fraction;
constructor(begin: Fraction, end: Fraction) {
this.begin = fraction(begin);
this.end = fraction(end);
}
get spanCycles() {
const spans = [];
const spans: TimeSpan[] = [];
var begin = this.begin;
const end = this.end;
const end_sam = end.sam();
@@ -52,17 +55,17 @@ export class TimeSpan {
return new TimeSpan(b, e);
}
withTime(func_time) {
withTime(func_time: (f: Fraction) => Fraction) {
// Applies given function to both the begin and end time of the timespan"""
return new TimeSpan(func_time(this.begin), func_time(this.end));
}
withEnd(func_time) {
withEnd(func_time: (f: Fraction) => Fraction) {
// Applies given function to the end time of the timespan"""
return new TimeSpan(this.begin, func_time(this.end));
}
withCycle(func_time) {
withCycle(func_time: (f: Fraction) => Fraction) {
// Like withTime, but time is relative to relative to the cycle (i.e. the
// sam of the start of the timespan)
const sam = this.begin.sam();
@@ -71,7 +74,7 @@ export class TimeSpan {
return new TimeSpan(b, e);
}
intersection(other) {
intersection(other: TimeSpan) {
// Intersection of two timespans, returns undefined if they don't intersect.
const intersect_begin = this.begin.max(other.begin);
const intersect_end = this.end.min(other.end);
@@ -92,7 +95,7 @@ export class TimeSpan {
return new TimeSpan(intersect_begin, intersect_end);
}
intersection_e(other) {
intersection_e(other: TimeSpan) {
// Like 'sect', but raises an exception if the timespans don't intersect.
const result = this.intersection(other);
if (result == undefined) {
@@ -102,15 +105,15 @@ export class TimeSpan {
}
midpoint() {
return this.begin.add(this.duration.div(Fraction(2)));
return this.begin.add(this.duration.div(fraction(2)));
}
equals(other) {
equals(other: TimeSpan) {
return this.begin.equals(other.begin) && this.end.equals(other.end);
}
show() {
return this.begin.show() + ' → ' + this.end.show();
show(): `${number}/${number} → ${number}/${number}` {
return `${this.begin.show()} → ${this.end.show()}`;
}
}
+49 -39
View File
@@ -86,7 +86,7 @@ importers:
version: 2.31.0(eslint@9.19.0(jiti@2.4.2))
eslint-plugin-jsdoc:
specifier: ^65.5.3
version: 65.5.3(eslint@9.19.0(jiti@2.4.2))(typescript@5.7.3)
version: 65.5.3(eslint@9.19.0(jiti@2.4.2))(typescript@6.0.3)
events:
specifier: ^3.3.0
version: 3.3.0
@@ -105,6 +105,9 @@ importers:
prettier:
specifier: ^3.4.2
version: 3.4.2
typescript:
specifier: ^6.0.2
version: 6.0.3
vite-plugin-bundle-audioworklet:
specifier: workspace:*
version: link:packages/vite-plugin-bundle-audioworklet
@@ -796,10 +799,10 @@ importers:
version: 5.20.0
'@astro-community/astro-embed-youtube':
specifier: ^0.5.6
version: 0.5.6(astro@5.1.9(@types/node@22.10.10)(jiti@2.4.2)(lightningcss@1.29.1)(rollup@2.79.2)(terser@5.37.0)(typescript@5.7.3)(yaml@2.7.0))
version: 0.5.6(astro@5.1.9(@types/node@22.10.10)(jiti@2.4.2)(lightningcss@1.29.1)(rollup@2.79.2)(terser@5.37.0)(typescript@6.0.3)(yaml@2.7.0))
'@astrojs/mdx':
specifier: ^4.0.7
version: 4.0.7(astro@5.1.9(@types/node@22.10.10)(jiti@2.4.2)(lightningcss@1.29.1)(rollup@2.79.2)(terser@5.37.0)(typescript@5.7.3)(yaml@2.7.0))
version: 4.0.7(astro@5.1.9(@types/node@22.10.10)(jiti@2.4.2)(lightningcss@1.29.1)(rollup@2.79.2)(terser@5.37.0)(typescript@6.0.3)(yaml@2.7.0))
'@astrojs/react':
specifier: ^4.1.6
version: 4.1.6(@types/node@22.10.10)(@types/react-dom@19.0.3(@types/react@19.0.8))(@types/react@19.0.8)(jiti@2.4.2)(lightningcss@1.29.1)(react-dom@19.0.0(react@19.0.0))(react@19.0.0)(terser@5.37.0)(yaml@2.7.0)
@@ -808,7 +811,7 @@ importers:
version: 4.0.11
'@astrojs/tailwind':
specifier: ^5.1.5
version: 5.1.5(astro@5.1.9(@types/node@22.10.10)(jiti@2.4.2)(lightningcss@1.29.1)(rollup@2.79.2)(terser@5.37.0)(typescript@5.7.3)(yaml@2.7.0))(tailwindcss@3.4.17)
version: 5.1.5(astro@5.1.9(@types/node@22.10.10)(jiti@2.4.2)(lightningcss@1.29.1)(rollup@2.79.2)(terser@5.37.0)(typescript@6.0.3)(yaml@2.7.0))(tailwindcss@3.4.17)
'@codemirror/commands':
specifier: 'catalog:'
version: 6.8.0
@@ -943,7 +946,7 @@ importers:
version: 19.0.3(@types/react@19.0.8)
astro:
specifier: ^5.1.9
version: 5.1.9(@types/node@22.10.10)(jiti@2.4.2)(lightningcss@1.29.1)(rollup@2.79.2)(terser@5.37.0)(typescript@5.7.3)(yaml@2.7.0)
version: 5.1.9(@types/node@22.10.10)(jiti@2.4.2)(lightningcss@1.29.1)(rollup@2.79.2)(terser@5.37.0)(typescript@6.0.3)(yaml@2.7.0)
claviature:
specifier: ^0.1.0
version: 0.1.0
@@ -992,7 +995,7 @@ importers:
devDependencies:
'@vite-pwa/astro':
specifier: ^0.5.0
version: 0.5.0(astro@5.1.9(@types/node@22.10.10)(jiti@2.4.2)(lightningcss@1.29.1)(rollup@2.79.2)(terser@5.37.0)(typescript@5.7.3)(yaml@2.7.0))(vite-plugin-pwa@0.21.1(vite@6.0.11(@types/node@22.10.10)(jiti@2.4.2)(lightningcss@1.29.1)(terser@5.37.0)(yaml@2.7.0))(workbox-build@7.0.0(@types/babel__core@7.20.5))(workbox-window@7.3.0))
version: 0.5.0(astro@5.1.9(@types/node@22.10.10)(jiti@2.4.2)(lightningcss@1.29.1)(rollup@2.79.2)(terser@5.37.0)(typescript@6.0.3)(yaml@2.7.0))(vite-plugin-pwa@0.21.1(vite@6.0.11(@types/node@22.10.10)(jiti@2.4.2)(lightningcss@1.29.1)(terser@5.37.0)(yaml@2.7.0))(workbox-build@7.0.0(@types/babel__core@7.20.5))(workbox-window@7.3.0))
html-escaper:
specifier: ^3.0.3
version: 3.0.3
@@ -7652,6 +7655,11 @@ packages:
engines: {node: '>=14.17'}
hasBin: true
typescript@6.0.3:
resolution: {integrity: sha512-y2TvuxSZPDyQakkFRPZHKFm+KKVqIisdg9/CZwm9ftvKXLP8NRWj38/ODjNbr43SsoXqNuAisEf1GdCxqWcdBw==}
engines: {node: '>=14.17'}
hasBin: true
uc.micro@2.1.0:
resolution: {integrity: sha512-ARDJmphmdvUk6Glw7y9DQ2bFkKBHwQHLi2lsaH6PPmz/Ka9sFOBsBluozhDltWmnv9u/cF6Rt87znRTPV+yp/A==}
@@ -8400,9 +8408,9 @@ snapshots:
jsonpointer: 5.0.1
leven: 3.1.0
'@astro-community/astro-embed-youtube@0.5.6(astro@5.1.9(@types/node@22.10.10)(jiti@2.4.2)(lightningcss@1.29.1)(rollup@2.79.2)(terser@5.37.0)(typescript@5.7.3)(yaml@2.7.0))':
'@astro-community/astro-embed-youtube@0.5.6(astro@5.1.9(@types/node@22.10.10)(jiti@2.4.2)(lightningcss@1.29.1)(rollup@2.79.2)(terser@5.37.0)(typescript@6.0.3)(yaml@2.7.0))':
dependencies:
astro: 5.1.9(@types/node@22.10.10)(jiti@2.4.2)(lightningcss@1.29.1)(rollup@2.79.2)(terser@5.37.0)(typescript@5.7.3)(yaml@2.7.0)
astro: 5.1.9(@types/node@22.10.10)(jiti@2.4.2)(lightningcss@1.29.1)(rollup@2.79.2)(terser@5.37.0)(typescript@6.0.3)(yaml@2.7.0)
lite-youtube-embed: 0.3.3
'@astrojs/compiler@2.10.3': {}
@@ -8433,12 +8441,12 @@ snapshots:
transitivePeerDependencies:
- supports-color
'@astrojs/mdx@4.0.7(astro@5.1.9(@types/node@22.10.10)(jiti@2.4.2)(lightningcss@1.29.1)(rollup@2.79.2)(terser@5.37.0)(typescript@5.7.3)(yaml@2.7.0))':
'@astrojs/mdx@4.0.7(astro@5.1.9(@types/node@22.10.10)(jiti@2.4.2)(lightningcss@1.29.1)(rollup@2.79.2)(terser@5.37.0)(typescript@6.0.3)(yaml@2.7.0))':
dependencies:
'@astrojs/markdown-remark': 6.0.2
'@mdx-js/mdx': 3.1.0(acorn@8.14.0)
acorn: 8.14.0
astro: 5.1.9(@types/node@22.10.10)(jiti@2.4.2)(lightningcss@1.29.1)(rollup@2.79.2)(terser@5.37.0)(typescript@5.7.3)(yaml@2.7.0)
astro: 5.1.9(@types/node@22.10.10)(jiti@2.4.2)(lightningcss@1.29.1)(rollup@2.79.2)(terser@5.37.0)(typescript@6.0.3)(yaml@2.7.0)
es-module-lexer: 1.6.0
estree-util-visit: 2.0.0
hast-util-to-html: 9.0.4
@@ -8484,9 +8492,9 @@ snapshots:
fast-xml-parser: 4.5.1
kleur: 4.1.5
'@astrojs/tailwind@5.1.5(astro@5.1.9(@types/node@22.10.10)(jiti@2.4.2)(lightningcss@1.29.1)(rollup@2.79.2)(terser@5.37.0)(typescript@5.7.3)(yaml@2.7.0))(tailwindcss@3.4.17)':
'@astrojs/tailwind@5.1.5(astro@5.1.9(@types/node@22.10.10)(jiti@2.4.2)(lightningcss@1.29.1)(rollup@2.79.2)(terser@5.37.0)(typescript@6.0.3)(yaml@2.7.0))(tailwindcss@3.4.17)':
dependencies:
astro: 5.1.9(@types/node@22.10.10)(jiti@2.4.2)(lightningcss@1.29.1)(rollup@2.79.2)(terser@5.37.0)(typescript@5.7.3)(yaml@2.7.0)
astro: 5.1.9(@types/node@22.10.10)(jiti@2.4.2)(lightningcss@1.29.1)(rollup@2.79.2)(terser@5.37.0)(typescript@6.0.3)(yaml@2.7.0)
autoprefixer: 10.4.20(postcss@8.5.1)
postcss: 8.5.1
postcss-load-config: 4.0.2(postcss@8.5.1)
@@ -10873,12 +10881,12 @@ snapshots:
dependencies:
'@types/node': 22.10.10
'@typescript-eslint/project-service@8.73.0(typescript@5.7.3)':
'@typescript-eslint/project-service@8.73.0(typescript@6.0.3)':
dependencies:
'@typescript-eslint/tsconfig-utils': 8.73.0(typescript@5.7.3)
'@typescript-eslint/tsconfig-utils': 8.73.0(typescript@6.0.3)
'@typescript-eslint/types': 8.73.0
debug: 4.4.3
typescript: 5.7.3
typescript: 6.0.3
transitivePeerDependencies:
- supports-color
@@ -10887,9 +10895,9 @@ snapshots:
'@typescript-eslint/types': 8.73.0
'@typescript-eslint/visitor-keys': 8.73.0
'@typescript-eslint/tsconfig-utils@8.73.0(typescript@5.7.3)':
'@typescript-eslint/tsconfig-utils@8.73.0(typescript@6.0.3)':
dependencies:
typescript: 5.7.3
typescript: 6.0.3
'@typescript-eslint/types@7.18.0': {}
@@ -10910,29 +10918,29 @@ snapshots:
transitivePeerDependencies:
- supports-color
'@typescript-eslint/typescript-estree@8.73.0(typescript@5.7.3)':
'@typescript-eslint/typescript-estree@8.73.0(typescript@6.0.3)':
dependencies:
'@typescript-eslint/project-service': 8.73.0(typescript@5.7.3)
'@typescript-eslint/tsconfig-utils': 8.73.0(typescript@5.7.3)
'@typescript-eslint/project-service': 8.73.0(typescript@6.0.3)
'@typescript-eslint/tsconfig-utils': 8.73.0(typescript@6.0.3)
'@typescript-eslint/types': 8.73.0
'@typescript-eslint/visitor-keys': 8.73.0
debug: 4.4.3
minimatch: 11.0.9
semver: 7.8.6
tinyglobby: 0.2.17
ts-api-utils: 2.5.0(typescript@5.7.3)
typescript: 5.7.3
ts-api-utils: 2.5.0(typescript@6.0.3)
typescript: 6.0.3
transitivePeerDependencies:
- supports-color
'@typescript-eslint/utils@8.73.0(eslint@9.19.0(jiti@2.4.2))(typescript@5.7.3)':
'@typescript-eslint/utils@8.73.0(eslint@9.19.0(jiti@2.4.2))(typescript@6.0.3)':
dependencies:
'@eslint-community/eslint-utils': 4.10.1(eslint@9.19.0(jiti@2.4.2))
'@typescript-eslint/scope-manager': 8.73.0
'@typescript-eslint/types': 8.73.0
'@typescript-eslint/typescript-estree': 8.73.0(typescript@5.7.3)
'@typescript-eslint/typescript-estree': 8.73.0(typescript@6.0.3)
eslint: 9.19.0(jiti@2.4.2)
typescript: 5.7.3
typescript: 6.0.3
transitivePeerDependencies:
- '@typescript/native'
- supports-color
@@ -10949,9 +10957,9 @@ snapshots:
'@ungap/structured-clone@1.3.0': {}
'@vite-pwa/astro@0.5.0(astro@5.1.9(@types/node@22.10.10)(jiti@2.4.2)(lightningcss@1.29.1)(rollup@2.79.2)(terser@5.37.0)(typescript@5.7.3)(yaml@2.7.0))(vite-plugin-pwa@0.21.1(vite@6.0.11(@types/node@22.10.10)(jiti@2.4.2)(lightningcss@1.29.1)(terser@5.37.0)(yaml@2.7.0))(workbox-build@7.0.0(@types/babel__core@7.20.5))(workbox-window@7.3.0))':
'@vite-pwa/astro@0.5.0(astro@5.1.9(@types/node@22.10.10)(jiti@2.4.2)(lightningcss@1.29.1)(rollup@2.79.2)(terser@5.37.0)(typescript@6.0.3)(yaml@2.7.0))(vite-plugin-pwa@0.21.1(vite@6.0.11(@types/node@22.10.10)(jiti@2.4.2)(lightningcss@1.29.1)(terser@5.37.0)(yaml@2.7.0))(workbox-build@7.0.0(@types/babel__core@7.20.5))(workbox-window@7.3.0))':
dependencies:
astro: 5.1.9(@types/node@22.10.10)(jiti@2.4.2)(lightningcss@1.29.1)(rollup@2.79.2)(terser@5.37.0)(typescript@5.7.3)(yaml@2.7.0)
astro: 5.1.9(@types/node@22.10.10)(jiti@2.4.2)(lightningcss@1.29.1)(rollup@2.79.2)(terser@5.37.0)(typescript@6.0.3)(yaml@2.7.0)
vite-plugin-pwa: 0.21.1(vite@6.0.11(@types/node@22.10.10)(jiti@2.4.2)(lightningcss@1.29.1)(terser@5.37.0)(yaml@2.7.0))(workbox-build@7.0.0(@types/babel__core@7.20.5))(workbox-window@7.3.0)
'@vitejs/plugin-react@4.3.4(vite@6.0.11(@types/node@22.10.10)(jiti@2.4.2)(lightningcss@1.29.1)(terser@5.37.0)(yaml@2.7.0))':
@@ -11253,7 +11261,7 @@ snapshots:
astring@1.9.0: {}
astro@5.1.9(@types/node@22.10.10)(jiti@2.4.2)(lightningcss@1.29.1)(rollup@2.79.2)(terser@5.37.0)(typescript@5.7.3)(yaml@2.7.0):
astro@5.1.9(@types/node@22.10.10)(jiti@2.4.2)(lightningcss@1.29.1)(rollup@2.79.2)(terser@5.37.0)(typescript@6.0.3)(yaml@2.7.0):
dependencies:
'@astrojs/compiler': 2.10.3
'@astrojs/internal-helpers': 0.4.2
@@ -11300,7 +11308,7 @@ snapshots:
semver: 7.6.3
shiki: 1.29.1
tinyexec: 0.3.2
tsconfck: 3.1.4(typescript@5.7.3)
tsconfck: 3.1.4(typescript@6.0.3)
ultrahtml: 1.5.3
unist-util-visit: 5.0.0
unstorage: 1.14.4
@@ -11313,7 +11321,7 @@ snapshots:
yocto-spinner: 0.1.2
zod: 3.24.1
zod-to-json-schema: 3.24.1(zod@3.24.1)
zod-to-ts: 1.2.0(typescript@5.7.3)(zod@3.24.1)
zod-to-ts: 1.2.0(typescript@6.0.3)(zod@3.24.1)
optionalDependencies:
sharp: 0.33.5
transitivePeerDependencies:
@@ -12312,12 +12320,12 @@ snapshots:
- eslint-import-resolver-webpack
- supports-color
eslint-plugin-jsdoc@65.5.3(eslint@9.19.0(jiti@2.4.2))(typescript@5.7.3):
eslint-plugin-jsdoc@65.5.3(eslint@9.19.0(jiti@2.4.2))(typescript@6.0.3):
dependencies:
'@es-joy/escodegen': 5.0.1
'@es-joy/jsdoccomment': 1.2.0
'@es-joy/resolve.exports': 1.2.0
'@typescript-eslint/utils': 8.73.0(eslint@9.19.0(jiti@2.4.2))(typescript@5.7.3)
'@typescript-eslint/utils': 8.73.0(eslint@9.19.0(jiti@2.4.2))(typescript@6.0.3)
are-docs-informative: 0.1.1
comment-parser: 1.4.9
debug: 4.4.3
@@ -12332,7 +12340,7 @@ snapshots:
spdx-expression-parse: 5.0.0
to-valid-identifier: 1.0.0
optionalDependencies:
typescript: 5.7.3
typescript: 6.0.3
transitivePeerDependencies:
- '@typescript/native'
- supports-color
@@ -16310,15 +16318,15 @@ snapshots:
dependencies:
typescript: 5.7.3
ts-api-utils@2.5.0(typescript@5.7.3):
ts-api-utils@2.5.0(typescript@6.0.3):
dependencies:
typescript: 5.7.3
typescript: 6.0.3
ts-interface-checker@0.1.13: {}
tsconfck@3.1.4(typescript@5.7.3):
tsconfck@3.1.4(typescript@6.0.3):
optionalDependencies:
typescript: 5.7.3
typescript: 6.0.3
tsconfig-paths@3.15.0:
dependencies:
@@ -16402,6 +16410,8 @@ snapshots:
typescript@5.7.3: {}
typescript@6.0.3: {}
uc.micro@2.1.0: {}
ufo@1.5.4: {}
@@ -17068,9 +17078,9 @@ snapshots:
dependencies:
zod: 3.24.1
zod-to-ts@1.2.0(typescript@5.7.3)(zod@3.24.1):
zod-to-ts@1.2.0(typescript@6.0.3)(zod@3.24.1):
dependencies:
typescript: 5.7.3
typescript: 6.0.3
zod: 3.24.1
zod@3.24.1: {}
+2 -2
View File
@@ -246,12 +246,12 @@
"getCurrentKeyboardState",
"stringifyValues"
],
"/packages/core/fraction.mjs": [
"/packages/core/fraction.mts": [
"gcd",
"lcm",
"isFraction"
],
"/packages/core/timespan.mjs": [
"/packages/core/timespan.mts": [
"TimeSpan"
],
"/packages/core/hap.mjs": [