Skip to content

Commit

Permalink
refactor!: upgrade to Vue 3
Browse files Browse the repository at this point in the history
BREAKING CHANGE: drop support for Vue 2.
  • Loading branch information
fengyuanchen committed Feb 11, 2021
1 parent 89ed95c commit c998a67
Show file tree
Hide file tree
Showing 59 changed files with 18,027 additions and 9,881 deletions.
17 changes: 0 additions & 17 deletions .babelrc

This file was deleted.

9 changes: 0 additions & 9 deletions .editorconfig

This file was deleted.

4 changes: 4 additions & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
*.local*
coverage
dist
node_modules
27 changes: 0 additions & 27 deletions .eslintrc

This file was deleted.

36 changes: 36 additions & 0 deletions .eslintrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
module.exports = {
root: true,
env: {
browser: true,
node: true,
},
extends: [
'airbnb-typescript/base',
'plugin:@typescript-eslint/recommended',
'plugin:vue/vue3-recommended',
],
parser: 'vue-eslint-parser',
parserOptions: {
parser: '@typescript-eslint/parser',
project: 'tsconfig.eslint.json',
sourceType: 'module',
extraFileExtensions: ['.vue'],
},
plugins: [
'@typescript-eslint',
'vue',
],
rules: {
'@typescript-eslint/no-explicit-any': 'off',
'@typescript-eslint/no-var-requires': 'off',
'no-restricted-properties': 'off',
},
overrides: [
{
files: ['tests/**/*.ts'],
env: {
jest: true,
},
},
],
};
2 changes: 0 additions & 2 deletions .gitattributes

This file was deleted.

24 changes: 24 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
name: ci

on:
push:
branches: [main]
pull_request:
branches: [main]

jobs:
build:

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- name: Use Node.js 14
uses: actions/setup-node@v2
with:
node-version: 14
- run: npm install
- run: npm run lint
- run: npm run build
- run: npm test
- run: npm run test:coverage
29 changes: 29 additions & 0 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: deploy

on:
push:
tags:
- v2.*
workflow_dispatch:

jobs:
build:

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- name: Use Node.js 14
uses: actions/setup-node@v2
with:
node-version: 14
- run: npm install
- run: npm run build:docs
- run: |
cd docs/dist
git init
git config user.name "${{ github.actor }}"
git config user.email "${{ github.actor }}@users.noreply.github.com"
git add --all
git commit --message "♥"
git push --force https://x-access-token:${{ secrets.GITHUB_TOKEN }}@github.com/${{ github.repository }}.git master:gh-pages
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
*.local*
*.log
*.map
.DS_Store
coverage
dist
node_modules
4 changes: 4 additions & 0 deletions .stylelintignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
*.local*
coverage
dist
node_modules
9 changes: 0 additions & 9 deletions .travis.yml

This file was deleted.

85 changes: 64 additions & 21 deletions CHANGELOG.md
100755 → 100644
Original file line number Diff line number Diff line change
@@ -1,37 +1,80 @@
# Changelog
# [2.0.0-alpha](https://github.com/fengyuanchen/vue-countdown/compare/v1.1.5...v2.0.0-alpha) (2021-02-11)

## 1.1.5 (Feb 25, 2020)

