Skip to content

Commit

Permalink
Merge pull request #413 from spencermountain/dev
Browse files Browse the repository at this point in the history
7.6.1
  • Loading branch information
spencermountain authored Jul 31, 2024
2 parents 4052415 + ed310fb commit 2de9c66
Show file tree
Hide file tree
Showing 40 changed files with 3,319 additions and 1,309 deletions.
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

0 comments on commit 2de9c66

Please sign in to comment.