Skip to content

Commit 3b2ca63

Browse files
committed
v3.0.6: Update of dependencies
1 parent 8b6e8ec commit 3b2ca63

30 files changed

+589
-535
lines changed

.circleci/config.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,22 +19,22 @@ version: 2.1
1919
jobs:
2020
test-node-20: # Maintenance LTS, EOL 2026.04.30
2121
docker:
22-
- image: cimg/node:20.19
22+
- image: cimg/node:20.20
2323
steps:
2424
*install-and-test
2525
test-node-22: # Maintenance LTS, EOL 2027.04.30
2626
docker:
27-
- image: cimg/node:22.21
27+
- image: cimg/node:22.22
2828
steps:
2929
*install-and-test
3030
test-node-24: # Active LTS, EOL 2028.04.30
3131
docker:
32-
- image: cimg/node:24.12
32+
- image: cimg/node:24.13
3333
steps:
3434
*install-and-test
3535
test-node-25: # Current, EOL 2026.06.01
3636
docker:
37-
- image: cimg/node:25.2
37+
- image: cimg/node:25.5
3838
steps:
3939
*install-and-test
4040
build-and-test:

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,4 @@ __coverage__
22
*.tgz
33
build
44
node_modules
5+
/.eslintcache

.nvmrc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
24.12.0
1+
24.13.0

__tests__/api/base.test.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
/** @jest-environment jsdom */
22

3+
import { renderClient } from '../../jest/browser-utils';
34
import { Helmet } from '../../src';
45
import { HELMET_ATTRIBUTE } from '../../src/constants';
5-
import { renderClient } from '../../jest/browser-utils';
66

77
describe('base tag', () => {
88
describe('API', () => {

__tests__/api/bodyAttributes.test.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
/** @jest-environment jsdom */
22

3+
import { renderClient } from '../../jest/browser-utils';
34
import { type BodyProps, Helmet } from '../../src';
45
import { HELMET_ATTRIBUTE, HTML_TAG_MAP } from '../../src/constants';
5-
import { renderClient } from '../../jest/browser-utils';
66

77
describe('body attributes', () => {
88
describe('valid attributes', () => {

__tests__/api/client.test.tsx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
/** @jest-environment jsdom */
22

3-
import { type OnChangeClientState, Helmet } from '../../src';
4-
53
import { renderClient } from '../../jest/browser-utils';
64

5+
import { Helmet, type OnChangeClientState } from '../../src';
6+
77
describe('onChangeClientState', () => {
88
describe('API', () => {
99
// eslint-disable-next-line complexity
1010
it('when handling client state change, calls the function with new state, addedTags and removedTags', () => {
11-
const onChange = jest.fn<unknown, Parameters<OnChangeClientState>>();
11+
const onChange = jest.fn<undefined, Parameters<OnChangeClientState>>();
1212
renderClient(
1313
<div>
1414
<Helmet
@@ -105,7 +105,7 @@ describe('onChangeClientState', () => {
105105
describe('Declarative API', () => {
106106
// eslint-disable-next-line complexity
107107
it('when handling client state change, calls the function with new state, addedTags and removedTags', () => {
108-
const onChange = jest.fn<unknown, Parameters<OnChangeClientState>>();
108+
const onChange = jest.fn<undefined, Parameters<OnChangeClientState>>();
109109
renderClient(
110110
<div>
111111
<Helmet onChangeClientState={onChange}>

__tests__/api/htmlAttributes.test.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
/** @jest-environment jsdom */
22

3+
import { renderClient } from '../../jest/browser-utils';
34
import { Helmet } from '../../src';
45
import { HELMET_ATTRIBUTE } from '../../src/constants';
5-
import { renderClient } from '../../jest/browser-utils';
66

77
describe('html attributes', () => {
88
describe('API', () => {

__tests__/api/link.test.tsx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
/** @jest-environment jsdom */
22

3+
import { renderClient } from '../../jest/browser-utils';
34
import { Helmet } from '../../src';
45
import { HELMET_ATTRIBUTE } from '../../src/constants';
5-
import { renderClient } from '../../jest/browser-utils';
66

77
describe('link tags', () => {
88
describe('API', () => {
@@ -359,10 +359,10 @@ describe('link tags', () => {
359359
// them is treated as the actual primary attribute. Does not look as
360360
// a good, intuitive behavior to me... perhaps to be reworked.
361361
// @ts-expect-error "pre-existing"
362-
{ rel: 'icon', sizes: '192x192', href: null }, // eslint-disable-line sort-keys
362+
{ rel: 'icon', sizes: '192x192', href: null }, // eslint-disable-line perfectionist/sort-objects
363363
{
364364
rel: 'canonical',
365-
href: 'http://localhost/helmet/component', // eslint-disable-line sort-keys
365+
href: 'http://localhost/helmet/component', // eslint-disable-line perfectionist/sort-objects
366366
},
367367
]}
368368
/>,
@@ -647,7 +647,7 @@ describe('link tags', () => {
647647
// them is treated as the actual primary attribute. Does not look as
648648
// a good, intuitive behavior to me... perhaps to be reworked.
649649
// @ts-expect-error "pre-existing"
650-
href={null} // eslint-disable-line react/jsx-sort-props, @stylistic/jsx-sort-props
650+
href={null} // eslint-disable-line perfectionist/sort-jsx-props
651651
/>
652652
<link href="http://localhost/helmet/component" rel="canonical" />
653653
</Helmet>,

__tests__/api/meta.test.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
/** @jest-environment jsdom */
22

3+
import { renderClient } from '../../jest/browser-utils';
34
import { Helmet } from '../../src';
45
import { HELMET_ATTRIBUTE } from '../../src/constants';
5-
import { renderClient } from '../../jest/browser-utils';
66

77
describe('meta tags', () => {
88
describe('API', () => {
@@ -273,7 +273,7 @@ describe('meta tags', () => {
273273
const originalConsole = global.console;
274274
// TODO: Revise.
275275
// eslint-disable-next-line jest/prefer-spy-on
276-
global.console.warn = jest.fn();
276+
global.console.warn = jest.fn<undefined, []>();
277277

278278
renderClient(
279279
<Helmet

__tests__/api/noscript.test.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
/** @jest-environment jsdom */
22

3+
import { renderClient } from '../../jest/browser-utils';
34
import { Helmet } from '../../src';
45
import { HELMET_ATTRIBUTE } from '../../src/constants';
5-
import { renderClient } from '../../jest/browser-utils';
66

77
describe('noscript tags', () => {
88
describe('API', () => {

0 commit comments

Comments
 (0)