Comparing version 0.8.1 to 0.8.2
import { NumberFormatOptions, RoundingStrategy } from './types'; | ||
export interface ApproximateEqualityThreshold { | ||
@@ -3,0 +4,0 @@ /** |
@@ -1,2 +0,1 @@ | ||
/// <reference path="types.d.ts" /> | ||
export * from './Unit.ts'; | ||
@@ -3,0 +2,0 @@ export * from './UnitSystem.ts'; |
@@ -1,5 +0,6 @@ | ||
import type Fraction from 'fraction.js'; | ||
import type { Unit } from './Unit.ts'; | ||
import type { BaseUnitDefinition, DerivedUnitDefinition, FactorDefinition, QuantityFormatOptions, UnitFormatPart } from './types'; | ||
import { ApproximateEqualityThreshold } from './float.ts'; | ||
import { BaseUnitDefinition, DerivedUnitDefinition, FactorDefinition, QuantityFormatOptions, UnitFormatPart } from './types'; | ||
import { Unit } from './Unit.ts'; | ||
import { default as Fraction } from 'fraction.js'; | ||
export declare class Quantity<U extends Record<string, BaseUnitDefinition>, F extends Record<string, FactorDefinition>, D extends Record<string, DerivedUnitDefinition>> { | ||
@@ -6,0 +7,0 @@ readonly value: number; |
@@ -0,3 +1,4 @@ | ||
import { BaseUnitDefinition, FactorDefinition } from './types.ts'; | ||
import { UnitSystem } from './UnitSystem.ts'; | ||
import type { BaseUnitDefinition, FactorDefinition } from './types.ts'; | ||
type TDict<Keys extends string, T> = Record<Keys, T>; | ||
@@ -4,0 +5,0 @@ type FactorDict<Keys extends string> = TDict<Keys, FactorDefinition>; |
@@ -1,2 +0,3 @@ | ||
import Fraction from 'fraction.js'; | ||
import { default as Fraction } from 'fraction.js'; | ||
export interface BaseUnitDefinition { | ||
@@ -3,0 +4,0 @@ } |
@@ -1,5 +0,6 @@ | ||
import Fraction from 'fraction.js'; | ||
import { ApproximateEqualityThreshold } from './float.ts'; | ||
import { BaseUnitDefinition, DerivedUnitDefinition, FactorDefinition, UnitFormatOptions, UnitFormatPart } from './types.ts'; | ||
import { UnitSystem } from './UnitSystem.ts'; | ||
import type { BaseUnitDefinition, DerivedUnitDefinition, FactorDefinition, UnitFormatOptions, UnitFormatPart } from './types.ts'; | ||
import { ApproximateEqualityThreshold } from './float.ts'; | ||
import { default as Fraction } from 'fraction.js'; | ||
export declare const UnityFactor: FactorDefinition; | ||
@@ -6,0 +7,0 @@ export declare class Unit<U extends Record<string, BaseUnitDefinition>, F extends Record<string, FactorDefinition>, D extends Record<string, DerivedUnitDefinition>> { |
@@ -0,3 +1,4 @@ | ||
import { BaseUnitDefinition, DerivedUnitDefinition, FactorDefinition } from './types'; | ||
import { Unit } from './Unit.ts'; | ||
import type { BaseUnitDefinition, DerivedUnitDefinition, FactorDefinition } from './types'; | ||
export type BaseUnitsOf<S> = S extends UnitSystem<infer U, infer F, infer D> ? U : never; | ||
@@ -4,0 +5,0 @@ export type FactorsOf<S> = S extends UnitSystem<infer U, infer F, infer D> ? F : never; |
@@ -1,3 +0,4 @@ | ||
import Fraction from 'fraction.js'; | ||
import { FactorDefinition } from './types.ts'; | ||
import { default as Fraction } from 'fraction.js'; | ||
export declare const divideFactors: (a: Readonly<FactorDefinition>, b: Readonly<FactorDefinition>) => number; | ||
@@ -4,0 +5,0 @@ export declare const normalizeFactor: (factor: Readonly<FactorDefinition>) => FactorDefinition; |
{ | ||
"name": "unitlib", | ||
"version": "0.8.1", | ||
"description": "A unit library", | ||
"repository": { | ||
"type": "git", | ||
"url": "git+https://github.com/RisaI/unitlib.git" | ||
}, | ||
"keywords": [ | ||
"units", | ||
"math", | ||
"format" | ||
], | ||
"author": "Richard Ivánek", | ||
"license": "MIT", | ||
"bugs": { | ||
"url": "https://github.com/RisaI/unitlib/issues" | ||
}, | ||
"homepage": "https://github.com/RisaI/unitlib#readme", | ||
"module": "dist/", | ||
"types": "dist/index.d.ts", | ||
"exports": { | ||
".": { | ||
"types": "./dist/index.d.ts", | ||
"import": "./dist/index.mjs" | ||
"name": "unitlib", | ||
"version": "0.8.2", | ||
"description": "A unit library", | ||
"type": "module", | ||
"repository": { | ||
"type": "git", | ||
"url": "git+https://github.com/RisaI/unitlib.git" | ||
}, | ||
"./systems": { | ||
"types": "./dist/systems.d.ts", | ||
"import": "./dist/systems.mjs" | ||
"keywords": [ | ||
"units", | ||
"math", | ||
"format" | ||
], | ||
"author": "Richard Ivánek", | ||
"license": "MIT", | ||
"bugs": { | ||
"url": "https://github.com/RisaI/unitlib/issues" | ||
}, | ||
"homepage": "https://github.com/RisaI/unitlib#readme", | ||
"module": "dist/", | ||
"types": "dist/index.d.ts", | ||
"exports": { | ||
".": { | ||
"types": "./dist/index.d.ts", | ||
"import": "./dist/index.mjs" | ||
}, | ||
"./systems": { | ||
"types": "./dist/systems.d.ts", | ||
"import": "./dist/systems.mjs" | ||
} | ||
}, | ||
"scripts": { | ||
"test": "bun test", | ||
"build": "vite build", | ||
"dev": "vite dev" | ||
}, | ||
"devDependencies": { | ||
"@types/bun": "latest", | ||
"console": "^0.7.2", | ||
"http-server": "^14.1.1", | ||
"prettier": "^3.2.5", | ||
"typescript": "^5.4.5", | ||
"vite": "^5.2.10", | ||
"vite-plugin-dts": "^3.8.3" | ||
}, | ||
"dependencies": { | ||
"yeet-ts": "^1.0.3" | ||
}, | ||
"peerDependencies": { | ||
"fraction.js": "^4.2.1" | ||
} | ||
}, | ||
"devDependencies": { | ||
"@types/bun": "latest", | ||
"console": "^0.7.2", | ||
"http-server": "^14.1.1", | ||
"prettier": "^3.0.3", | ||
"typescript": "^5.2.2", | ||
"vite": "^4.4.9", | ||
"vite-plugin-dts": "^3.5.3" | ||
}, | ||
"dependencies": { | ||
"yeet-ts": "^1.0.3" | ||
}, | ||
"peerDependencies": { | ||
"fraction.js": "^4.2.1" | ||
}, | ||
"scripts": { | ||
"test": "bun test", | ||
"build": "vite build", | ||
"dev": "vite dev" | ||
} | ||
} |
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
37989
Yes
1019