Skip to content

Commit

Permalink
Merge branch 'next'
Browse files Browse the repository at this point in the history
Signed-off-by: Pascal Sthamer <10992664+P4sca1@users.noreply.github.com>
  • Loading branch information
P4sca1 committed Apr 29, 2024
2 parents ca96696 + 9789f80 commit 76f2198
Show file tree
Hide file tree
Showing 34 changed files with 3,384 additions and 3,424 deletions.
9 changes: 5 additions & 4 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ orbs:
jobs:
release:
docker:
- image: cimg/node:20.11
- image: cimg/node:20.12
steps:
- checkout
- restore_cache:
Expand All @@ -30,12 +30,13 @@ workflows:
jobs:
- node/test:
override-ci-command: pnpm install
run-command: test:run
run-command: test:ci
test-results-path: test-report.xml
matrix:
parameters:
version:
- '18.19'
- '20.11'
- '18.20'
- '20.12'
- release:
requires:
- node/test
2 changes: 1 addition & 1 deletion .github/renovate.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@
"enabled": true,
"baseBranches": ["next"],
"extends": ["github>IPS-Hosting/renovate-config"]
}
}
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,4 @@ node_modules/
dist/
coverage/
.DS_Store
test-report.xml
5 changes: 0 additions & 5 deletions .idea/.gitignore

This file was deleted.

64 changes: 0 additions & 64 deletions .idea/codeStyles/Project.xml

This file was deleted.

5 changes: 0 additions & 5 deletions .idea/codeStyles/codeStyleConfig.xml

This file was deleted.

12 changes: 0 additions & 12 deletions .idea/cron-schedule.iml

This file was deleted.

11 changes: 0 additions & 11 deletions .idea/inspectionProfiles/Project_Default.xml

This file was deleted.

6 changes: 0 additions & 6 deletions .idea/jsLinters/eslint.xml

This file was deleted.

8 changes: 0 additions & 8 deletions .idea/modules.xml

This file was deleted.

6 changes: 0 additions & 6 deletions .idea/vcs.xml

This file was deleted.

2 changes: 0 additions & 2 deletions .prettierignore

This file was deleted.

13 changes: 0 additions & 13 deletions .prettierrc

This file was deleted.

7 changes: 2 additions & 5 deletions .vscode/extensions.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
{
"recommendations": [
"dbaeumer.vscode-eslint",
"esbenp.prettier-vscode"
]
}
"recommendations": ["biomejs.biome"]
}
16 changes: 9 additions & 7 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
{
"editor.defaultFormatter": "esbenp.prettier-vscode",
"editor.formatOnSave": true,
"eslint.enable": true,
"editor.codeActionsOnSave": {
"source.fixAll.eslint": "explicit"
},
}
"[javascript][typescript][json]": {
"editor.defaultFormatter": "biomejs.biome",
"editor.formatOnSave": true,
"editor.codeActionsOnSave": {
"quickfix.biome": "explicit",
"source.organizeImports.biome": "explicit"
}
}
}
5 changes: 2 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ A zero-dependency cron parser and scheduler for Node.js, Deno and the browser. P

![ts](https://flat.badgen.net/badge/-/TypeScript?icon=typescript&label&labelColor=blue&color=555555)
[![semantic-release](https://img.shields.io/badge/%20%20%F0%9F%93%A6%F0%9F%9A%80-semantic--release-e10079.svg?style=flat-square)](https://github.com/semantic-release/semantic-release)
[![code style: prettier](https://img.shields.io/badge/code_style-prettier-ff69b4.svg?style=flat-square)](https://github.com/prettier/prettier)
![](https://img.shields.io/npm/dw/cron-schedule?style=flat-square)

## Features
Expand Down Expand Up @@ -32,7 +31,7 @@ Via pnpm:

`$ pnpm add cron-schedule`

**We test our code against the following Node.js releases (`18.19`, `20.11`).**
**We test our code against the following Node.js releases (`18.20`, `20.12`).**
Other versions of node.js may also work, but this is not tested.

##### Usage
Expand Down Expand Up @@ -185,7 +184,7 @@ scheduler.start()
- Tasks are not executed exactly on the cron date.
- Tasks can only be executed once per interval.

**For most people, the timer based scheduler should be a good option. When you have problems with long timeouts / intervals being skipped, or have performance problems because of many scheduled tasks, you should consider the interval based scheduler.**
**For most people, the timer based scheduler should be a good option. However, setTimeout can be unreliable for long delays. When you have problems with long timeouts / intervals being skipped, or have performance problems because of many scheduled tasks, you should consider the interval based scheduler.**

## Cron expression format

Expand Down
30 changes: 30 additions & 0 deletions biome.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
{
"$schema": "https://biomejs.dev/schemas/1.7.1/schema.json",
"files": {
"ignore": [
"package.json",
"test-report.xml",
"dist",
"node_modules",
"coverage"
]
},
"linter": {
"enabled": true,
"rules": {
"recommended": true
}
},
"formatter": {
"enabled": true
},
"organizeImports": {
"enabled": true
},
"javascript": {
"formatter": {
"quoteStyle": "single",
"semicolons": "asNeeded"
}
}
}
15 changes: 0 additions & 15 deletions eslint.config.js

This file was deleted.

16 changes: 8 additions & 8 deletions jsr.json
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
{
"name": "@p4sca1/cron-schedule",
"version": "4.0.0",
"exports": {
".": "./src/index.ts",
"./schedulers/interval-based": "./src/schedulers/interval-based.ts",
"./schedulers/timer-based": "./src/schedulers/timer-based.ts"
}
}
"name": "@p4sca1/cron-schedule",
"version": "4.0.0",
"exports": {
".": "./src/index.ts",
"./schedulers/interval-based": "./src/schedulers/interval-based.ts",
"./schedulers/timer-based": "./src/schedulers/timer-based.ts"
}
}
Loading

0 comments on commit 76f2198

Please sign in to comment.