@flipt-io/flipt-client-js 0.0.6 → 0.1.0
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/README.md +1 -9
- package/dist/browser/index.cjs +25 -9
- package/dist/browser/index.mjs +25 -10
- package/dist/flipt_engine_wasm_js_bg.wasm +0 -0
- package/dist/node/index.cjs +25 -9
- package/dist/node/index.mjs +25 -10
- package/dist/slim/index.cjs +24 -8
- package/dist/slim/index.mjs +24 -9
- package/dist/types/browser/index.d.ts +0 -1
- package/dist/types/core/types.d.ts +16 -0
- package/package.json +7 -4
package/README.md
CHANGED
|
@@ -156,7 +156,7 @@ The `slim` build of the FliptClient is designed for environments where you want
|
|
|
156
156
|
|
|
157
157
|
```ts
|
|
158
158
|
import { FliptClient } from '@flipt-io/flipt-client-js/slim';
|
|
159
|
-
import wasmUrl from '@flipt-io/flipt-client-js/engine.wasm
|
|
159
|
+
import wasmUrl from '@flipt-io/flipt-client-js/engine.wasm';
|
|
160
160
|
|
|
161
161
|
async function main() {
|
|
162
162
|
const client = await FliptClient.init(
|
|
@@ -180,14 +180,6 @@ The `slim` build of the FliptClient is designed for environments where you want
|
|
|
180
180
|
main();
|
|
181
181
|
```
|
|
182
182
|
|
|
183
|
-
- **Note:** If your bundler supports importing JS proxies for assets, you can also use:
|
|
184
|
-
|
|
185
|
-
```js
|
|
186
|
-
import wasmUrl from '@flipt-io/flipt-client-js/engine.wasm';
|
|
187
|
-
```
|
|
188
|
-
|
|
189
|
-
Otherwise, use the `?url` syntax for maximum compatibility.
|
|
190
|
-
|
|
191
183
|
2. **Ensure your bundler is configured to handle `.wasm` files.**
|
|
192
184
|
- For Vite, this works out of the box.
|
|
193
185
|
- For Webpack, you may need to add a rule for `.wasm` files.
|