cozy-harvest-lib 31.0.26 → 32.0.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,31 @@
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.0.0](https://github.com/cozy/cozy-libs/compare/cozy-harvest-lib@31.0.27...cozy-harvest-lib@32.0.0) (2024-12-23)
7
+
8
+
9
+ ### Features
10
+
11
+ * **cozy-harvest:** Replace jsdom-sixteen package ([2f455ba](https://github.com/cozy/cozy-libs/commit/2f455ba87718b0633f71035c489f1db6cbbd22f1))
12
+ * **cozy-harvest:** Upgrade cozy-ui to 115.0.2 ([8933c1f](https://github.com/cozy/cozy-libs/commit/8933c1fbd3332ae9e6f2e92642a9a456988e7562))
13
+
14
+
15
+ ### BREAKING CHANGES
16
+
17
+ * **cozy-harvest:** You must have `cozy-ui >= 115.0.2`, `cozy-client >= 51.6.1`, `cozy-intent >= 2.29.1` & `cozy-viewer >= 11.3.1`
18
+
19
+
20
+
21
+
22
+
23
+ ## [31.0.27](https://github.com/cozy/cozy-libs/compare/cozy-harvest-lib@31.0.26...cozy-harvest-lib@31.0.27) (2024-12-23)
24
+
25
+ **Note:** Version bump only for package cozy-harvest-lib
26
+
27
+
28
+
29
+
30
+
6
31
  ## [31.0.26](https://github.com/cozy/cozy-libs/compare/cozy-harvest-lib@31.0.25...cozy-harvest-lib@31.0.26) (2024-12-23)
7
32
 
8
33
  **Note:** Version bump only for package cozy-harvest-lib
@@ -66,7 +66,7 @@ var FileListItem = function FileListItem(_ref2) {
66
66
  secondary: /*#__PURE__*/React.createElement(Typography, {
67
67
  variant: "caption"
68
68
  }, t('datacards.files.imported', {
69
- date: f(get(file, 'cozyMetadata.createdAt'), 'DD/MM/YYYY')
69
+ date: f(get(file, 'cozyMetadata.createdAt'), 'dd/LL/yyyy')
70
70
  }))
71
71
  }));
72
72
  };
@@ -1,5 +1,5 @@
1
1
  import minilog from '@cozy/minilog';
2
- import '@testing-library/jest-dom/extend-expect';
2
+ import '@testing-library/jest-dom';
3
3
  import { configure } from 'enzyme';
4
4
  import Adapter from 'enzyme-adapter-react-16';
5
5
  import 'isomorphic-fetch';
@@ -44,7 +44,7 @@
44
44
  "handle-synchronization": "Handle my synchronizations",
45
45
  "desynchronized": {
46
46
  "message": "you have desynchronized this account on %{date}",
47
- "dateFormat": "MM/DD/YY"
47
+ "dateFormat": "LL/dd/yy"
48
48
  }
49
49
  },
50
50
  "contractForm": {
@@ -100,7 +100,7 @@
100
100
  "syncing": "Data recovery…",
101
101
  "unknown": "Last sync. unknown",
102
102
  "afterSomeTimes": "Sync. %{times} ago",
103
- "format": "MM/DD/YYYY",
103
+ "format": "LL/dd/yyyy",
104
104
  "disconnected": "Disconnected",
105
105
  "justNow": "Sync. just now"
106
106
  },
@@ -144,7 +144,7 @@
144
144
  }
145
145
  },
146
146
  "default": {
147
- "dateFormat": "MM/DD/YYYY",
147
+ "dateFormat": "LL/dd/yyyy",
148
148
  "baseDir": "/Administrative"
149
149
  },
150
150
  "error": {
@@ -44,7 +44,7 @@
44
44
  "handle-synchronization": "Gérer mes synchronisations",
45
45
  "desynchronized": {
46
46
  "message": "vous avez désynchronisé ce compte le %{date}",
47
- "dateFormat": "DD/MM/YY"
47
+ "dateFormat": "dd/LL/yy"
48
48
  }
49
49
  },
50
50
  "contractForm": {
@@ -100,7 +100,7 @@
100
100
  "syncing": "Récupération des données…",
101
101
  "unknown": "Dernière sync. inconnue",
102
102
  "afterSomeTimes": "Sync. il y a %{times}",
103
- "format": "DD/MM/YYYY",
103
+ "format": "dd/LL/yyyy",
104
104
  "disconnected": "Déconnecté",
105
105
  "justNow": "Sync. à l'instant"
106
106
  },
@@ -144,7 +144,7 @@
144
144
  }
145
145
  },
