Skip to content

Commit

Permalink
Merge branch 'master' into master
Browse files Browse the repository at this point in the history
  • Loading branch information
millarm authored Sep 26, 2024
2 parents 4ff2d1f + 9f2061f commit 9c7a4e0
Show file tree
Hide file tree
Showing 66 changed files with 8,690 additions and 7,435 deletions.
5 changes: 5 additions & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
dist/
coverage/
webpack.config.js
.eslintrc.js
jest.config.js
138 changes: 138 additions & 0 deletions .eslintrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,138 @@
module.exports = {
env: {
browser: true,
node: true,
},
extends: [
'prettier',
'eslint:recommended',
'plugin:@typescript-eslint/recommended',
],
parser: '@typescript-eslint/parser',
parserOptions: {
project: 'tsconfig.json',
sourceType: 'module',
},
plugins: [
'eslint-plugin-import',
'eslint-plugin-jsdoc',
'@typescript-eslint',
],
root: true,
rules: {
'@typescript-eslint/await-thenable': 'error',
'@typescript-eslint/consistent-type-assertions': 'error',
'@typescript-eslint/member-delimiter-style': [
'error',
{
multiline: {
delimiter: 'none',
requireLast: true,
},
singleline: {
delimiter: 'semi',
requireLast: false,
},
},
],
'@typescript-eslint/naming-convention': 'off',
'@typescript-eslint/no-empty-function': 'error',
'@typescript-eslint/no-extra-semi': 'off',
'@typescript-eslint/no-explicit-any': 'error',
'@typescript-eslint/no-floating-promises': 'error',
'@typescript-eslint/no-misused-new': 'error',
'@typescript-eslint/no-unnecessary-qualifier': 'error',
'@typescript-eslint/no-unnecessary-type-assertion': 'error',
'@typescript-eslint/no-unused-expressions': [
'error',
{
allowTaggedTemplates: true,
allowShortCircuit: true,
},
],
'@typescript-eslint/prefer-namespace-keyword': 'error',
'@typescript-eslint/quotes': [
'error',
'single',
{
avoidEscape: true,
},
],
'@typescript-eslint/semi': 'off',
'@typescript-eslint/triple-slash-reference': [
'error',
{
path: 'always',
types: 'prefer-import',
lib: 'always',
},
],
'@typescript-eslint/type-annotation-spacing': 'error',
'@typescript-eslint/unified-signatures': 'error',
'brace-style': ['error', '1tbs'],
'comma-dangle': 'off',
curly: ['error', 'multi-line'],
'eol-last': 'error',
eqeqeq: ['error', 'smart'],
'id-denylist': [
'error',
'any',
'Number',
'String',
'string',
'Boolean',
'boolean',
'Undefined',
'undefined',
],
'id-match': 'error',
'import/no-deprecated': 'error',
'jsdoc/check-alignment': 'error',
'jsdoc/check-indentation': 'error',
'jsdoc/newline-after-description': 'error',
'new-parens': 'error',
'no-caller': 'error',
'no-case-declarations': 'off',
'no-cond-assign': 'error',
'no-constant-condition': 'error',
'no-control-regex': 'error',
'no-duplicate-imports': 'error',
'no-empty': 'error',
'no-empty-function': 'error',
'no-eval': 'error',
'no-fallthrough': 'error',
'no-invalid-regexp': 'error',
'no-multiple-empty-lines': 'error',
'no-redeclare': 'error',
'no-regex-spaces': 'error',
'no-return-await': 'error',
'no-throw-literal': 'error',
'no-trailing-spaces': 'error',
'no-underscore-dangle': 'off',
'no-unexpected-multiline': 'off',
'no-unused-expressions': 'off',
'no-unused-labels': 'error',
'no-var': 'error',
'one-var': ['error', 'never'],
quotes: 'off',
radix: 'error',
semi: 'off',
'space-in-parens': ['error', 'never'],
'spaced-comment': [
'error',
'always',
{
markers: ['/'],
},
],
'use-isnan': 'error',
},
overrides: [
{
files: ['*.test.*'],
rules: {
'@typescript-eslint/no-unused-expressions': 'off',
},
},
],
}
1 change: 1 addition & 0 deletions .github/FUNDING.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
github: [jakubroztocil, davidgoli]
6 changes: 3 additions & 3 deletions .github/issue_template.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,12 @@ Thank you for taking an interest in `rrule`! Please include the following in
your report:

