Skip to content

Commit

Permalink
Merge pull request #42 from sineverba/release-2.2.0
Browse files Browse the repository at this point in the history
Release 2.2.0
  • Loading branch information
sineverba committed Jan 5, 2024
2 parents cb55905 + 025fe0a commit deb39b8
Show file tree
Hide file tree
Showing 12 changed files with 700 additions and 520 deletions.
2 changes: 1 addition & 1 deletion .circleci/config.yml
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
3 changes: 2 additions & 1 deletion .gitignore
Expand Up @@ -7,4 +7,5 @@ npm-debug.log
.npmrc
.nyc_output
.scannerwork
data/
data/
dist/
2 changes: 1 addition & 1 deletion .nvmrc
@@ -1 +1 @@
v18.17.0
v20.10.0
4 changes: 4 additions & 0 deletions .semaphore/build-deploy.yml
Expand Up @@ -7,6 +7,9 @@ agent:
os_image: ubuntu2004

global_job_config:
env_vars:
- name: NPM_VERSION
value: 10.2.5
secrets:
- name: ACCESS_TOKENS

Expand All @@ -17,6 +20,7 @@ blocks:
- name: Deploy
commands:
- checkout
- npm install npm@$NPM_VERSION
- npm ci
- npm run build
- mv npmrc.txt .npmrc
Expand Down
8 changes: 4 additions & 4 deletions .semaphore/semaphore.yml
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
- npm run test
Expand Down Expand Up @@ -70,8 +70,8 @@ blocks:
docker run
--rm
-e SONAR_HOST_URL="https://sonarcloud.io"
-e SONAR_LOGIN=$SONAR_TOKEN
-v "/home/semaphore/npm-pkg-year-interval:/usr/src"
-e SONAR_TOKEN=$SONAR_TOKEN
-v $PWD:/usr/src
sonarsource/sonar-scanner-cli:$SONARSCANNER_VERSION
promotions:
Expand Down
6 changes: 5 additions & 1 deletion CHANGELOG.md
@@ -1,4 +1,8 @@
# 2.1.0
# 2.2.0
+ Refactor Semaphore
+ Upgrade dependencies

## 2.1.0
+ Upgrade dependencies

## 2.0.0
Expand Down
6 changes: 3 additions & 3 deletions Makefile
@@ -1,4 +1,4 @@
SONARSCANNER_VERSION=4.8.0
SONARSCANNER_VERSION=5.0.1

sonar:
docker run --rm -it \
Expand All @@ -9,7 +9,7 @@ sonar:
sonarsource/sonar-scanner-cli:$(SONARSCANNER_VERSION)

upgrade:
npx ncu --doctor -u
npx ncu -u
npm install
npx browserslist@latest --update-db
npx update-browserslist-db@latest
npm audit fix
6 changes: 3 additions & 3 deletions README.md
Expand Up @@ -13,7 +13,7 @@ Years Interval

Useful to use in copyright section ("Copyright 2018-2020 by Acme INC").

"2018-2020" in previous example is string returned.
"2018-2020" in previous example is what you get.

## Installation
`npm install @sineverba/years-interval`
Expand All @@ -25,9 +25,9 @@ Useful to use in copyright section ("Copyright 2018-2020 by Acme INC").
```js
import { GetYearInterval } from '@sineverba/years-interval';

var yearInterval = Shortener("2020");
const yearInterval = GetYearInterval("2020");
console.log(yearInterval); // returns 2020
var newYearInterval = Shortener("2018");
const newYearInterval = GetYearInterval("2018");
console.log(newYearInterval); // returns 2018-2020
// on next year...
console.log(yearInterval); // returns 2020-2021
Expand Down

0 comments on commit deb39b8

Please sign in to comment.