146
146
  "default": {
147
- "dateFormat": "DD/MM/YYYY",
147
+ "dateFormat": "dd/LL/yyyy",
148
148
  "baseDir": "/Administratif"
149
149
  },
150
150
  "error": {
@@ -44,7 +44,7 @@
44
44
  "handle-synchronization": "Synchronisaties beheren",
45
45
  "desynchronized": {
46
46
  "message": "je hebt de synchroniastie met dit account stopgezet op %{date}",
47
- "dateFormat": "DD-MM-YYYY"
47
+ "dateFormat": "dd-LL-yyyy"
48
48
  }
49
49
  },
50
50
  "contractForm": {
@@ -100,7 +100,7 @@
100
100
  "syncing": "Gegevensherstel…",
101
101
  "unknown": "Onbekend",
102
102
  "afterSomeTimes": "%{times} geleden gesynchroniseerd",
103
- "format": "DD-MM-YYYY",
103
+ "format": "dd-LL-yyyy",
104
104
  "disconnected": "Losgekoppeld",
105
105
  "justNow": "Zojuist gesynchroniseerd"
106
106
  },
@@ -144,7 +144,7 @@
144
144
  }
145
145
  },
146
146
  "default": {
147
- "dateFormat": "DD-MM-YYYY",
147
+ "dateFormat": "dd-LL-yyyy",
148
148
  "baseDir": "/Administratief"
149
149
  },
150
150
  "error": {
package/jest.config.js CHANGED
@@ -8,7 +8,7 @@ module.exports = {
8
8
  roots: ['src'],
9
9
  resolver: 'jest-resolve-cached',
10
10
  testPathIgnorePatterns: ['node_modules', 'dist'],
11
- testEnvironment: 'jest-environment-jsdom-sixteen',
11
+ testEnvironment: 'jest-environment-jsdom',
12
12
  testURL: 'http://localhost/',
13
13
  moduleFileExtensions: ['js', 'jsx', 'ts', 'tsx', 'json', 'styl'],
14
14
  moduleDirectories: ['src', 'node_modules'],
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cozy-harvest-lib",
3
- "version": "31.0.26",
3
+ "version": "32.0.0",
4
4
  "description": "Provides logic, modules and components for Cozy's harvest applications.",
5
5
  "main": "dist/index.js",
6
6
  "author": "Cozy",
@@ -65,7 +65,7 @@
65
65
  "babel-jest": "26.6.3",
66
66
  "babel-plugin-inline-react-svg": "1.1.2",
67
67
  "babel-preset-cozy-app": "^2.8.1",
68
- "cozy-client": "^50.0.0",
68
+ "cozy-client": "^51.6.1",
69
69
  "cozy-device-helper": "^3.7.1",
70
70
  "cozy-flags": "^4.6.1",
71
71
  "cozy-intent": "^2.29.1",
@@ -73,15 +73,15 @@
73
73
  "cozy-keys-lib": "^6.1.1",
74
74
  "cozy-realtime": "^5.6.2",
75
75
  "cozy-tsconfig": "^1.8.1",
76
- "cozy-ui": "^113.1.0",
77
- "cozy-viewer": "^11.3.0",
76
+ "cozy-ui": "^115.0.2",
77
+ "cozy-viewer": "^11.3.2",
78
78
  "enzyme": "3.11.0",
79
79
  "enzyme-adapter-react-16": "1.15.6",
80
80
  "form-data": "4.0.0",
81
81
  "identity-obj-proxy": "3.0.0",
82
82
  "isomorphic-fetch": "^2.2.1",
83
83
  "jest": "26.6.3",
84
- "jest-environment-jsdom-sixteen": "1.0.3",
84
+ "jest-environment-jsdom": "26.6.2",
85
85
  "jest-resolve-cached": "1.0.0",
86
86
  "jsdom": "16.5.0",
87
87
  "leaflet": "1.8.0",
@@ -97,18 +97,18 @@
97
97
  "peerDependencies": {
98
98
  "@babel/runtime": ">=7.12.5",
99
99
  "@sentry/react": ">=7.118.0",
100
- "cozy-client": ">=50.0.0",
100
+ "cozy-client": ">=51.6.1",
101
101
  "cozy-device-helper": ">=2.6.0",
102
102
  "cozy-flags": ">=2.3.5",
103
- "cozy-intent": ">=2.26.0",
103
+ "cozy-intent": ">=2.29.1",
104
104
  "cozy-interapp": ">=0.9.0",
105
105
  "cozy-keys-lib": ">=6.1.1",
106
106
  "cozy-realtime": ">=4.2.8",
107
- "cozy-ui": ">=112.2.0",
108
- "cozy-viewer": ">=2.3.0",
107
+ "cozy-ui": ">=115.0.2",
108
+ "cozy-viewer": ">=11.3.1",
109
109
  "leaflet": "^1.7.1",
110
110
  "react-router-dom": ">=6.14.2"
111
111
  },
112
112
  "sideEffects": false,
113
- "gitHead": "aa9a1d8ede781bf200b972a1f3b92921dfd19f9b"
113
+ "gitHead": "32433d5b0a165f3a3244d3b2cbffe7be9fdab74c"
114
114
  }
@@ -56,7 +56,7 @@ const FileListItem = ({ divider, file, onClick, style }) => {
56
56
  secondary={
57
57
  <Typography variant="caption">
58
58
  {t('datacards.files.imported', {
59
- date: f(get(file, 'cozyMetadata.createdAt'), 'DD/MM/YYYY')
59
+ date: f(get(file, 'cozyMetadata.createdAt'), 'dd/LL/yyyy')
60
60
  })}
61
61
  </Typography>
62
62
  }
package/src/jest.setup.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import minilog from '@cozy/minilog'
2
- import '@testing-library/jest-dom/extend-expect'
2
+ import '@testing-library/jest-dom'
3
3
  import { configure } from 'enzyme'
4
4
  import Adapter from 'enzyme-adapter-react-16'
5
5
  import 'isomorphic-fetch'
@@ -44,7 +44,7 @@
44
44
  "handle-synchronization": "Handle my synchronizations",
45
45
  "desynchronized": {
46
46
  "message": "you have desynchronized this account on %{date}",
47
- "dateFormat": "MM/DD/YY"
47
+ "dateFormat": "LL/dd/yy"
48
48
  }
49
49
  },
50
50
  "contractForm": {
@@ -100,7 +100,7 @@
100
100
  "syncing": "Data recovery…",
101
101
  "unknown": "Last sync. unknown",
102
102
  "afterSomeTimes": "Sync. %{times} ago",
103
- "format": "MM/DD/YYYY",
103
+ "format": "LL/dd/yyyy",
104
104
  "disconnected": "Disconnected",
105
105
  "justNow": "Sync. just now"
106
106
  },
@@ -144,7 +144,7 @@
144
144
  }
