@mathrunet/masamune 3.8.1 → 3.8.3

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
@@ -1,6 +1,15 @@
1
- ## [3.8.1](https://github.com/mathrunet/node_masamune/compare/v3.7.0...v3.8.1) (2025-11-22)
1
+ ## [3.8.3](https://github.com/mathrunet/node_masamune/compare/v3.7.0...v3.8.3) (2025-11-23)
2
2
 
3
3
 
4
+ ### chore
5
+
6
+ * Add Node.js 20 engine requirement to all package.json files ([1e60d25](https://github.com/mathrunet/node_masamune/commit/1e60d25b2c44e1efd398a6a1229d2ba3f46da1f5))
7
+ * Update @mathrunet/katana to version 3.9.1 ([d8e32a1](https://github.com/mathrunet/node_masamune/commit/d8e32a1f238ed3b29003bd83799fde57a054c063))
8
+ * Update masamune package version ([f4998d6](https://github.com/mathrunet/node_masamune/commit/f4998d654dee28f2f12c5d2d8b9c861563825dbd))
9
+ * Update Node.js engine to v22 and bump development dependencies across packages. ([d840a0f](https://github.com/mathrunet/node_masamune/commit/d840a0f503230f80edbdf01f9516841cff36798d))
10
+ * update TypeScript compilation target to es2022 in tsconfig files across packages ([99253dd](https://github.com/mathrunet/node_masamune/commit/99253dd84a09e1c6026b9a6b88b6fef1ca2f4d14))
11
+ * Upgrade `@mathrunet/katana` to `3.9.4` and update `@mathrunet/masamune` dependencies. ([4eb3e8f](https://github.com/mathrunet/node_masamune/commit/4eb3e8ffcd17334eb380ea780605eb1f925b8eea))
12
+
4
13
  ### feat
5
14
 
6
15
  * Add Lyria background music generation, Google Cloud Text-to-Speech integration, updated test configuration, and new development documentation. ([d234b83](https://github.com/mathrunet/node_masamune/commit/d234b83b0ab706bfa3c93f2f887755aa022baa48))
@@ -11,6 +20,14 @@
11
20
  * Package separation. And monorepo management. ([2647952](https://github.com/mathrunet/node_masamune/commit/2647952ad48823ac0c3d578a366f4af0bf60bcc1))
12
21
  * Update Masamune package versions to 3.8.0. ([318f89a](https://github.com/mathrunet/node_masamune/commit/318f89a7427dfa71149026207eae19c4ff845edc))
13
22
 
23
+ ### fix
24
+
25
+ * Explicitly pass the Firebase Admin app during Firestore and Storage initialization, and update the version. ([9169415](https://github.com/mathrunet/node_masamune/commit/9169415adb873a0ce1534a5762158d84ca477212))
26
+ * Initialize Firebase Admin SDK if not already initialized when loading Firestore or Storage. ([678c1bd](https://github.com/mathrunet/node_masamune/commit/678c1bd1896ddd3fe0e541e9eeea29797b63e300))
27
+ * Move `@types/node-fetch` from devDependencies to dependencies. ([d5bc8be](https://github.com/mathrunet/node_masamune/commit/d5bc8be021d25469d9fb58d6b73f8471883969c8))
28
+ * remove debug logs from Firebase loaders and bump package version. ([36e721e](https://github.com/mathrunet/node_masamune/commit/36e721ec6cc597aced1fc91105f9a04625cde0d2))
29
+ * Update dependency versions for `@mathrunet/katana` ([d4a9aea](https://github.com/mathrunet/node_masamune/commit/d4a9aeadb6541d808618098c5a4b2eaf72bf7d50))
30
+
14
31
 
15
32
 
16
33
  # [3.7.0](https://github.com/mathrunet/node_masamune/compare/v3.6.0...v3.7.0) (2025-11-20)
@@ -32,15 +32,6 @@ var __importStar = (this && this.__importStar) || (function () {
32
32
  return result;
33
33
  };
34
34
  })();
35
- var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
36
- function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
37
- return new (P || (P = Promise))(function (resolve, reject) {
38
- function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
39
- function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
40
- function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
41
- step((generator = generator.apply(thisArg, _arguments || [])).next());
42
- });
43
- };
44
35
  Object.defineProperty(exports, "__esModule", { value: true });
45
36
  const functions = __importStar(require("firebase-functions/v2"));
46
37
  const katana_1 = require("@mathrunet/katana");
@@ -49,36 +40,32 @@ const katana_1 = require("@mathrunet/katana");
49
40
  *
50
41
  * テストを行うためのエンドポイントです。
51
42
  */
52
- module.exports = (regions, options, data) => {
53
- var _a, _b, _c, _d;
54
- return functions.https.onCall({
55
- region: (_a = options.region) !== null && _a !== void 0 ? _a : regions,
56
- timeoutSeconds: options.timeoutSeconds,
57
- memory: options.memory,
58
- minInstances: options.minInstances,
59
- concurrency: options.concurrency,
60
- maxInstances: options.maxInstances,
61
- serviceAccount: (_b = options === null || options === void 0 ? void 0 : options.serviceAccount) !== null && _b !== void 0 ? _b : undefined,
62
- enforceAppCheck: (_c = options.enforceAppCheck) !== null && _c !== void 0 ? _c : undefined,
63
- consumeAppCheckToken: (_d = options.consumeAppCheckToken) !== null && _d !== void 0 ? _d : undefined,
64
- }, (query) => __awaiter(void 0, void 0, void 0, function* () {
65
- var _a;
66
- try {
67
- const path = query.data.path;
68
- if (!path) {
69
- return {};
70
- }
71
- const firestoreDatabaseIds = (_a = options.firestoreDatabaseIds) !== null && _a !== void 0 ? _a : [""];
72
- for (const databaseId of firestoreDatabaseIds) {
73
- const firestoreInstance = (0, katana_1.firestoreLoader)(databaseId);
74
- const doc = yield firestoreInstance.doc(path).get();
75
- return Object.assign({}, doc.data());
76
- }
43
+ module.exports = (regions, options, data) => functions.https.onCall({
44
+ region: options.region ?? regions,
45
+ timeoutSeconds: options.timeoutSeconds,
46
+ memory: options.memory,
47
+ minInstances: options.minInstances,
48
+ concurrency: options.concurrency,
49
+ maxInstances: options.maxInstances,
50
+ serviceAccount: options?.serviceAccount ?? undefined,
51
+ enforceAppCheck: options.enforceAppCheck ?? undefined,
52
+ consumeAppCheckToken: options.consumeAppCheckToken ?? undefined,
53
+ }, async (query) => {
54
+ try {
55
+ const path = query.data.path;
56
+ if (!path) {
57
+ return {};
77
58
  }
78
- catch (err) {
79
- console.error(err);
80
- throw err;
59
+ const firestoreDatabaseIds = options.firestoreDatabaseIds ?? [""];
60
+ for (const databaseId of firestoreDatabaseIds) {
61
+ const firestoreInstance = (0, katana_1.firestoreLoader)(databaseId);
62
+ const doc = await firestoreInstance.doc(path).get();
63
+ return { ...doc.data() };
81
64
  }
82
- }));
83
- };
65
+ }
66
+ catch (err) {
67
+ console.error(err);
68
+ throw err;
69
+ }
70
+ });
84
71
  //# sourceMappingURL=test.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"test.js","sourceRoot":"","sources":["../../src/functions/test.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,iEAAmD;AACnD,8CAA0E;AAE1E;;;;GAIG;AACH,MAAM,CAAC,OAAO,GAAG,CACf,OAAiB,EACjB,OAA6B,EAC7B,IAA4B,EAC5B,EAAE;;IAAC,OAAA,SAAS,CAAC,KAAK,CAAC,MAAM,CACzB;QACE,MAAM,EAAE,MAAA,OAAO,CAAC,MAAM,mCAAI,OAAO;QACjC,cAAc,EAAE,OAAO,CAAC,cAAc;QACtC,MAAM,EAAE,OAAO,CAAC,MAAM;QACtB,YAAY,EAAE,OAAO,CAAC,YAAY;QAClC,WAAW,EAAE,OAAO,CAAC,WAAW;QAChC,YAAY,EAAE,OAAO,CAAC,YAAY;QAClC,cAAc,EAAE,MAAA,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,cAAc,mCAAI,SAAS;QACpD,eAAe,EAAE,MAAA,OAAO,CAAC,eAAe,mCAAI,SAAS;QACrD,oBAAoB,EAAE,MAAA,OAAO,CAAC,oBAAoB,mCAAI,SAAS;KAChE,EACD,CAAO,KAAK,EAAE,EAAE;;QACd,IAAI,CAAC;YACH,MAAM,IAAI,GAAG,KAAK,CAAC,IAAI,CAAC,IAAI,CAAC;YAC7B,IAAI,CAAC,IAAI,EAAE,CAAC;gBACV,OAAO,EAAE,CAAC;YACZ,CAAC;YACD,MAAM,oBAAoB,GAAG,MAAA,OAAO,CAAC,oBAAoB,mCAAI,CAAC,EAAE,CAAC,CAAC;YAClE,KAAK,MAAM,UAAU,IAAI,oBAAoB,EAAE,CAA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,MAAM,oBAAoB,GAAG,OAAO,CAAC,oBAAoB,IAAI,CAAC,EAAE,CAAC,CAAC;QAClE,KAAK,MAAM,UAAU,IAAI,oBAAoB,EAAE,CAAC;YAC9C,MAAM,iBAAiB,GAAG,IAAA,wBAAe,EAAC,UAAU,CAAC,CAAC;YACtD,MAAM,GAAG,GAAG,MAAM,iBAAiB,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC,GAAG,EAAE,CAAC;YACpD,OAAO,EAAE,GAAG,GAAG,CAAC,IAAI,EAAE,EAAE,CAAC;QAC3B,CAAC;IACH,CAAC;IAAC,OAAO,GAAG,EAAE,CAAC;QACb,OAAO,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;QACnB,MAAM,GAAG,CAAC;IACZ,CAAC;AACH,CAAC,CACF,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mathrunet/masamune",
3
- "version": "3.8.1",
3
+ "version": "3.8.3",
4
4
  "description": "Manages packages for the server portion (NodeJS) of the Masamune framework.",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -15,6 +15,9 @@
15
15
  "major_update": "npm version major",
16
16
  "patch_update": "npm version patch"
17
17
  },
18
+ "engines": {
19
+ "node": "22"
20
+ },
18
21
  "publishConfig": {
19
22
  "access": "public"
20
23
  },
@@ -36,14 +39,14 @@
36
39
  },
37
40
  "homepage": "https://github.com/mathrunet/node_masamune#readme",
38
41
  "dependencies": {
39
- "@mathrunet/katana": "^3.8.0",
42
+ "@mathrunet/katana": "^3.9.4",
40
43
  "firebase-admin": "^13.1.0",
41
44
  "firebase-functions": "^6.3.2",
42
- "typescript": "^5.7.3"
45
+ "typescript": "^5.9.2"
43
46
  },
44
47
  "devDependencies": {
45
- "@types/jest": "^29.5.12",
46
- "jest": "^29.7.0",
48
+ "@types/jest": "^30.0.0",
49
+ "jest": "^30.1.3",
47
50
  "ts-jest": "^29.1.2",
48
51
  "firebase-functions-test": "^3.4.0",
49
52
  "conventional-changelog-cli": "^5.0.0"