- [ ] Verify that you've looked through existing issues for duplicates before
creating a new one
creating a new one
- [ ] Code sample reproducing the issue. Be sure to include all input values you
are using such as the exact RRule string and dates.
are using such as the exact RRule string and dates.
- [ ] Expected output
- [ ] Actual output
- [ ] The version of `rrule` you are using
- [ ] Your operating system
- [ ] Your local timezone (run `$ date` from the command line
of the machine showing the bug)
of the machine showing the bug)
22 changes: 22 additions & 0 deletions .github/workflows/nodejs.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
name: Node CI
on: [push, pull_request]
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [14.x, 16.x, 18.x]
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
with:
node-version: ${{ matrix.node-version }}
- run: npm install -g codecov nyc
- run: yarn install
- run: yarn build
- run: LANG=en_CA TZ=America/Vancouver yarn test
- run: LANG=en_US TZ=America/Los_Angeles yarn test
- run: LANG=sw_KE TZ=Africa/Nairobi yarn test
- run: LANG=en_KI TZ=Pacific/Kiritimati yarn test
- run: LANG=jp_JP TZ=Asia/Tokyo yarn test-ci
- run: nyc report --reporter=json && codecov -t ${{ secrets.CODECOV_REPO_TOKEN }} -f coverage/*.json
4 changes: 4 additions & 0 deletions .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#!/usr/bin/env sh
. "$(dirname -- "$0")/_/husky.sh"

yarn lint-staged
8 changes: 8 additions & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
node_modules/
bower_components/
.idea
.vscode
*.log
coverage
.nyc_output
dist/
6 changes: 6 additions & 0 deletions .prettierrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"semi": false,
"tabWidth": 2,
"useTabs": false,
"singleQuote": true
}
15 changes: 0 additions & 15 deletions .travis.yml

This file was deleted.

62 changes: 62 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,67 @@
### Changelog

- 2.8.0 (2023-11-10)

- Bugfixes:
- Don't minify `rrule.js` (minified version is still at `rrule.min.js`) ([#606](https://github.com/jkbrzt/rrule/pull/606))
- Ignore tzid in NLP ([#528](https://github.com/jkbrzt/rrule/pull/528))
- Remove unnecessary offset in daysBetween() ([#539](https://github.com/jkbrzt/rrule/pull/539))
- Convert test suite from mocha to jest ([#605](https://github.com/jkbrzt/rrule/pull/605))
- Export `ALL_WEEKDAYS` ([#591](https://github.com/jkbrzt/rrule/pull/591))
- Support weekly by hour texts ([#590](https://github.com/jkbrzt/rrule/pull/590))

- 2.7.2 (2023-02-10)

- Bugfixes:
- Fix rezonedDate ([#523](https://github.com/jakubroztocil/rrule/issues/523))
- Export datetime ([#551](https://github.com/jakubroztocil/rrule/issues/551))
- Fixes types for `before()` and `after()` ([#560](https://github.com/jakubroztocil/rrule/issues/560))
- Update README (https://github.com/jakubroztocil/rrule/pull/543)

- 2.7.1 (2022-07-10)

- Internal:
- Upgrade build dependencies (#515)
- Migrate from tslint to eslint (#514)
- Fix precommit & lint warnings (#519)
- Fix invalid date formats in tests (#517)
- Remove default exports (#513)
- Point to esm correctly (#516)

- 2.7.0 (2022-06-05)

- Features:
- **BREAKING CHANGE** Removes default export in favor of named exports
- Removes Luxon dependency (#508)

- 2.6.8 (2021-02-04)

- Bugfixes:
- Solve circular imports (#444)

- 2.6.6 (2020-08-23)

- Bugfixes:
- Fixed broken npm package (#417)

- 2.6.5 (2020-08-23)
- Bugfixes:
- `luxon`-less binary should not contain any `luxon` imports (#410)
- Fixed `toText` pluralization of “minutes“ (#415)
- 2.6.4 (2019-12-18)
- Bugfixes:
- Calculating series with unknown timezones will produce infinite loop (#320)
- Internal:
- Upgrade build dependencies
- 2.6.3 (2019-11-24)
- Features
- Allow passing `WeekdayStr` to `byweekday` like the types suggest is possible (#371)
- 2.6.2 (2019-06-08)
- Features
- Allow two digits for `BYDAY` (#330)
- Add a quick way to format `until` in `toText` (#313)
- Add support for parsing an rrule string without frequency (#339)
- Add getters for `rrules`, `exrules`, `rdates`, `exdates` (#347)
- 2.6.0 (2019-01-03)
- Bugfixes:
- Fix sourcemap structure (#303)
Expand Down
Loading

0 comments on commit 9c7a4e0

Please sign in to comment.