145
145
  },
146
146
  "default": {
147
- "dateFormat": "MM/DD/YYYY",
147
+ "dateFormat": "LL/dd/yyyy",
148
148
  "baseDir": "/Administrative"
149
149
  },
150
150
  "error": {
@@ -44,7 +44,7 @@
44
44
  "handle-synchronization": "Gérer mes synchronisations",
45
45
  "desynchronized": {
46
46
  "message": "vous avez désynchronisé ce compte le %{date}",
47
- "dateFormat": "DD/MM/YY"
47
+ "dateFormat": "dd/LL/yy"
48
48
  }
49
49
  },
50
50
  "contractForm": {
@@ -100,7 +100,7 @@
100
100
  "syncing": "Récupération des données…",
101
101
  "unknown": "Dernière sync. inconnue",
102
102
  "afterSomeTimes": "Sync. il y a %{times}",
103
- "format": "DD/MM/YYYY",
103
+ "format": "dd/LL/yyyy",
104
104
  "disconnected": "Déconnecté",
105
105
  "justNow": "Sync. à l'instant"
106
106
  },
@@ -144,7 +144,7 @@
144
144
  }
145
145
  },
146
146
  "default": {
147
- "dateFormat": "DD/MM/YYYY",
147
+ "dateFormat": "dd/LL/yyyy",
148
148
  "baseDir": "/Administratif"
149
149
  },
150
150
  "error": {
@@ -44,7 +44,7 @@
44
44
  "handle-synchronization": "Synchronisaties beheren",
45
45
  "desynchronized": {
46
46
  "message": "je hebt de synchroniastie met dit account stopgezet op %{date}",
47
- "dateFormat": "DD-MM-YYYY"
47
+ "dateFormat": "dd-LL-yyyy"
48
48
  }
49
49
  },
50
50
  "contractForm": {
@@ -100,7 +100,7 @@
100
100
  "syncing": "Gegevensherstel…",
101
101
  "unknown": "Onbekend",
102
102
  "afterSomeTimes": "%{times} geleden gesynchroniseerd",
103
- "format": "DD-MM-YYYY",
103
+ "format": "dd-LL-yyyy",
104
104
  "disconnected": "Losgekoppeld",
105
105
  "justNow": "Zojuist gesynchroniseerd"
106
106
  },
@@ -144,7 +144,7 @@
144
144
  }
145
145
  },
146
146
  "default": {
147
- "dateFormat": "DD-MM-YYYY",
147
+ "dateFormat": "dd-LL-yyyy",
148
148
  "baseDir": "/Administratief"
149
149
  },
150
150
  "error": {