Skip to content

Commit 7f0d33e

Browse files
author
Olavo Parno
committed
Merge branch 'develop'
2 parents 7170216 + 99ca1bd commit 7f0d33e

File tree

17 files changed

+13648
-46326
lines changed

17 files changed

+13648
-46326
lines changed

.eslintrc.js

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ module.exports = {
2626
},
2727
},
2828
},
29+
ignorePatterns: ['example/**/*'],
2930
rules: {
3031
'react-hooks/rules-of-hooks': 'error',
3132
'react-hooks/exhaustive-deps': 'error',
@@ -36,6 +37,23 @@ module.exports = {
3637
'import/extensions': ['error', 'never'],
3738
'import/prefer-default-export': 'off',
3839
'import/no-unresolved': ['error', { ignore: ['react-hooks-fetch'] }],
40+
'import/no-extraneous-dependencies': [
41+
'error',
42+
{
43+
devDependencies: [
44+
'**/*.test.ts',
45+
'**/*.test.tsx',
46+
'**/__tests__/**',
47+
'**/test/**',
48+
'**/tests/**',
49+
'**/jest.config.js',
50+
'**/jest.setup.js',
51+
'**/test-utils/**',
52+
'**/testing-library/**',
53+
'@testing-library/**',
54+
],
55+
},
56+
],
3957
camelcase: [
4058
'error',
4159
{

.github/workflows/npm-publish.yml

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,23 +9,28 @@ jobs:
99
build:
1010
runs-on: ubuntu-latest
1111
steps:
12-
- uses: actions/checkout@v2
13-
- uses: actions/setup-node@v2
12+
- uses: actions/checkout@v4
13+
- uses: actions/setup-node@v4
1414
with:
1515
node-version: 16
16+
cache: 'npm'
1617
- run: npm install
1718
- run: npm run build
19+
- run: npm test
1820

1921
publish-npm:
2022
needs: build
2123
runs-on: ubuntu-latest
2224
steps:
23-
- uses: actions/checkout@v2
24-
- uses: actions/setup-node@v2
25+
- uses: actions/checkout@v4
26+
- uses: actions/setup-node@v4
2527
with:
2628
node-version: 16
2729
registry-url: https://registry.npmjs.org/
30+
cache: 'npm'
2831
- run: npm install
32+
- run: npm run build
33+
- run: npm test
2934
- run: npm publish
3035
env:
3136
NODE_AUTH_TOKEN: ${{secrets.NPM_AUTH_TOKEN}}

.github/workflows/pull-request.yml

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -13,15 +13,16 @@ jobs:
1313

1414
strategy:
1515
matrix:
16-
node-version: [12.x, 14.x, 16.x]
17-
# See supported Node.js release schedule at https://nodejs.org/en/about/releases/
16+
node-version: [16.x, 18.x, 20.x]
17+
# Updated to latest LTS and current Node.js versions
1818

1919
steps:
20-
- uses: actions/checkout@v2
20+
- uses: actions/checkout@v4
2121
- name: Use Node.js ${{ matrix.node-version }}
22-
uses: actions/setup-node@v2
22+
uses: actions/setup-node@v4
2323
with:
2424
node-version: ${{ matrix.node-version }}
25-
cache: "npm"
26-
- run: npm ci
25+
cache: 'npm'
26+
- run: npm install
2727
- run: npm run build
28+
- run: npm test -- --coverage

CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22

33
All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
44

5+
### [1.4.4](https://github.com/the-bugging/react-use-presentation/compare/v1.4.3...v1.4.4) (2025-06-15)
6+
57
### [1.4.3](https://github.com/the-bugging/react-use-presentation/compare/v1.4.2...v1.4.3) (2023-02-26)
68

79

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010

1111
| Statements | Branches | Functions | Lines |
1212
| ----------------------------------------------------------------------------- | ------------------------------------------------------------------------- | --------------------------------------------------------------------------- | ------------------------------------------------------------------- |
13-
| ![Statements](https://img.shields.io/badge/statements-100%25-brightgreen.svg?style=flat) | ![Branches](https://img.shields.io/badge/branches-100%25-brightgreen.svg?style=flat) | ![Functions](https://img.shields.io/badge/functions-100%25-brightgreen.svg?style=flat) | ![Lines](https://img.shields.io/badge/lines-100%25-brightgreen.svg?style=flat) |
13+
| ![Statements](https://img.shields.io/badge/statements-80.95%25-yellow.svg) | ![Branches](https://img.shields.io/badge/branches-78.79%25-red.svg) | ![Functions](https://img.shields.io/badge/functions-100%25-brightgreen.svg) | ![Lines](https://img.shields.io/badge/lines-84.81%25-yellow.svg) |
1414

1515
## Table of Contents
1616

0 commit comments

Comments
 (0)