From 1320a09df112e56be77bc70c64c544d6bd2785e0 Mon Sep 17 00:00:00 2001 From: Sarah Dayan <5370675+sarahdayan@users.noreply.github.com> Date: Mon, 27 Feb 2023 23:32:06 +0100 Subject: [PATCH] chore: release v2.0.0-alpha.14 (#729) --- CHANGELOG.md | 10 +++++++++ package.json | 2 +- packages/calculator-bigint/package.json | 8 +++---- packages/calculator-number/package.json | 8 +++---- packages/core/package.json | 15 ++++--------- packages/currencies/package.json | 2 +- packages/dinero.js/package.json | 14 ++++++------- website/package.json | 6 +++--- yarn.lock | 28 +++++++++++++++++++++++++ 9 files changed, 59 insertions(+), 34 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 1165da998..8aed7fdea 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,13 @@ +# [2.0.0-alpha.14](/~https://github.com/dinerojs/dinero.js/compare/v2.0.0-alpha.13...v2.0.0-alpha.14) (2023-02-27) + + +### Bug Fixes + +* **isPositive:** return `false` with zero ([#728](/~https://github.com/dinerojs/dinero.js/issues/728)) ([140fe68](/~https://github.com/dinerojs/dinero.js/commit/140fe68ba516ce47a12a01a06a6425c7df5bd455)) +* **up, down, halfUp:** fix handling of numbers close to 0 and rounding of integer results ([#711](/~https://github.com/dinerojs/dinero.js/issues/711)) ([6b30aa0](/~https://github.com/dinerojs/dinero.js/commit/6b30aa09aa5d887cd00170d2659d0bf044081d93)), closes [#710](/~https://github.com/dinerojs/dinero.js/issues/710) [#713](/~https://github.com/dinerojs/dinero.js/issues/713) + + + # [2.0.0-alpha.13](/~https://github.com/dinerojs/dinero.js/compare/v2.0.0-alpha.12...v2.0.0-alpha.13) (2022-12-19) diff --git a/package.json b/package.json index 47521fda6..3e7ec614f 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@dinero.js/monorepo", - "version": "2.0.0-alpha.13", + "version": "2.0.0-alpha.14", "private": true, "license": "MIT", "workspaces": [ diff --git a/packages/calculator-bigint/package.json b/packages/calculator-bigint/package.json index b826b7037..f226a1108 100644 --- a/packages/calculator-bigint/package.json +++ b/packages/calculator-bigint/package.json @@ -1,6 +1,6 @@ { "name": "@dinero.js/calculator-bigint", - "version": "2.0.0-alpha.13", + "version": "2.0.0-alpha.14", "description": "Bigint calculator implementation for Dinero.js", "keywords": [ "money", @@ -29,9 +29,7 @@ "module": "dist/esm/index.js", "source": "src/index.ts", "types": "dist/esm/index.d.ts", - "files": [ - "dist/" - ], + "files": ["dist/"], "scripts": { "build:clean": "rimraf ./{dist,temp}", "build:esm": "babel src --root-mode upward --extensions '.ts' --out-dir dist/esm --ignore '**/*/__tests__/'", @@ -42,6 +40,6 @@ "test": "node ../../scripts/test.mjs --projects=./packages/calculator-bigint" }, "dependencies": { - "@dinero.js/core": "2.0.0-alpha.13" + "@dinero.js/core": "2.0.0-alpha.14" } } diff --git a/packages/calculator-number/package.json b/packages/calculator-number/package.json index a97bf8279..346741450 100644 --- a/packages/calculator-number/package.json +++ b/packages/calculator-number/package.json @@ -1,6 +1,6 @@ { "name": "@dinero.js/calculator-number", - "version": "2.0.0-alpha.13", + "version": "2.0.0-alpha.14", "description": "Number calculator implementation for Dinero.js", "keywords": [ "money", @@ -29,9 +29,7 @@ "module": "dist/esm/index.js", "source": "src/index.ts", "types": "dist/esm/index.d.ts", - "files": [ - "dist/" - ], + "files": ["dist/"], "scripts": { "build:clean": "rimraf ./{dist,temp}", "build:esm": "babel src --root-mode upward --extensions '.ts' --out-dir dist/esm --ignore '**/*/__tests__/'", @@ -42,6 +40,6 @@ "test": "node ../../scripts/test.mjs --projects=./packages/calculator-number" }, "dependencies": { - "@dinero.js/core": "2.0.0-alpha.13" + "@dinero.js/core": "2.0.0-alpha.14" } } diff --git a/packages/core/package.json b/packages/core/package.json index 23e244e48..d6a2a99be 100644 --- a/packages/core/package.json +++ b/packages/core/package.json @@ -1,13 +1,8 @@ { "name": "@dinero.js/core", - "version": "2.0.0-alpha.13", + "version": "2.0.0-alpha.14", "description": "Common code between Dinero.js packages", - "keywords": [ - "money", - "monetary", - "amount", - "immutable" - ], + "keywords": ["money", "monetary", "amount", "immutable"], "homepage": "https://v2.dinerojs.com", "bugs": "/~https://github.com/dinerojs/dinero.js/issues", "repository": { @@ -27,9 +22,7 @@ "module": "dist/esm/index.js", "source": "src/index.ts", "types": "dist/esm/index.d.ts", - "files": [ - "dist/" - ], + "files": ["dist/"], "scripts": { "build:clean": "rimraf ./{dist,temp}", "build:esm": "babel src --root-mode upward --extensions '.ts' --out-dir dist/esm --ignore '**/*/__tests__/'", @@ -40,6 +33,6 @@ "test": "node ../../scripts/test.mjs --projects=./packages/core" }, "dependencies": { - "@dinero.js/currencies": "2.0.0-alpha.13" + "@dinero.js/currencies": "2.0.0-alpha.14" } } diff --git a/packages/currencies/package.json b/packages/currencies/package.json index 5707c73f3..5fec7765d 100644 --- a/packages/currencies/package.json +++ b/packages/currencies/package.json @@ -1,6 +1,6 @@ { "name": "@dinero.js/currencies", - "version": "2.0.0-alpha.13", + "version": "2.0.0-alpha.14", "description": "Common currency implementations for Dinero.js", "keywords": [ "money", diff --git a/packages/dinero.js/package.json b/packages/dinero.js/package.json index e4a41d364..89b6bd009 100644 --- a/packages/dinero.js/package.json +++ b/packages/dinero.js/package.json @@ -1,6 +1,6 @@ { "name": "dinero.js", - "version": "2.0.0-alpha.13", + "version": "2.0.0-alpha.14", "description": "Create, calculate, and format money in JavaScript and TypeScript", "keywords": [ "money", @@ -29,9 +29,7 @@ "module": "dist/esm/index.js", "source": "src/index.ts", "types": "dist/esm/index.d.ts", - "files": [ - "dist/" - ], + "files": ["dist/"], "scripts": { "build:clean": "rimraf ./{dist,temp}", "build:esm": "babel src --root-mode upward --extensions '.ts' --out-dir dist/esm --ignore '**/*/__tests__/'", @@ -42,11 +40,11 @@ "test": "node ../../scripts/test.mjs --projects=./packages/dinero.js" }, "dependencies": { - "@dinero.js/calculator-number": "2.0.0-alpha.13", - "@dinero.js/core": "2.0.0-alpha.13", - "@dinero.js/currencies": "2.0.0-alpha.13" + "@dinero.js/calculator-number": "2.0.0-alpha.14", + "@dinero.js/core": "2.0.0-alpha.14", + "@dinero.js/currencies": "2.0.0-alpha.14" }, "devDependencies": { - "@dinero.js/calculator-bigint": "2.0.0-alpha.13" + "@dinero.js/calculator-bigint": "2.0.0-alpha.14" } } diff --git a/website/package.json b/website/package.json index 86615c77a..50290e0ad 100644 --- a/website/package.json +++ b/website/package.json @@ -1,6 +1,6 @@ { "name": "@dinero.js/website", - "version": "2.0.0-alpha.13", + "version": "2.0.0-alpha.14", "private": true, "scripts": { "dev": "next dev", @@ -9,11 +9,11 @@ "lint": "next lint" }, "dependencies": { - "@dinero.js/currencies": "2.0.0-alpha.13", + "@dinero.js/currencies": "2.0.0-alpha.14", "@docsearch/css": "3.2.1", "@docsearch/react": "3.3.0", "classnames": "2.3.2", - "dinero.js": "2.0.0-alpha.13", + "dinero.js": "2.0.0-alpha.14", "fathom-client": "3.5.0", "github-slugger": "1.4.0", "next": "13.0.2", diff --git a/yarn.lock b/yarn.lock index 5493b0662..2bca43118 100644 --- a/yarn.lock +++ b/yarn.lock @@ -1245,6 +1245,25 @@ dependencies: "@jridgewell/trace-mapping" "0.3.9" +"@dinero.js/calculator-number@2.0.0-alpha.13": + version "2.0.0-alpha.13" + resolved "https://registry.yarnpkg.com/@dinero.js/calculator-number/-/calculator-number-2.0.0-alpha.13.tgz#d4fbadf910f62fb93691590ae821c4d01f597df8" + integrity sha512-Mo/0FUVFq4dVb/RfBIASUxPFbQbkHYC0VBe36DgWfbbhwG6K6ONuzTLBU5W6LdrMpB7D/CxgZISdQ0pyZKwg9w== + dependencies: + "@dinero.js/core" "2.0.0-alpha.13" + +"@dinero.js/core@2.0.0-alpha.13": + version "2.0.0-alpha.13" + resolved "https://registry.yarnpkg.com/@dinero.js/core/-/core-2.0.0-alpha.13.tgz#784c845b918edc8746a4e07128df7168358e7139" + integrity sha512-RLZz8WmYe1ehqD2YtTpzCzdk0Hqf6oaAVmRlULLkua6vuEVEXjPQEhuyTMLHcS6/Gppy9nuEw8mpSNvU+Sy8QQ== + dependencies: + "@dinero.js/currencies" "2.0.0-alpha.13" + +"@dinero.js/currencies@2.0.0-alpha.13": + version "2.0.0-alpha.13" + resolved "https://registry.yarnpkg.com/@dinero.js/currencies/-/currencies-2.0.0-alpha.13.tgz#8e9871a9706d4cdd13b760052a590670944effd8" + integrity sha512-vEfDara+xAqOrLww80FyFVw4usWcCsR4HwhaoCvwIzB5UdsLPDeUviAGFi8CoWjtLCR44iIeOHdn9jDr7Jj+TQ== + "@docsearch/css@3.2.1": version "3.2.1" resolved "https://registry.yarnpkg.com/@docsearch/css/-/css-3.2.1.tgz#c05d7818b0e43b42f9efa2d82a11c36606b37b27" @@ -4182,6 +4201,15 @@ diff@^4.0.1: resolved "https://registry.yarnpkg.com/diff/-/diff-4.0.2.tgz#60f3aecb89d5fae520c11aa19efc2bb982aade7d" integrity sha512-58lmxKSA4BNyLz+HHMUzlOEpg09FV+ev6ZMe3vJihgdxzgcwZ8VoEEPmALCZG9LmqfVoNMMKpttIYTVG6uDY7A== +dinero.js@2.0.0-alpha.13: + version "2.0.0-alpha.13" + resolved "https://registry.yarnpkg.com/dinero.js/-/dinero.js-2.0.0-alpha.13.tgz#4f4faeb9abae0334dbc535ae1b2e2b8eb44bd86c" + integrity sha512-xuBgE/3/67SXOW/UKjmaRd/YJQkUSlYS+6DvfglFg1Mbfn2K7cp+WQcgU76CLJpJPkJABgILsPjw1Om9OJ5puA== + dependencies: + "@dinero.js/calculator-number" "2.0.0-alpha.13" + "@dinero.js/core" "2.0.0-alpha.13" + "@dinero.js/currencies" "2.0.0-alpha.13" + dir-glob@^3.0.1: version "3.0.1" resolved "https://registry.yarnpkg.com/dir-glob/-/dir-glob-3.0.1.tgz#56dbf73d992a4a93ba1584f4534063fd2e41717f"