This repository has been archived by the owner on Feb 26, 2024. It is now read-only.
Releases: hckhanh/read-vn-number
Releases · hckhanh/read-vn-number
v4.1.0
v4.0.1
v4.0.0
v3.2.1
v3.1.0
Features
- analysis: add CodeQL workflow (af2cf53)
- package: replace .npmignore by
files
property to ignore unused files (9740be7)
Bug Fixes
- styles: fix code styling for codeql-analysis.yml (edc12c2)
- workflow: correct version of actions/checkout and actions/setup-node actions (8ebc9b5)
Dependencies
- deps-dev: bump @commitlint/cli from 9.1.2 to 11.0.0 (#106) (762bd33)
- deps-dev: bump @commitlint/config-conventional (#107) (5c4dc7d)
- deps-dev: bump @types/node from 14.6.0 to 14.6.2 (#99) (d8696c5)
- deps-dev: bump @types/node from 14.6.2 to 14.14.2 (#123) (9f66846)
- deps-dev: bump dependency-cruiser from 9.11.1 to 9.12.0 (#96) (1c8a114)
- deps-dev: bump dependency-cruiser from 9.12.0 to 9.15.1 (#120) (f851d78)
- deps-dev: bump eslint-config-prettier from 6.11.0 to 6.14.0 (#127) (b5094d0)
- deps-dev: bump husky from 4.2.5 to 4.3.0 (#103) (e25d5c0)
- deps-dev: bump mocha from 8.1.2 to 8.1.3 (#98) (fcf33f8)
- deps-dev: bump mocha from 8.1.3 to 8.2.0 (#129) (79d4306)
- deps-dev: bump prettier from 2.1.1 to 2.1.2 (#128) (6999b37)
- deps-dev: bump typescript from 4.0.2 to 4.0.3 (#126) (63b2cbb)
v3.0.0
⚠ BREAKING CHANGES
- drop support for Node.js v10
Features
- drop support for Node.js v10 (639bd34)
Improvements
- dependabot: upgrade Dependabot from v1 to v2 (GitHub-native Dependabot) (1b63a27)
Dependencies
- deps: bump lodash from 4.17.15 to 4.17.20 (#93) (3a3cf40)
- deps-dev: bump @commitlint/cli from 8.3.5 to 9.1.2 (#83) (2b8e024)
- deps-dev: bump @commitlint/config-conventional from 8.3.4 to 9.1.2 (#84) (7a350f9)
- deps-dev: bump @types/chai from 4.2.11 to 4.2.12 (#75) (b76b362)
- deps-dev: bump @types/mocha from 7.0.2 to 8.0.3 (#86) (061c757)
- deps-dev: bump @types/node from 14.0.5 to 14.0.9 (86b87e3)
- deps-dev: bump @types/node from 14.0.9 to 14.6.0 (#85) (6f52b8c)
- deps-dev: bump mocha from 7.2.0 to 8.1.2 (#90) (49f81d5)
- deps-dev: bump prettier from 2.0.5 to 2.1.1 (#92) (5bc9aa4)
- deps-dev: bump standard-version from 8.0.0 to 9.0.0 (#82) (2d2435e)
- deps-dev: bump standard-version from 8.0.1 to 9.0.0 (#94) (829c279)
- deps-dev: bump ts-node from 8.10.1 to 8.10.2 (12d7fda)
- deps-dev: bump ts-node from 8.10.2 to 9.0.0 (#88) (6a54abc)
- deps-dev: bump typescript from 3.9.3 to 4.0.2 (#87) (bcf6664)
v2.0.3
v2.0.2
v2.0.1
v2.0.0
- Bump mocha, typescript to latest
- Upgrade some type packages and dev dependencies
Breaking changes
Import and use in ES6+:
import readNumber from 'read-vn-number'
readNumber('19990000') // or readNumber(19990000)
// output: mười chín triệu chín trăm chín mươi nghìn
or commonjs way:
const readNumber = require('read-vn-number')
readNumber('100000000')
// output: một trăm triệu
If you are working with TypeScript, you can directly import from the source:
import readNumber from 'read-vn-number/src'
readNumber('1000000000')
// output: một tỷ