@automattic/jetpack-scan 1.2.0 → 1.2.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -5,6 +5,12 @@ All notable changes to this project will be documented in this file.
5
5
  The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/)
6
6
  and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
7
7
 
8
+ ## [1.2.1] - 2025-11-21
9
+ ### Changed
10
+ - Replace icons removed from @wordpress/icons with alternatives. [#45760]
11
+ - Update dependencies. [#45488]
12
+ - Update package dependencies. [#45551] [#45652] [#45735] [#45737] [#45915] [#45958] [#46022]
13
+
8
14
  ## [1.2.0] - 2025-10-10
9
15
  ### Added
10
16
  - Add missing types. [#44787]
@@ -151,6 +157,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
151
157
  ### Removed
152
158
  - Updated dependencies. [#39754]
153
159
 
160
+ [1.2.1]: https://github.com/Automattic/jetpack-scan/compare/v1.2.0...v1.2.1
154
161
  [1.2.0]: https://github.com/Automattic/jetpack-scan/compare/v1.1.0...v1.2.0
155
162
  [1.1.0]: https://github.com/Automattic/jetpack-scan/compare/v1.0.2...v1.1.0
156
163
  [1.0.2]: https://github.com/Automattic/jetpack-scan/compare/v1.0.1...v1.0.2
@@ -2,7 +2,7 @@ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
2
  import { Text, Button } from '@automattic/jetpack-components';
3
3
  import { Notice, Spinner } from '@wordpress/components';
4
4
  import { __ } from '@wordpress/i18n';
5
- import { Icon, warning } from '@wordpress/icons';
5
+ import { Icon, cautionFilled as warning } from '@wordpress/icons';
6
6
  import { useContext } from 'react';
7
7
  import { ThreatModalContext } from "./index.js";
8
8
  import styles from './styles.module.scss';
@@ -345,7 +345,6 @@ export default function ThreatsDataViews({ data, filters, onChangeSelection, isT
345
345
  id: THREAT_ACTION_IGNORE,
346
346
  label: __('Ignore', 'jetpack-scan'),
347
347
  isPrimary: true,
348
- isDestructive: true,
349
348
  callback: onIgnoreThreats,
350
349
  isEligible(item) {
351
350
  if (!onIgnoreThreats) {
@@ -363,7 +362,6 @@ export default function ThreatsDataViews({ data, filters, onChangeSelection, isT
363
362
  id: THREAT_ACTION_UNIGNORE,
364
363
  label: __('Unignore', 'jetpack-scan'),
365
364
  isPrimary: true,
366
- isDestructive: true,
367
365
  callback: onUnignoreThreats,
368
366
  isEligible(item) {
369
367
  if (!onUnignoreThreats) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@automattic/jetpack-scan",
3
- "version": "1.2.0",
3
+ "version": "1.2.1",
4
4
  "private": false,
5
5
  "description": "A JS client for consuming Jetpack Scan services",
6
6
  "homepage": "https://github.com/Automattic/jetpack/tree/HEAD/projects/js-packages/scan/#readme",
@@ -32,35 +32,35 @@
32
32
  "typecheck": "tsc --noEmit"
33
33
  },
34
34
  "dependencies": {
35
- "@automattic/jetpack-api": "^1.0.10",
36
- "@automattic/jetpack-base-styles": "^1.0.10",
37
- "@automattic/jetpack-components": "^1.3.5",
38
- "@wordpress/api-fetch": "7.31.0",
39
- "@wordpress/components": "30.4.0",
40
- "@wordpress/dataviews": "9.1.0",
41
- "@wordpress/date": "5.31.0",
42
- "@wordpress/element": "6.31.0",
43
- "@wordpress/i18n": "6.4.0",
44
- "@wordpress/icons": "10.31.0",
45
- "@wordpress/url": "4.31.0",
35
+ "@automattic/jetpack-api": "^1.0.11",
36
+ "@automattic/jetpack-base-styles": "^1.0.11",
37
+ "@automattic/jetpack-components": "^1.3.12",
38
+ "@wordpress/api-fetch": "7.35.0",
39
+ "@wordpress/components": "30.8.0",
40
+ "@wordpress/dataviews": "10.2.0",
41
+ "@wordpress/date": "5.35.0",
42
+ "@wordpress/element": "6.35.0",
43
+ "@wordpress/i18n": "6.8.0",
44
+ "@wordpress/icons": "11.2.0",
45
+ "@wordpress/url": "4.35.0",
46
46
  "debug": "4.4.1",
47
47
  "react": "^18.2.0",
48
48
  "react-dom": "^18.2.0"
49
49
  },
50
50
  "devDependencies": {
51
- "@storybook/addon-docs": "9.0.15",
52
- "@storybook/react": "9.0.15",
53
- "@testing-library/dom": "10.4.0",
51
+ "@storybook/addon-docs": "10.0.8",
52
+ "@storybook/react": "10.0.8",
53
+ "@testing-library/dom": "10.4.1",
54
54
  "@testing-library/react": "16.3.0",
55
55
  "@types/jest": "30.0.0",
56
- "@types/react": "18.3.25",
57
- "jest": "30.0.4",
58
- "jest-environment-jsdom": "30.0.4",
59
- "storybook": "9.0.15",
60
- "typescript": "5.9.2"
56
+ "@types/react": "18.3.26",
57
+ "jest": "30.2.0",
58
+ "jest-environment-jsdom": "30.2.0",
59
+ "storybook": "10.0.8",
60
+ "typescript": "5.9.3"
61
61
  },
62
62
  "peerDependencies": {
63
- "@wordpress/i18n": "6.4.0",
63
+ "@wordpress/i18n": "6.8.0",
64
64
  "react": "^18.2.0",
65
65
  "react-dom": "^18.2.0"
66
66
  }
@@ -1,7 +1,7 @@
1
1
  import { Text, Button } from '@automattic/jetpack-components';
2
2
  import { Notice, Spinner } from '@wordpress/components';
3
3
  import { __ } from '@wordpress/i18n';
4
- import { Icon, warning } from '@wordpress/icons';
4
+ import { Icon, cautionFilled as warning } from '@wordpress/icons';
5
5
  import { useContext } from 'react';
6
6
  import { ThreatModalContext } from './index.tsx';
7
7
  import styles from './styles.module.scss';
@@ -441,7 +441,6 @@ export default function ThreatsDataViews( {
441
441
  id: THREAT_ACTION_IGNORE,
442
442
  label: __( 'Ignore', 'jetpack-scan' ),
443
443
  isPrimary: true,
444
- isDestructive: true,
445
444
  callback: onIgnoreThreats,
446
445
  isEligible( item ) {
447
446
  if ( ! onIgnoreThreats ) {
@@ -460,7 +459,6 @@ export default function ThreatsDataViews( {
460
459
  id: THREAT_ACTION_UNIGNORE,
461
460
  label: __( 'Unignore', 'jetpack-scan' ),
462
461
  isPrimary: true,
463
- isDestructive: true,
464
462
  callback: onUnignoreThreats,
465
463
  isEligible( item ) {
466
464
  if ( ! onUnignoreThreats ) {