Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: regseb/cronnor
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: v2.1.0
Choose a base ref
...
head repository: regseb/cronnor
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: main
Choose a head ref

Commits on Mar 4, 2023

  1. Copy the full SHA
    2c1b334 View commit details
  2. Copy the full SHA
    abe47c7 View commit details
  3. Copy the full SHA
    61d25d1 View commit details
  4. chore(release): 2.1.1

    regseb committed Mar 4, 2023
    Copy the full SHA
    5020b71 View commit details

Commits on May 14, 2023

  1. Copy the full SHA
    65da4cb View commit details
  2. Copy the full SHA
    fbad89a View commit details
  3. chore(release): 2.1.2

    regseb committed May 14, 2023
    Copy the full SHA
    19adf5c View commit details

Commits on May 18, 2023

  1. Copy the full SHA
    3ed2f5d View commit details
  2. docs: Améliorer le README.

    regseb committed May 18, 2023
    Copy the full SHA
    2622712 View commit details
  3. Copy the full SHA
    c721ee0 View commit details
  4. chore(release): 2.1.3

    regseb committed May 18, 2023
    Copy the full SHA
    ef2c431 View commit details

Commits on Jun 30, 2023

  1. Copy the full SHA
    444958d View commit details
  2. Copy the full SHA
    c966de3 View commit details
  3. Copy the full SHA
    06cb30b View commit details
  4. chore(release): 2.2.0

    regseb committed Jun 30, 2023
    Copy the full SHA
    cc4342c View commit details

