@weirdscience/based-client 0.3.0 → 0.3.1

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.
Files changed (2) hide show
  1. package/dist/index.js +3 -3
  2. package/package.json +2 -2
package/dist/index.js CHANGED
@@ -218,16 +218,16 @@ function createClient(options) {
218
218
  }
219
219
  // src/provider.tsx
220
220
  import { createContext, useContext } from "react";
221
- import { jsxDEV } from "react/jsx-dev-runtime";
221
+ import { jsx } from "react/jsx-runtime";
222
222
  var BasedContext = createContext(null);
223
223
  function BasedProvider({
224
224
  client,
225
225
  children
226
226
  }) {
227
- return /* @__PURE__ */ jsxDEV(BasedContext.Provider, {
227
+ return /* @__PURE__ */ jsx(BasedContext.Provider, {
228
228
  value: client,
229
229
  children
230
- }, undefined, false, undefined, this);
230
+ });
231
231
  }
232
232
  function useBasedClient() {
233
233
  const client = useContext(BasedContext);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@weirdscience/based-client",
3
- "version": "0.3.0",
3
+ "version": "0.3.1",
4
4
  "description": "React SDK for Based — a minimal self-hosted BaaS",
5
5
  "license": "MIT",
6
6
  "repository": {
@@ -24,7 +24,7 @@
24
24
  "README.md"
25
25
  ],
26
26
  "scripts": {
27
- "build": "rm -rf dist && bun build src/index.ts --outdir dist --target browser --format esm --external react && bun x tsc --emitDeclarationOnly --declaration --outDir dist",
27
+ "build": "rm -rf dist && NODE_ENV=production bun build src/index.ts --outdir dist --target browser --format esm --external react --external react/jsx-runtime && bun x tsc --emitDeclarationOnly --declaration --outDir dist",
28
28
  "prepublishOnly": "bun run build",
29
29
  "test": "bun test"
30
30
  },