Skip to content

Commit

Permalink
Merge pull request #51 from evert/esm-upgrade
Browse files Browse the repository at this point in the history
ESM upgrade
  • Loading branch information
evert committed Apr 20, 2024
2 parents 0ece219 + 6f1ef52 commit 38f32da
Show file tree
Hide file tree
Showing 14 changed files with 1,622 additions and 4,502 deletions.
1 change: 0 additions & 1 deletion .eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,6 @@
"args": "none"
}],
"@typescript-eslint/prefer-for-of": ["error"],
"@typescript-eslint/prefer-optional-chain": ["error"],
"@typescript-eslint/prefer-ts-expect-error": ["error"],
"no-console": ["error"]
}
Expand Down
10 changes: 5 additions & 5 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@ name: Node.js CI

on:
push:
branches: [ master ]
branches: [ main ]
pull_request:
branches: [ master ]
branches: [ main ]

jobs:
build:
Expand All @@ -16,13 +16,13 @@ jobs:

strategy:
matrix:
node-version: [10.x, 12.x, 14.x, 16.x]
node-version: [16.x, 18.x, 20.x, 21.x]
# See supported Node.js release schedule at https://nodejs.org/en/about/releases/

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
- run: npm ci
Expand Down
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ clean:

.PHONY: test
test: lint
nyc mocha
npx tsx --test

.PHONY: test-debug
test-debug:
Expand Down
30 changes: 21 additions & 9 deletions CHANGELOG.md → changelog.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,16 @@
Changelog
=========

2.0.0 (????-??-??)
------------------

* Full ESM conversion. If you require the commonjs version of this library,
stay on the 1.x version until you are ready to upgrade.
* This library now requires Node 16.
* Switch to built-in Node test runner and assertion library, and removed `nyc`,
`mocha` and `chai`.


1.3.0 (2021-08-23)
------------------

Expand Down Expand Up @@ -32,8 +42,8 @@ Changelog
------------------

* Added `abs()` function, to remove the sign from values. (@flaktack)
* Added `sign()` function to find out if a number is postive, negative or
zero (@flaktack).
* Added `sign()` function to find out if a number is postive, negative or zero
(@flaktack).


0.8.2 (2019-04-03)
Expand All @@ -54,9 +64,9 @@ Changelog
------------------

* Increased the precision to 20 digits, up from 12. Someone had a need for more
than 12 digits, and 20 seems like a reasonable new limit.
Perhaps at one point this will be configurable but picking a good default
seems like a sane choice right now.
than 12 digits, and 20 seems like a reasonable new limit. Perhaps at one
point this will be configurable but picking a good default seems like a sane
choice right now.


0.7.1 (2019-03-19)
Expand Down Expand Up @@ -119,15 +129,17 @@ Changelog
------------------

* This library now adds a `toJSON()` function that has a default serialization
for JSON files. Example: 1.5 USD will be JSON-stringified as `["1.5", "USD"]`.
for JSON files. Example: 1.5 USD will be JSON-stringified as `["1.5",
"USD"]`.
* The Money class is now the default export.


0.3.0 (2018-12-13)
------------------

* Support for `divide()`, `multiply()`, `compare()`.
* Added an implementation of the `allocate()` function from Fowler's
Enterprise Design Patterns.
* Added an implementation of the `allocate()` function from Fowler's Enterprise
Design Patterns.
* Fixed parsing string numbers without a fractional part.
* Added `toSource()` and `fromSource()` methods to easily get access to the
underlying bigint.
Expand Down Expand Up @@ -163,6 +175,6 @@ Changelog


0.0.1 (2018-12-06)
-----------------
------------------

* First started working on this.
Loading

0 comments on commit 38f32da

Please sign in to comment.