backend-manager 5.0.31 → 5.0.32

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
@@ -14,6 +14,19 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).
14
14
  - `Fixed` for any bug fixes.
15
15
  - `Security` in case of vulnerabilities.
16
16
 
17
+ # [5.0.31] - 2025-01-17
18
+ ### Changed
19
+ - Refactored CLI to modular command architecture with individual command classes and test files for better maintainability.
20
+ - Migrated from deprecated `.runtimeconfig.json` to `.env` file with `RUNTIME_CONFIG` environment variable.
21
+
22
+ ### Removed
23
+ - Removed deprecated Firebase config commands (`config:get`, `config:set`, `config:unset`).
24
+
25
+ ### Fixed
26
+ - Fixed `install:local` command to save to dependencies instead of devDependencies.
27
+ - Fixed reserved word conflicts with `package` parameter.
28
+ - Fixed template file path resolution in setup tests.
29
+
17
30
  # [5.0.0] - 2025-07-10
18
31
  ### ⚠️ BREAKING
19
32
  - Node.js version requirement is now `22`.
package/TODO.md CHANGED
@@ -1,8 +1,10 @@
1
- # .runtimeconfig.json Deprecated
2
- * Move all CLI npx bm setup checks to new .env
3
- * Make a standard field that acts as the old .runtimeconfig.json
4
- * It is parsed and inserted into Manager.config so no code changes for the user
5
- * Maybe we can change it to Manager.secrets or Manager.env because Manager.config is stupid name
1
+ ????
2
+ // Attach assistant to req and res
3
+ if (ref.req && ref.res) {
4
+ ref.req.assistant = self;
5
+ ref.res.assistant = self;
6
+ }
6
7
 
7
- * NEW FIX
8
- * Add a bm_api path to firebase.json hosting rewrites. This way we can protect the API behind cloudflare instead of calling the naked firebnase functions URL
8
+ console.log('*** err', err);
9
+ console.log('*** req.assistant', req.assistant);
10
+ console.log('*** res.assistant', res.assistant);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "backend-manager",
3
- "version": "5.0.31",
3
+ "version": "5.0.32",
4
4
  "description": "Quick tools for developing Firebase functions",
5
5
  "main": "src/manager/index.js",
6
6
  "bin": {
@@ -127,7 +127,7 @@ Module.prototype.main = function () {
127
127
  body: `"${payload.data.payload.title}" was just published on our blog. It's a great read and we think you'll enjoy the content!`,
128
128
  // click_action: `${Manager.config.brand.url}/${postUrl}`,
129
129
  click_action: `${Manager.config.brand.url}/blog`,
130
- icon: Manager.config.brand.brandmark,
130
+ icon: Manager.config.brand.images.brandmark,
131
131
  }
132
132
  },
133
133
  })
@@ -125,13 +125,13 @@ Manager.prototype.init = function (exporter, options) {
125
125
  // Load basic config
126
126
  merge({}, requireJSON5(BEM_CONFIG_TEMPLATE_PATH, true), requireJSON5(self.project.backendManagerConfigPath, true)),
127
127
  // Load runtimeconfig as a fallback
128
- requireJSON5(path.resolve(self.cwd, '.runtimeconfig.json'), options.projectType === 'firebase'),
128
+ // requireJSON5(path.resolve(self.cwd, '.runtimeconfig.json'), options.projectType === 'firebase'),
129
129
  // Load .ENV config because that is the new format
130
130
  process.env.RUNTIME_CONFIG ? JSON5.parse(process.env.RUNTIME_CONFIG) : {},
131
131
  // Finally, load the functions config
132
- self.libraries.functions
133
- ? self.libraries.functions.config()
134
- : {},
132
+ // self.libraries.functions
133
+ // ? self.libraries.functions.config()
134
+ // : {},
135
135
  );
136
136
 
137
137
  // Get app ID