Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
[submodule "concat-files"]
path = concat-files
url = https://github.com/qudtlib/concat-files
3 changes: 2 additions & 1 deletion .prettierignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
/**/dist/*
/svelte-test/**
/**/tmp/**
/**/tmp/**
/**/coverage/**
19 changes: 19 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,25 @@ This Changelog contains the changes for all packages of this monorepo, which all

## Unreleased

### Changed

- Upgrade to QUDT 3.1.4
- Calculation of scalings and factor units now happens in QUDT (see PR [1129](https://github.com/qudt/qudt-public-repo/pull/1129))
However, a few things have changed:
- rename `qudt:isScalingOf` to `qudt:scalingOf`
- rename `qudt:factorUnit/qudt:unit` to `qudt:hasFactorUnit/qudt:hasUnit`
- Currency units have changed:
- they were moved back into the graph 'http://qudt.org/vocab/unit/'
- their localnames have received the prefix `CCY_`
- both changes are 'soft', ie, the old way is still available, but deprecated
- for example: `http://qudt.org/vocab/currency/EUR` is now `http://qudt.org/vocab/unit/CCY_EUR`.
- QUDTLib makes the change now instead of adopting the deprecation, as there are other breaking changes as well, so upgrading will require work anyway.
- for QUDTLib constants, this means that the pattern `${CurrencyName}_Currency` is dropped in favor of the QUDT style `CCY_${CurrencyName}`, e.g. `Qudt.Units.EUR_Currency` becomes `Qudt.Units.CCY_EUR`
- Many conversion multipliers were changed in QUDT. They now consistently have at most 34 significant digits (ie, BigDecimal's precision of 34). This fixes problems such as the one reported in [Conversion error from MilliSV**PER**HR to MicroSV**PER**HR](https://github.com/qudtlib/qudtlib-java/issues/109).
- scalings of `unit:GM` deserve special mention:
- in the upcoming QUDT release we have `unit:GM qudt:scalingOf unit:KiloGM`, making `qudt:scalingOf` and `qudt:conversionMultiplier` consistent in all cases
- QUDTLib makes the change as well, with the effect that unit factorization does not use `Units.GM` (which probably surprised a few people) for the mass dimension but `Units.KiloGM` (which is what one would expect)

## 6.8.1 - 2024-12-18

### Fixed
Expand Down
8 changes: 6 additions & 2 deletions allunits/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
"module": "dist/mjs/units.js",
"exports": {
".": {
"types": "./dist/index.d.ts",
"import": "./dist/mjs/units.js",
"require": "./dist/cjs/units.js"
}
Expand Down Expand Up @@ -39,7 +40,7 @@
"eslint": "^8.24.0",
"eslint-config-prettier": "^8.5.0",
"eslint-plugin-prettier": "^4.2.1",
"gulp": "^4.0.2",
"gulp": "^5.0.1",
"gulp-typescript": "^6.0.0-alpha.1",
"gulp-uglify": "^3.0.2",
"jest": "^29.2.1",
Expand All @@ -49,6 +50,9 @@
},
"dependencies": {
"@qudtlib/core": "^6.8.1",
"decimal.js": "10.4.2"
"decimal.js": "10.6.0",
"gulp-cli": "3.1.0",
"gulp-sourcemaps": "2.6.5",
"lerna": "8.2.3"
}
}
7 changes: 7 additions & 0 deletions allunits/src/index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
// src/index.ts
// Barrel file exporting all public constants and re-exporting from core for the allunits module.

export * from "@qudtlib/core";

// Export the populated instances
export { Units, QuantityKinds, Prefixes, SystemsOfUnits } from "./units.js";
Loading