@jchat/addon-sdk 1.0.0-alpha.26 → 1.0.0-alpha.27
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 +9 -0
- package/dist/index.mjs +1 -1
- package/dist/vite.mjs +2 -2
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,14 @@
|
|
|
1
1
|
# @jchat/addon-sdk
|
|
2
2
|
|
|
3
|
+
## 1.0.0-alpha.27
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Standardize runtime environment access to Bun.env
|
|
8
|
+
|
|
9
|
+
- Bumped `@jchat/*` dependencies:
|
|
10
|
+
- [`ui@1.0.0-alpha.26`](https://github.com/jchatcloud/jchat/releases/tag/ui@v1.0.0-alpha.26)
|
|
11
|
+
|
|
3
12
|
## 1.0.0-alpha.26
|
|
4
13
|
|
|
5
14
|
No changes in this release.
|
package/dist/index.mjs
CHANGED
|
@@ -4,7 +4,7 @@ import { ADDON_ID_PATTERN, COMPATIBILITY_RANGE_PATTERN, MAX_ADDON_ARCHIVE_BYTES,
|
|
|
4
4
|
import { createMockAddonServerContext } from "./testing.mjs";
|
|
5
5
|
import { useInfiniteQuery, useMutation, useQuery, useQueryClient } from "@tanstack/react-query";
|
|
6
6
|
//#region package.json
|
|
7
|
-
var version = "1.0.0-alpha.
|
|
7
|
+
var version = "1.0.0-alpha.26";
|
|
8
8
|
//#endregion
|
|
9
9
|
//#region src/query.ts
|
|
10
10
|
/**
|
package/dist/vite.mjs
CHANGED
|
@@ -70,7 +70,7 @@ function jchatAddon(options) {
|
|
|
70
70
|
};
|
|
71
71
|
},
|
|
72
72
|
configResolved(config) {
|
|
73
|
-
developmentBuild = options.development ?? (config.mode === "development" ||
|
|
73
|
+
developmentBuild = options.development ?? (config.mode === "development" || Bun.env.JCHAT_ADDON_DEV === "true" || Bun.env.NODE_ENV === "development");
|
|
74
74
|
if (shouldZip === void 0) shouldZip = config.mode === "production";
|
|
75
75
|
},
|
|
76
76
|
async writeBundle() {
|
|
@@ -125,7 +125,7 @@ function jchatAddon(options) {
|
|
|
125
125
|
return Bun.write(destination, Bun.file(source));
|
|
126
126
|
}));
|
|
127
127
|
if (manifest.server?.migrations?.length || manifest.server?.seeds?.length) {
|
|
128
|
-
const signingPrivateKey = requireAddonSigningKey(options.signingPrivateKey ??
|
|
128
|
+
const signingPrivateKey = requireAddonSigningKey(options.signingPrivateKey ?? Bun.env.JCHAT_ADDON_SIGNING_PRIVATE_KEY, developmentBuild);
|
|
129
129
|
if (signingPrivateKey) {
|
|
130
130
|
const archivePaths = [
|
|
131
131
|
"manifest.json",
|