Commits on Oct 2, 2023

  1. Copy the full SHA
    e141c29 View commit details
  2. Copy the full SHA
    18b6c29 View commit details
  3. Copy the full SHA
    f8583e4 View commit details
  4. Copy the full SHA
    9599d39 View commit details
  5. Copy the full SHA
    23cc0dd View commit details
  6. chore(main): release 2.2.1 (#5)

    Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
    github-actions[bot] authored Oct 2, 2023
    Copy the full SHA
    2fb0905 View commit details
  7. Copy the full SHA
    5e55307 View commit details
  8. chore(main): release 2.2.2 (#6)

    Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
    github-actions[bot] authored Oct 2, 2023
    Copy the full SHA
    2491211 View commit details
  9. Copy the full SHA
    4f8ec17 View commit details
  10. Copy the full SHA
    9e0e2cf View commit details
  11. chore(main): release 2.2.3 (#7)

    Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
    github-actions[bot] authored Oct 2, 2023
    Copy the full SHA
    c0fff12 View commit details

Commits on Feb 13, 2024

  1. Copy the full SHA
    40d2c1c View commit details
  2. Copy the full SHA
    6a7956c View commit details
  3. Copy the full SHA
    e114cea View commit details

Commits on Dec 21, 2024

  1. docs: Améliorer la JSDoc.

    regseb committed Dec 21, 2024
    Copy the full SHA
    df0b55c View commit details

Commits on Jan 3, 2025

  1. feat: Publier dans JSR.

    regseb committed Jan 3, 2025
    Copy the full SHA
    3e5e03e View commit details

Commits on Jan 4, 2025

  1. Copy the full SHA
    d286f31 View commit details
  2. Copy the full SHA
    7a50339 View commit details
Showing with 12,809 additions and 11,182 deletions.
  1. +13 −0 .editorconfig
  2. +2 −0 .gitattributes
  3. +8 −7 .github/CODE_OF_CONDUCT.md
  4. +1 −0 .github/FUNDING.yml
  5. +8 −9 .github/ISSUE_TEMPLATE/bug_report.md
  6. +3 −3 .github/ISSUE_TEMPLATE/config.yml
  7. +5 −6 .github/ISSUE_TEMPLATE/feature_request.md
  8. +13 −0 .github/dependabot.yml
  9. +69 −57 .github/workflows/ci.yml
  10. +103 −0 .github/workflows/release.yml
  11. +17 −1 .gitignore
  12. +743 −677 .metalint/eslint.config.js
  13. +14 −9 .metalint/eslint_config.config.js
  14. +101 −60 .metalint/eslint_node.config.js
  15. +63 −32 .metalint/eslint_test.config.js
  16. +53 −27 .metalint/markdownlint.config.js
  17. +63 −37 .metalint/metalint.config.js
  18. +25 −14 .metalint/npm-package-json-lint.config.js
  19. +8 −0 .metalint/prantlf__jsonlint.config.js
  20. +22 −0 .metalint/prettier.config.js
  21. +15 −0 .metalint/prettier_javascript.config.js
  22. +6 −0 .metalint/publint.config.js
  23. +6 −0 .metalint/yaml-lint.config.js
  24. +9 −0 .release-please/config.json
  25. +1 −0 .release-please/manifest.json
  26. +20 −7 .script/clean.js
  27. +0 −8 .stryker.conf.js
  28. +21 −0 .stryker.config.js
  29. +16 −20 .tsconfig.json
  30. +9 −7 .tsconfig_jsdocs.json
  31. +11 −13 .tsconfig_lint.json
  32. +8 −19 .tsconfig_types.json
  33. +89 −23 CHANGELOG.md
  34. +1 −1 LICENSE
  35. +79 −61 README.md
  36. +22 −8 asset/logo.svg
  37. +14 −0 jsr.json
  38. +9,002 −8,421 package-lock.json
  39. +89 −72 package.json
  40. +10 −11 src/at.js
  41. +42 −46 src/cron.js
  42. +75 −207 src/cronexp.js
  43. +57 −50 src/field.js
  44. +1 −2 src/index.js
  45. +334 −0 src/parse.js
  46. +109 −90 test/at.js
  47. +118 −89 test/cron.js
  48. +143 −1,065 test/cronexp.js
  49. +86 −23 test/field.js
  50. +1,082 −0 test/parse.js
13 changes: 13 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
# https://editorconfig.org/
root = true

[*]
charset = utf-8
insert_final_newline = true
end_of_line = lf
indent_style = space
indent_size = 2
max_line_length = 80

[*.js]
indent_size = 4
2 changes: 2 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# https://git-scm.com/docs/gitattributes
* text eol=lf
15 changes: 8 additions & 7 deletions .github/CODE_OF_CONDUCT.md
Original file line number Diff line number Diff line change
@@ -52,16 +52,16 @@ decisions when appropriate.

This Code of Conduct applies within all community spaces, and also applies when
an individual is officially representing the community in public spaces.
Examples of representing our community include using an official e-mail address,
Examples of representing our community include using an official email address,
posting via an official social media account, or acting as an appointed
representative at an online or offline event.

## Enforcement

Instances of abusive, harassing, or otherwise unacceptable behavior may be
reported to the community leaders responsible for enforcement at
<regseb@gmail.com>.
All complaints will be reviewed and investigated promptly and fairly.
<regseb@gmail.com>. All complaints will be reviewed and investigated promptly
and fairly.

All community leaders are obligated to respect the privacy and security of the
reporter of any incident.
@@ -114,12 +114,13 @@ community.

## Attribution

This Code of Conduct is adapted from the [Contributor
Covenant](https://www.contributor-covenant.org) version 2.1, available at
This Code of Conduct is adapted from the
[Contributor Covenant](https://www.contributor-covenant.org) version 2.1,
available at
<https://www.contributor-covenant.org/version/2/1/code_of_conduct.html>.

Community Impact Guidelines were inspired by [Mozilla's code of conduct
enforcement ladder](https://github.com/mozilla/diversity).
Community Impact Guidelines were inspired by
[Mozilla's code of conduct enforcement ladder](https://github.com/mozilla/diversity).

For answers to common questions about this code of conduct, see the FAQ at
<https://www.contributor-covenant.org/faq>. Translations are available at
1 change: 1 addition & 0 deletions .github/FUNDING.yml
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
buy_me_a_coffee: regseb
custom: https://www.paypal.me/sebastienregne
17 changes: 8 additions & 9 deletions .github/ISSUE_TEMPLATE/bug_report.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
---
name: Bug report
about: Create a report to help us improve.
title: ''
title: ""
labels: bug
assignees: ''

assignees: ""
---

### Describe the bug
@@ -16,10 +15,10 @@ assignees: ''
<!-- Please include a minimal reproduction case. Otherwise, include any
information about how you're using Cronnor. -->

```JavaScript
// Use cron expression "* * 13 * thu".
// Do something.
// ...
```javascript
// Use cron expression "* * 13 * thu".
// Do something.
// ...
```

### Expected behavior
@@ -28,8 +27,8 @@ assignees: ''

### Environment

- Cronnor version<!-- e.g. 2.1.0 -->:
- Platform version<!-- e.g. Chrome 109.0.5414.74, Node.js v18.13.0 -->:
- Cronnor version<!-- e.g. 2.4.0 -->:
- Platform version<!-- e.g. Chrome 131.0.6778.139, Node v22.12.0 -->:

### Additional context

6 changes: 3 additions & 3 deletions .github/ISSUE_TEMPLATE/config.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
blank_issues_enabled: false
contact_links:
- name: Discussion
url: https://github.com/regseb/cronnor/discussions
about: Ask a question.
- name: Discussion
url: https://github.com/regseb/cronnor/discussions
about: Ask a question.
11 changes: 5 additions & 6 deletions .github/ISSUE_TEMPLATE/feature_request.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
---
name: Feature request
about: Suggest an idea for this project.
title: ''
title: ""
labels: enhancement
assignees: ''

assignees: ""
---

### Describe the problem
@@ -18,9 +17,9 @@ assignees: ''

### Environment

- Cronnor version<!-- e.g. 2.1.0 -->:
- Platform version<!-- e.g. Chrome 109.0.5414.74, Node.js v18.13.0 -->:
- Cronnor version<!-- e.g. 2.4.0 -->:
- Platform version<!-- e.g. Chrome 131.0.6778.139, Node v22.12.0 -->:

### Additional context

<!-- Add any other context or screenshots about the feature request here. -->
<!-- Add any other context about the feature request here. -->
13 changes: 13 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
version: 2
updates:
- package-ecosystem: npm
directory: "/"
schedule:
interval: weekly
allow:
- dependency-type: production

- package-ecosystem: github-actions
directory: "/"
schedule:
interval: weekly
126 changes: 69 additions & 57 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -3,93 +3,105 @@ on:
push:
pull_request:
schedule:
- cron: '3 4 * * 5'
- cron: "3 4 * * 5"

jobs:
lint:
runs-on: ubuntu-latest
steps:
- name: Setup Node.js
uses: actions/setup-node@v3
with:
node-version: 18
- name: Checkout repository
uses: actions/checkout@v4
with:
persist-credentials: false

- name: Checkout repository
uses: actions/checkout@v3
with:
persist-credentials: false
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: 22

- name: Install dependencies
run: npm install
- name: Install dependencies
run: npm ci

- name: Lint files
run: npm run lint -- --formatter github
- name: Lint files
run: npm run lint -- --formatter github

- name: Check types
run: npm run lint:types
if: always()
- name: Check types
if: always()
run: npm run lint:types

test:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ ubuntu-latest, macos-latest, windows-latest ]
node_version: [ 18, 19 ]
os: [ubuntu-latest, macos-latest, windows-latest]
node-version: [20, 22, latest]
steps:
- name: Setup Node.js ${{ matrix.node_version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node_version }}
- name: Checkout repository
uses: actions/checkout@v4
with:
persist-credentials: false

- name: Checkout repository
uses: actions/checkout@v3
with:
persist-credentials: false
- name: Setup Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}

- name: Install dependencies
run: npm install
- name: Install dependencies
run: npm ci

- name: Run unit tests
run: npm run test:unit
- name: Run unit tests
run: npm run test:unit

coverage:
runs-on: ubuntu-latest
steps:
- name: Setup Node.js
uses: actions/setup-node@v3
with:
node-version: 18
- name: Checkout repository
uses: actions/checkout@v4
with:
persist-credentials: false

- name: Checkout repository
uses: actions/checkout@v3
with:
persist-credentials: false
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: 22

- name: Install dependencies
run: npm install
- name: Install dependencies
run: npm ci

- name: Run mutation tests and send coverage
run: npm run test:coverage -- --reporters clear-text,dashboard
env:
STRYKER_DASHBOARD_API_KEY: ${{ secrets.STRYKER_DASHBOARD_API_KEY }}
- name: Run mutation tests and send coverage
run: npm run test:coverage -- --reporters clear-text,dashboard
env:
STRYKER_DASHBOARD_API_KEY: ${{ secrets.STRYKER_DASHBOARD_API_KEY }}

analyze:
runs-on: ubuntu-latest
permissions:
actions: read
contents: read
security-events: write

steps:
- name: Checkout repository
uses: actions/checkout@v3
with:
persist-credentials: false

- name: Initialize CodeQL
uses: github/codeql-action/init@v2
with:
languages: 'javascript'

- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v2
- name: Checkout repository
uses: actions/checkout@v4
with:
persist-credentials: false

- name: Initialize CodeQL
uses: github/codeql-action/init@v3
with:
languages: javascript

- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v3

- name: Run Snyk to check for vulnerabilities
uses: snyk/actions/node@master
continue-on-error: true
env:
SNYK_TOKEN: ${{ secrets.SNYK_TOKEN }}
with:
args: --sarif-file-output=snyk.sarif

- name: Upload Snyk result to GitHub Code Scanning
uses: github/codeql-action/upload-sarif@v3
with:
sarif_file: snyk.sarif
Loading