Skip to content

Commit

Permalink
kerosene-ui: Add missing lodash dependency (#75)
Browse files Browse the repository at this point in the history
* kerosene-ui: Add missing lodash dependency

* Update Node.js version matrix

* kerosene: Fix typings
  • Loading branch information
nhardy committed Jul 10, 2020
1 parent 49b91e9 commit 96036d0
Show file tree
Hide file tree
Showing 6 changed files with 1,942 additions and 1,993 deletions.
46 changes: 23 additions & 23 deletions .github/workflows/nodejs.yml
Expand Up @@ -15,37 +15,37 @@ jobs:

strategy:
matrix:
node-version: [10.x, 12.x, 13.x]
node-version: [10.x, 12.x, 14.x]

steps:
- name: Checkout Repository
uses: actions/checkout@v2
with:
fetch-depth: 0
- name: Checkout Repository
uses: actions/checkout@v2
with:
fetch-depth: 0

- name: Setup Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}
- name: Setup Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}

- name: Install dependencies
run: yarn
- name: Install dependencies
run: yarn

- name: Build
run: yarn build
- name: Build
run: yarn build

- name: Check types
run: yarn tsc
- name: Check types
run: yarn tsc

- name: Run tests
run: yarn test:coverage
- name: Run tests
run: yarn test:coverage

- name: Coveralls
uses: coverallsapp/github-action@master
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
env:
CI: true
- name: Coveralls
uses: coverallsapp/github-action@master
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
env:
CI: true

release:
name: Release
Expand Down
10 changes: 5 additions & 5 deletions packages/kerosene-test/package.json
@@ -1,6 +1,6 @@
{
"name": "@kablamo/kerosene-test",
"version": "0.0.7",
"version": "0.0.8",
"repository": "https://github.com/KablamoOSS/kerosene/tree/master/packages/kerosene-test",
"bugs": {
"url": "https://github.com/KablamoOSS/kerosene/issues"
Expand Down Expand Up @@ -46,10 +46,10 @@
"utils"
],
"dependencies": {
"@types/lodash": "^4.14.149",
"@types/sinon": "^7.0.13",
"lodash": "^4.17.15",
"sinon": "^7.4.1"
"@types/lodash": "^4.14.157",
"@types/sinon": "^9.0.4",
"lodash": "^4.17.19",
"sinon": "^9.0.2"
},
"devDependencies": {
"react": "^16.13.1",
Expand Down
8 changes: 5 additions & 3 deletions packages/kerosene-ui/package.json
@@ -1,6 +1,6 @@
{
"name": "@kablamo/kerosene-ui",
"version": "0.0.18",
"version": "0.0.19",
"repository": "https://github.com/KablamoOSS/kerosene/tree/master/packages/kerosene-ui",
"bugs": {
"url": "https://github.com/KablamoOSS/kerosene/issues"
Expand All @@ -21,8 +21,10 @@
"node": ">= 10"
},
"dependencies": {
"@babel/runtime": "^7.10.2",
"@kablamo/kerosene": "^0.0.17"
"@babel/runtime": "^7.10.4",
"@kablamo/kerosene": "^0.0.18",
"@types/lodash": "^4.14.157",
"lodash": "^4.17.19"
},
"devDependencies": {
"react": "^16.13.1",
Expand Down
12 changes: 6 additions & 6 deletions packages/kerosene/package.json
@@ -1,6 +1,6 @@
{
"name": "@kablamo/kerosene",
"version": "0.0.17",
"version": "0.0.18",
"repository": "https://github.com/KablamoOSS/kerosene/tree/master/packages/kerosene",
"bugs": {
"url": "https://github.com/KablamoOSS/kerosene/issues"
Expand All @@ -21,12 +21,12 @@
"node": ">= 10"
},
"dependencies": {
"@babel/runtime": "^7.10.2",
"@types/lodash": "^4.14.149",
"@babel/runtime": "^7.10.4",
"@types/lodash": "^4.14.157",
"content-type": "^1.0.4",
"core-js-pure": "^3.6.4",
"date-fns": "^2.10.0",
"lodash": "^4.17.15"
"core-js-pure": "^3.6.5",
"date-fns": "^2.14.0",
"lodash": "^4.17.19"
},
"devDependencies": {},
"peerDependencies": {},
Expand Down
8 changes: 4 additions & 4 deletions packages/kerosene/src/datetime/getCalendarWeeks.spec.ts
Expand Up @@ -24,7 +24,7 @@ describe("#getCalendarWeeks", () => {
expect(weeks).toHaveLength(4);
weeks.forEach(week => expect(week).toHaveLength(DAYS_PER_WEEK));

weeks.flat<Date>().forEach((day, index) => {
weeks.flat().forEach((day, index) => {
expectSameDay(day, 2021, Month.FEBRUARY, index + 1);
});
});
Expand All @@ -37,7 +37,7 @@ describe("#getCalendarWeeks", () => {
expect(weeks).toHaveLength(5);
weeks.forEach(week => expect(week).toHaveLength(DAYS_PER_WEEK));

weeks.flat<Date>().forEach((day, index) => {
weeks.flat().forEach((day, index) => {
expectSameDay(
day,
2019,
Expand All @@ -55,7 +55,7 @@ describe("#getCalendarWeeks", () => {
expect(weeks).toHaveLength(5);
weeks.forEach(week => expect(week).toHaveLength(DAYS_PER_WEEK));

weeks.flat<Date>().forEach((day, index) => {
weeks.flat().forEach((day, index) => {
expectSameDay(
day,
2019,
Expand All @@ -77,7 +77,7 @@ describe("#getCalendarWeeks", () => {
expect(weeks).toHaveLength(6);
weeks.forEach(week => expect(week).toHaveLength(DAYS_PER_WEEK));

weeks.flat<Date>().forEach((day, index) => {
weeks.flat().forEach((day, index) => {
expectSameDay(
day,
2019,
Expand Down

0 comments on commit 96036d0

Please sign in to comment.