Skip to content

Commit

Permalink
Merge pull request #40 from sineverba/upgrade-dependencies
Browse files Browse the repository at this point in the history
Upgrade dependencies
  • Loading branch information
sineverba committed Dec 22, 2023
2 parents 332d50f + e9b7ef4 commit b5fa1eb
Show file tree
Hide file tree
Showing 9 changed files with 639 additions and 461 deletions.
2 changes: 1 addition & 1 deletion .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ jobs:

test:
docker:
- image: cimg/node:18.17.0
- image: cimg/node:20.10.0

steps:
- checkout
Expand Down
2 changes: 1 addition & 1 deletion .nvmrc
Original file line number Diff line number Diff line change
@@ -1 +1 @@
v18.17.0
v20.10.0
4 changes: 2 additions & 2 deletions .semaphore/semaphore.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ agent:
global_job_config:
env_vars:
- name: SONARSCANNER_VERSION
value: 4.8.0
value: 5.0.1
secrets:
- name: ACCESS_TOKENS

Expand Down Expand Up @@ -38,7 +38,7 @@ blocks:
- name: Test
matrix:
- env_var: NODE_VERSION
values: [ "14", "16", "18" ]
values: [ "14", "16", "18", "20" ]
commands:
- sem-version node $NODE_VERSION
- npx jest
Expand Down
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# Next version
+ Upgrade dependencies

# 2.1.0
+ Add Cucumber
+ Upgrade dependencies
Expand Down
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
SONARSCANNER_VERSION=4.8.0
SONARSCANNER_VERSION=5.0.1

sonar:
docker run --rm -it \
Expand All @@ -11,5 +11,5 @@ sonar:
upgrade:
npx ncu -u
npm install
npx browserslist@latest --update-db
npx update-browserslist-db@latest
npm audit fix
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,16 +32,16 @@ var {fromIsoToHuman, fromHumanToIso} = require('@sineverba/date-convert');
// Or
// import { fromHumanToIso, fromIsoToHuman } from "@sineverba/date-convert";

let humanDate = fromIsoToHuman("20200102");
const humanDate = fromIsoToHuman("20200102");
console.log(humanDate); // returns 02/01/2020

let humanDateWithFormat = fromIsoToHuman("20200102", "YYYY-MM-DD");
const humanDateWithFormat = fromIsoToHuman("20200102", "YYYY-MM-DD");
console.log(humanDateWithFormat); // returns 2020-01-02

let isoDate = fromHumanToIso("02/01/2020");
const isoDate = fromHumanToIso("02/01/2020");
console.log(isoDate); // returns 20200102

let isoDateWithFormat = fromHumanToIso("2020-01-02", "YYYY-MM-DD");
const isoDateWithFormat = fromHumanToIso("2020-01-02", "YYYY-MM-DD");
console.log(isoDateWithFormat); // returns 20200102
```

Expand Down
4 changes: 4 additions & 0 deletions TODO.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
TODO
====

+ Remove var from tests and move to const or let

0 comments on commit b5fa1eb

Please sign in to comment.