Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

7.6.1 #413

Merged
merged 7 commits into from
Jul 31, 2024
Merged

7.6.1 #413

Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 0 additions & 6 deletions .eslintignore

This file was deleted.

56 changes: 0 additions & 56 deletions .eslintrc

This file was deleted.

2 changes: 1 addition & 1 deletion .github/workflows/build-and-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ jobs:

strategy:
matrix:
node-version: [16.x, 18.x]
node-version: [18.x, 22.x]

steps:
- uses: actions/checkout@v4
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/coverage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jobs:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: '16'
node-version: '20'

- uses: actions/cache@v4
with:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ jobs:
persist-credentials: false
- uses: actions/setup-node@v4
with:
node-version: 16.x
node-version: 20.x

- name: cache dependencies
uses: actions/cache@v1
Expand Down
6 changes: 2 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,8 @@
<a href="https://npmjs.org/package/spacetime">
<img src="https://img.shields.io/npm/v/spacetime.svg?style=flat-square" />
</a>
<a href="https://codecov.io/gh/spencermountain/spacetime">
<img src="https://codecov.io/gh/spencermountain/spacetime/branch/master/graph/badge.svg" />
</a>
<a href="https://bundlephobia.com/result?p=spacetime@latest">
<img src="https://badge-size.herokuapp.com/spencermountain/spacetime/master/builds/spacetime.min.js" />
<img src="https://badgen.net/bundlephobia/min/spacetime" />
</a>
</div>

Expand Down Expand Up @@ -597,6 +594,7 @@ s.dayName()
- [date-fns](https://date-fns.org/) - an battle-hardened client-side Date utility
- [sugarjs/dates](https://sugarjs.com/dates/) - well-made date fns + timezone math
- [Intl.DateTimeFormat](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/DateTimeFormat) - some _[sorta-green](https://caniuse.com/#feat=internationalization)_ in-browser date utilities
- [BurntSushi/Jiff](https://github.com/BurntSushi/jiff) - Rust/wasm date library

thank you to the amazing [timeanddate.com](https://www.timeanddate.com/)

Expand Down
144 changes: 83 additions & 61 deletions builds/spacetime.cjs

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion builds/spacetime.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion builds/spacetime.mjs

Large diffs are not rendered by default.

8 changes: 8 additions & 0 deletions changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,14 @@ This project follows semVer, where:

-->

### 7.6.1 [Feb 2024]
- **[new]** - add stepCount paramater to `.every()` #411
- **[fix]** - eslint update and fixes
- **[change]** - readme improvements #412
- **[update]** - minor DST hour changes
- **[update]** - github actions script
- **[update]** - dependencies

### 7.6.0 [Feb 2024]

- **[fix]** - leap-year string parse issue
Expand Down
39 changes: 39 additions & 0 deletions eslint.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
import * as regexpPlugin from "eslint-plugin-regexp"

export default [
regexpPlugin.configs["flat/recommended"],
{
"ignores": ["**/builds/*"],
"rules": {
"regexp/no-misleading-capturing-group": 0, //todo remove this
"regexp/no-super-linear-backtracking": 0, //todo remove this, too
"comma-dangle": [1, "only-multiline"],
"quotes": [0, "single", "avoid-escape"],
"max-nested-callbacks": [1, 4],
"max-params": [1, 5],
"consistent-return": 1,
"no-bitwise": 1,
"no-empty": 1,
"no-console": 1,
"no-duplicate-imports": 1,
"no-eval": 2,
"no-implied-eval": 2,
"no-mixed-operators": 2,
"no-multi-assign": 2,
"no-nested-ternary": 1,
"no-prototype-builtins": 0,
"no-self-compare": 1,
"no-sequences": 1,
"no-shadow": 2,
"no-unmodified-loop-condition": 1,
"no-use-before-define": 1,
"prefer-const": 0,
"radix": 1,
"no-unused-vars": 1,
"regexp/prefer-d": 0,
"regexp/prefer-w": 0,
"regexp/prefer-range": 0,
"regexp/no-unused-capturing-group": 0
}
}
]
Loading