@jchat/addon-sdk 1.0.0-alpha.25 → 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 CHANGED
@@ -1,5 +1,18 @@
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
+
12
+ ## 1.0.0-alpha.26
13
+
14
+ No changes in this release.
15
+
3
16
  ## 1.0.0-alpha.25
4
17
 
5
18
  ### Patch Changes
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.24";
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" || process.env.JCHAT_ADDON_DEV === "true" || process.env.NODE_ENV === "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 ?? process.env.JCHAT_ADDON_SIGNING_PRIVATE_KEY, developmentBuild);
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",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jchat/addon-sdk",
3
- "version": "1.0.0-alpha.25",
3
+ "version": "1.0.0-alpha.27",
4
4
  "private": false,
5
5
  "description": "JChat Addon SDK for building JChat addons.",
6
6
  "keywords": [