passbolt-browser-extension 4.7.6-rc.0 → 4.7.7

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,10 @@ All notable changes to this project will be documented in this file.
3
3
  This project adheres to [Semantic Versioning](http://semver.org/).
4
4
 
5
5
  ## [Unreleased]
6
+ ## [4.7.7] - 2024-05-10
7
+ ### Maintenance
8
+ - PB-33321 Fix local storage loading on extension update
9
+
6
10
  ## [4.7.6] - 2024-05-08
7
11
  ### Maintenance
8
12
  - PB-33307 Add debug to capture onInstall reason details
@@ -1607,8 +1611,9 @@ self registration settings option in the left-side bar
1607
1611
  - AP: User with plugin installed
1608
1612
  - LU: Logged in user
1609
1613
 
1610
- [Unreleased]: https://github.com/passbolt/passbolt_browser_extension/compare/v4.7.6...HEAD
1611
- [4.7.6]: https://github.com/passbolt/passbolt_browser_extension/compare/v4.7.6...v4.7.5
1614
+ [Unreleased]: https://github.com/passbolt/passbolt_browser_extension/compare/v4.7.7...HEAD
1615
+ [4.7.7]: https://github.com/passbolt/passbolt_browser_extension/compare/v4.7.6...v4.7.7
1616
+ [4.7.6]: https://github.com/passbolt/passbolt_browser_extension/compare/v4.7.5...v4.7.6
1612
1617
  [4.7.5]: https://github.com/passbolt/passbolt_browser_extension/compare/v4.7.4...v4.7.5
1613
1618
  [4.7.4]: https://github.com/passbolt/passbolt_browser_extension/compare/v4.7.3...v4.7.4
1614
1619
  [4.7.3]: https://github.com/passbolt/passbolt_browser_extension/compare/v4.7.1...v4.7.3
package/RELEASE_NOTES.md CHANGED
@@ -1,7 +1,7 @@
1
1
  Song: https://youtu.be/J87pJrxvJ5E?si=vGs8M6uyM6E7Lcps
2
2
 
3
- Passbolt v4.7.6 is a test release focused on addressing update issues discovered while transitioning from MV2 to MV3.
3
+ Passbolt v4.7.7 is a maintenance release focused on fixing problems linked to the extension update and preparing the transition to MV3.
4
4
 
5
- ## [4.7.6] - 2024-05-08
5
+ ## [4.7.7] - 2024-05-10
6
6
  ### Maintenance
7
- - PB-33307 Add debug to capture onInstall reason details
7
+ - PB-33321 Fix local storage loading on extension update
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "passbolt-browser-extension",
3
- "version": "4.7.6-rc.0",
3
+ "version": "4.7.7",
4
4
  "license": "AGPL-3.0",
5
5
  "copyright": "Copyright 2022 Passbolt SA",
6
6
  "description": "Passbolt web extension for the open source password manager for teams",
@@ -21,6 +21,8 @@ import CheckAuthStatusService from "../../service/auth/checkAuthStatusService";
21
21
  import User from "../../model/user";
22
22
  import Log from "../../model/log";
23
23
  import {BrowserExtensionIconService} from "../../service/ui/browserExtensionIcon.service";
24
+ import storage from "../../sdk/storage";
25
+ import {Config} from "../../model/config";
24
26
 
25
27
  class OnExtensionInstalledController {
26
28
  /**
@@ -29,9 +31,13 @@ class OnExtensionInstalledController {
29
31
  * @returns {Promise<void>}
30
32
  */
31
33
  static async exec(details) {
32
- console.debug(`The install reason is: ${details.reason}`);
33
- console.debug(`The previous version is: ${details.previousVersion}`);
34
- console.debug(`The shared_module_update id is: ${details.id}`);
34
+ // Check if the storage have some data
35
+ if (Object.keys(storage._data).length === 0) {
36
+ // Fix the initialization of the storage after an update
37
+ await storage.init();
38
+ // Initialization of the config to get the user information
39
+ Config.init();
40
+ }
35
41
  switch (details.reason) {
36
42
  case browser.runtime.OnInstalledReason.INSTALL:
37
43
  await OnExtensionInstalledController.onInstall();
@@ -1,4 +1,5 @@
1
1
  /**
2
+ * @deprecated
2
3
  * Local Storage Wrapper Class
3
4
  * Ref. PASSBOLT-1725
4
5
  *
@@ -6,6 +6,7 @@ import toolbarService from "../toolbar/toolbarService";
6
6
 
7
7
  class SystemRequirementService {
8
8
  /**
9
+ * @deprecated
9
10
  * Initialize all requirement for proper operation
10
11
  * @return {Promise<void>}
11
12
  */
@@ -2,7 +2,7 @@
2
2
  "manifest_version": 2,
3
3
  "name": "__MSG_appName__",
4
4
  "short_name": "passbolt",
5
- "version": "4.7.6",
5
+ "version": "4.7.7",
6
6
  "description": "__MSG_appDescription__",
7
7
  "default_locale": "en",
8
8
  "externally_connectable": {},
@@ -2,7 +2,7 @@
2
2
  "manifest_version": 3,
3
3
  "name": "__MSG_appName__",
4
4
  "short_name": "passbolt",
5
- "version": "4.7.6",
5
+ "version": "4.7.7",
6
6
  "description": "__MSG_appDescription__",
7
7
  "default_locale": "en",
8
8
  "externally_connectable": {
@@ -2,7 +2,7 @@
2
2
  "manifest_version": 2,
3
3
  "name": "__MSG_appName__",
4
4
  "short_name": "passbolt",
5
- "version": "4.7.6",
5
+ "version": "4.7.7",
6
6
  "description": "__MSG_appDescription__",
7
7
  "default_locale": "en",
8
8
  "browser_specific_settings": {
@@ -2,7 +2,7 @@
2
2
  "manifest_version": 3,
3
3
  "name": "__MSG_appName__",
4
4
  "short_name": "passbolt",
5
- "version": "4.7.6",
5
+ "version": "4.7.7",
6
6
  "description": "__MSG_appDescription__",
7
7
  "default_locale": "en",
8
8
  "externally_connectable": {},