cozy-harvest-lib 32.1.0 → 32.2.0

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
@@ -3,6 +3,18 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ # [32.2.0](https://github.com/cozy/cozy-libs/compare/cozy-harvest-lib@32.1.0...cozy-harvest-lib@32.2.0) (2024-12-23)
7
+
8
+
9
+ ### Features
10
+
11
+ * **cozy-harvest:** Add missing react-redux dep ([27ee882](https://github.com/cozy/cozy-libs/commit/27ee8822365d51031a8b61ee4816005c2ea5dc33))
12
+ * **cozy-harvest:** Prefer use createMockClient for tests ([26a5e30](https://github.com/cozy/cozy-libs/commit/26a5e3076cb8a0928ca95bec1a9a75440ec7e7cb))
13
+
14
+
15
+
16
+
17
+
6
18
  # [32.1.0](https://github.com/cozy/cozy-libs/compare/cozy-harvest-lib@32.0.0...cozy-harvest-lib@32.1.0) (2024-12-23)
7
19
 
8
20
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cozy-harvest-lib",
3
- "version": "32.1.0",
3
+ "version": "32.2.0",
4
4
  "description": "Provides logic, modules and components for Cozy's harvest applications.",
5
5
  "main": "dist/index.js",
6
6
  "author": "Cozy",
@@ -42,6 +42,7 @@
42
42
  "react-final-form": "^3.7.0",
43
43
  "react-json-print": "^0.1.3",
44
44
  "react-markdown": "^4.2.2",
45
+ "react-redux": "7.2.2",
45
46
  "use-deep-compare-effect": "^1.8.1",
46
47
  "uuid": "^3.3.2"
47
48
  },
@@ -74,7 +75,7 @@
74
75
  "cozy-realtime": "^5.6.2",
75
76
  "cozy-tsconfig": "^1.8.1",
76
77
  "cozy-ui": "^115.0.2",
77
- "cozy-viewer": "^11.3.3",
78
+ "cozy-viewer": "^11.3.4",
78
79
  "enzyme": "3.11.0",
79
80
  "enzyme-adapter-react-16": "1.15.6",
80
81
  "form-data": "4.0.0",
@@ -110,5 +111,5 @@
110
111
  "react-router-dom": ">=6.14.2"
111
112
  },
112
113
  "sideEffects": false,
113
- "gitHead": "a84add131ad90efeac4ebb6753905fa8f8a448f9"
114
+ "gitHead": "696d8e4c49efe1b1d5fcc3e63a8ab6a9fd6f0640"
114
115
  }
package/test/AppLike.jsx CHANGED
@@ -1,7 +1,10 @@
1
1
  import React from 'react'
2
2
  import { Provider as ReduxProvider } from 'react-redux'
3
3
 
4
- import CozyClient, { CozyProvider as CozyClientProvider } from 'cozy-client'
4
+ import {
5
+ CozyProvider as CozyClientProvider,
6
+ createMockClient
7
+ } from 'cozy-client'
5
8
  import { useCozyDialog } from 'cozy-ui/transpiled/react/CozyDialogs'
6
9
  import AlertProvider from 'cozy-ui/transpiled/react/providers/Alert'
7
10
  import { BreakpointsProvider } from 'cozy-ui/transpiled/react/providers/Breakpoints'
@@ -11,8 +14,7 @@ import I18n from 'cozy-ui/transpiled/react/providers/I18n'
11
14
  import DialogContext from '../src/components/DialogContext'
12
15
  import enLocale from '../src/locales/en.json'
13
16
 
14
- const defaultClient = new CozyClient()
15
- defaultClient.ensureStore()
17
+ const defaultClient = createMockClient({})
16
18
 
17
19
  const AppLike = ({
18
20
  client: clientOption,