From f8b93e0bfac67436e15995e5046faf37c4f89fdf Mon Sep 17 00:00:00 2001 From: Michael Mclaughlin Date: Sun, 14 Aug 2022 18:25:23 +0100 Subject: [PATCH] v10.4.0 --- .travis.yml | 3 +++ CHANGELOG.md | 6 ++++++ LICENCE.md | 2 +- decimal.js | 4 ++-- decimal.mjs | 4 ++-- package.json | 13 +++++++------ 6 files changed, 21 insertions(+), 11 deletions(-) diff --git a/.travis.yml b/.travis.yml index 3bbbc3c..7ac7c6e 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,6 +1,9 @@ language: node_js node_js: - "node" + - "18" + - "17" + - "16" - "15" - "14" - "13" diff --git a/CHANGELOG.md b/CHANGELOG.md index a3a9fef..02d9619 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,9 @@ +#### 10.4.0 +* 14/08/2022 +* #201 Add `exports` field to *package.json*. +* #203 Preserve license comment after bundling. +* #198 Use type predicate on `isDecimal`. + #### 10.3.1 * 25/06/2021 * Remove minified versions. Refresh *README*. diff --git a/LICENCE.md b/LICENCE.md index b313db0..1063109 100644 --- a/LICENCE.md +++ b/LICENCE.md @@ -1,6 +1,6 @@ The MIT Licence. -Copyright (c) 2021 Michael Mclaughlin +Copyright (c) 2022 Michael Mclaughlin Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the diff --git a/decimal.js b/decimal.js index ef253db..011fb15 100644 --- a/decimal.js +++ b/decimal.js @@ -3,10 +3,10 @@ /*! - * decimal.js v10.3.1 + * decimal.js v10.4.0 * An arbitrary-precision Decimal type for JavaScript. * https://github.com/MikeMcl/decimal.js - * Copyright (c) 2021 Michael Mclaughlin + * Copyright (c) 2022 Michael Mclaughlin * MIT Licence */ diff --git a/decimal.mjs b/decimal.mjs index 7441dd6..1989e38 100644 --- a/decimal.mjs +++ b/decimal.mjs @@ -1,8 +1,8 @@ /*! - * decimal.js v10.3.1 + * decimal.js v10.4.0 * An arbitrary-precision Decimal type for JavaScript. * https://github.com/MikeMcl/decimal.js - * Copyright (c) 2021 Michael Mclaughlin + * Copyright (c) 2022 Michael Mclaughlin * MIT Licence */ diff --git a/package.json b/package.json index 545a274..63774b6 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "decimal.js", "description": "An arbitrary-precision Decimal type for JavaScript.", - "version": "10.3.1", + "version": "10.4.0", "keywords": [ "arbitrary", "precision", @@ -25,12 +25,13 @@ "browser": "decimal.js", "exports": { ".": { - "import": { - "types": "./decimal.d.ts", - "default": "./decimal.mjs" - }, + "types": "./decimal.d.ts", + "import": "./decimal.mjs", "require": "./decimal.js" - } + }, + "./decimal.mjs": "./decimal.mjs", + "./decimal.js": "./decimal.js", + "./package.json": "./package.json" }, "author": { "name": "Michael Mclaughlin",