diff --git a/.github/workflows/daily-project-check.yml b/.github/workflows/daily-project-check.yml new file mode 100644 index 00000000..5776ce77 --- /dev/null +++ b/.github/workflows/daily-project-check.yml @@ -0,0 +1,31 @@ +name: Daily project check + +on: + schedule: + # build runs every weekday at 6AM UTC + - cron: '0 6 * * 1-5' + +jobs: + build: + + runs-on: ubuntu-latest + + strategy: + matrix: + node-version: [12.x] + os: [ubuntu-latest, windows-latest, macOS-latest] + + steps: + - uses: actions/checkout@v1 + - name: Use Node.js ${{ matrix.node-version }} + uses: actions/setup-node@v1 + with: + node-version: ${{ matrix.node-version }} + - name: npm install, build, test and lint + run: | + npm i + npm run build + npm run jest:test + npm run lint + env: + CI: true diff --git a/.github/workflows/project-check.yml b/.github/workflows/project-check.yml new file mode 100644 index 00000000..854186a4 --- /dev/null +++ b/.github/workflows/project-check.yml @@ -0,0 +1,34 @@ +name: Project check + +on: + push: + branches: + - master + pull_request: + branches: + - master + +jobs: + build: + + runs-on: ubuntu-latest + + strategy: + matrix: + node-version: [12.x] + os: [ubuntu-latest, windows-latest, macOS-latest] + + steps: + - uses: actions/checkout@v1 + - name: Use Node.js ${{ matrix.node-version }} + uses: actions/setup-node@v1 + with: + node-version: ${{ matrix.node-version }} + - name: npm install, build, test and lint + run: | + npm i + npm run build + npm run jest:test + npm run lint + env: + CI: true diff --git a/CHANGELOG.md b/CHANGELOG.md index 3038358a..e6b05b97 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,14 @@ All notable changes to this project will be documented in this file. Dates are displayed in UTC. +#### [3.3.5](https://github.com/coreui/coreui-react/compare/3.3.4...3.3.5) + +> 9 December 2020 + +- test: add github actions project check [`552a1fd`](https://github.com/coreui/coreui-react/commit/552a1fd7a7dfe5273f55ed1445e98651df80928e) +- fix(CDataTable): missing select perPageItems initial value [`eaca895`](https://github.com/coreui/coreui-react/commit/eaca8955913fafe0f6100952e98ebf7afd34c32b) +- chore: dependencies update [`41f3899`](https://github.com/coreui/coreui-react/commit/41f38999bb2e32c80d23a425c66cb79bca3ec363) + #### [3.3.4](https://github.com/coreui/coreui-react/compare/3.3.3...3.3.4) > 26 November 2020 diff --git a/README.md b/README.md index e49aca58..6e4c9667 100644 --- a/README.md +++ b/README.md @@ -1,13 +1,15 @@ # CoreUI React components library -[![npm package][npm-badge]][npm] -[![npm next][npm-next]][npm] -[![NPM downloads][npm-download]][npm] - -[npm-badge]: https://img.shields.io/npm/v/@coreui/react.png?style=flat-square -[npm-next]: https://img.shields.io/npm/v/@coreui/react/next.png?style=flat-square -[npm]: https://www.npmjs.com/package/@coreui/react -[npm-download]: https://img.shields.io/npm/dm/@coreui/react.svg?style=flat-square +[![Tweet](https://img.shields.io/twitter/url/http/shields.io.svg?style=social)](https://twitter.com/intent/tweet?text=CoreUI%20-%20Free%20Vue%20Admin%20Template%20&url=http://coreui.io/react/&hashtags=bootstrap,admin,template,dashboard,panel,free,angular,react,vue) +[![npm_latest][npm-coreui-react-badge-latest]][npm-coreui-react] +[![NPM downloads][npm-coreui-react-download]][npm-coreui-react] +[![Build](https://img.shields.io/github/workflow/status/coreui/coreui-react/Project%20check?style=flat-square)][coreui] +[![react](https://img.shields.io/badge/react-^16.14.0-lightgrey.svg?style=flat-square&logo=react)][coreui] + +[npm-coreui-react-download]: https://img.shields.io/npm/dm/@coreui/react.svg?style=flat-square +[npm-coreui-react]: https://www.npmjs.com/package/@coreui/react +[npm-coreui-react-badge-latest]: https://img.shields.io/npm/v/@coreui/react/latest?style=flat-square +[coreui]: https://coreui.io/react ##### @coreui/react v3 for [CoreUI 3 for React](https://coreui.io/react/) diff --git a/package.json b/package.json index 16dd9f71..cfdeef55 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@coreui/react", - "version": "3.3.4", + "version": "3.3.5", "description": "CoreUI React Bootstrap 4 components", "license": "MIT", "author": { @@ -50,7 +50,7 @@ "@coreui/utils": "~1.3.1", "@popperjs/core": "^2.5.4", "classnames": "~2.2.6", - "core-js": "^3.8.0", + "core-js": "^3.8.1", "perfect-scrollbar": "~1.5.0", "prop-types": "~15.7.2", "react-transition-group": "~4.4.1", @@ -71,23 +71,23 @@ "@babel/preset-env": "^7.12.7", "@babel/preset-react": "^7.12.7", "@coreui/coreui": "^3.4.0", - "@rollup/plugin-babel": "^5.2.1", + "@rollup/plugin-babel": "^5.2.2", "@rollup/plugin-commonjs": "^15.1.0", "@rollup/plugin-node-resolve": "^9.0.0", "@rollup/plugin-replace": "^2.3.4", - "@storybook/addon-knobs": "^6.1.6", - "@storybook/addon-storysource": "^6.1.6", - "@storybook/react": "^6.1.6", + "@storybook/addon-knobs": "^6.1.10", + "@storybook/addon-storysource": "^6.1.10", + "@storybook/react": "^6.1.10", "auto-changelog": "~2.2.1", "babel-eslint": "^10.1.0", "babel-jest": "^26.6.3", - "babel-loader": "^8.2.1", - "cross-env": "~7.0.2", + "babel-loader": "^8.2.2", + "cross-env": "^7.0.3", "del-cli": "^3.0.1", "enzyme": "^3.11.0", "enzyme-adapter-react-16": "^1.15.5", "enzyme-to-json": "^3.6.1", - "eslint": "^7.14.0", + "eslint": "^7.15.0", "eslint-plugin-import": "^2.22.1", "eslint-plugin-react": "^7.21.5", "expect": "^26.6.2", @@ -97,7 +97,7 @@ "react-dom": "^16.14.0", "react-router-dom": "^5.2.0", "react-test-renderer": "^16.14.0", - "rollup": "^2.33.3", + "rollup": "^2.34.2", "rollup-plugin-peer-deps-external": "~2.2.4", "rollup-plugin-postcss": "~3.1.8", "sinon": "^9.2.1", diff --git a/src/table/CDataTable.js b/src/table/CDataTable.js index 71d00a45..821492c1 100644 --- a/src/table/CDataTable.js +++ b/src/table/CDataTable.js @@ -451,10 +451,8 @@ const CDataTable = props => { className="form-control" onChange={paginationChange} aria-label="changes number of visible items" + value={perPageItems} > - { paginationSelect.values.map((number, key)=>{ return (