- Drop an useless dependency (#45).
* refactor!: upgrade to Vue 3 ([badbe5c](https://github.com/fengyuanchen/vue-countdown/commit/badbe5cbf4c6aec5626eb2c04ceceb7ee7e3ea3a))

## 1.1.4 (Dec 21, 2019)

- Fix an issue of losing time about one second per minute (#43).
### BREAKING CHANGES

## 1.1.3 (Sep 14, 2019)
* drop support for Vue 2.

- Continue counting down only when the current tab is visible (#37).

## 1.1.2 (Apr 16, 2019)

- Add missing properties for the `progress` event (#34).
## [1.1.5](https://github.com/fengyuanchen/vue-countdown/compare/v1.1.4...v1.1.5) (2020-02-25)

## 1.1.1 (Apr 5, 2019)

- Use `requestAnimationFrame` instead of `setTimeout` for better performance (#33).

## 1.1.0 (Dec 23, 2018)
## [1.1.4](https://github.com/fengyuanchen/vue-countdown/compare/v1.1.3...v1.1.4) (2019-12-21)

- Add new `now` option for customizing local time.
- Pause the countdown when the page is hidden and continue the countdown when the page is visible again.

## 1.0.1 (Nov 9, 2018)
### Bug Fixes

* avoid losing time for each progress ([0350c13](https://github.com/fengyuanchen/vue-countdown/commit/0350c13e05a33b57f032838e5fe67a8de44ba282)), closes [#43](https://github.com/fengyuanchen/vue-countdown/issues/43)



## [1.1.3](https://github.com/fengyuanchen/vue-countdown/compare/v1.1.2...v1.1.3) (2019-09-14)


### Bug Fixes

* continue counting down only when the current tab is visible ([bb5e6ba](https://github.com/fengyuanchen/vue-countdown/commit/bb5e6ba9d1bccf0a392b158d9483451efa8220da)), closes [#37](https://github.com/fengyuanchen/vue-countdown/issues/37)



## [1.1.2](https://github.com/fengyuanchen/vue-countdown/compare/v1.1.1...v1.1.2) (2019-04-16)


### Bug Fixes

* add missing properties for the progress event ([96b065a](https://github.com/fengyuanchen/vue-countdown/commit/96b065aefea6bca0ad736eac365679ae42482004)), closes [#34](https://github.com/fengyuanchen/vue-countdown/issues/34)



## [1.1.1](https://github.com/fengyuanchen/vue-countdown/compare/v1.1.0...v1.1.1) (2019-04-05)


### Bug Fixes

* improve browser compatibility ([f144fe2](https://github.com/fengyuanchen/vue-countdown/commit/f144fe2e72a0f7fd4269fa6f0dc386198658be03))
* replace setTimeout with requestAnimationFrame ([#33](https://github.com/fengyuanchen/vue-countdown/issues/33)) ([5f1d632](https://github.com/fengyuanchen/vue-countdown/commit/5f1d632449dd975511eb57a528e00f995d913c44))



# [1.1.0](https://github.com/fengyuanchen/vue-countdown/compare/v1.0.1...v1.1.0) (2018-12-23)


### Features

* add `now` option ([f321039](https://github.com/fengyuanchen/vue-countdown/commit/f321039afff73f2463584ba3cdaf222c8465aaba))


### Reverts

* restore build script ([6703bb2](https://github.com/fengyuanchen/vue-countdown/commit/6703bb24954e7eda7e6a0db5c62893a5a983c2f1))



## [1.0.1](https://github.com/fengyuanchen/vue-countdown/compare/v1.0.0...v1.0.1) (2018-11-09)


### Bug Fixes

* start immediately when mounted ([40fb7f5](https://github.com/fengyuanchen/vue-countdown/commit/40fb7f5be1c986d4f5beadd2555f0620e56e7410)), closes [#1](https://github.com/fengyuanchen/vue-countdown/issues/1)



# 1.0.0 (2018-10-21)

- Fix the issue of props updating (#1).

## 1.0.0 (Oct 21, 2018)

- Supports 6 props (options): `autoStart`, `emitEvents`, `interval`, `tag`, `time` and `transform`.
- Supports 3 methods: `start`, `abort` and `end`.
- Supports 4 events: `start`, `progress`, `abort` and `end`.
- Supports 10 scope properties: `days`, `hours`, `minutes`, `seconds`, `milliseconds`, `totalDays`, `totalHours`, `totalMinutes`, `totalSeconds` and `totalMilliseconds`.
Empty file modified LICENSE
100755 → 100644
Empty file.
Loading

0 comments on commit c998a67

Please sign in to comment.