@farcaster/frame-host 0.0.0-canary-20250630194123 → 0.0.0-canary-20250630212526
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/dist/index.d.ts +12 -4
- package/dist/index.js +26 -4
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +3 -3
- package/src/index.ts +47 -4
- package/dist/comlink/comlink.d.ts +0 -150
- package/dist/comlink/comlink.js +0 -380
- package/dist/comlink/index.d.ts +0 -1
- package/dist/comlink/index.js +0 -1
- package/dist/comlink/node-adapter.d.ts +0 -13
- package/dist/comlink/node-adapter.js +0 -32
- package/dist/comlink/protocol.d.ts +0 -75
- package/dist/comlink/protocol.js +0 -21
- package/dist/helpers/endpoint.d.ts +0 -20
- package/dist/helpers/endpoint.js +0 -38
- package/dist/helpers/ethereumProvider.d.ts +0 -41
- package/dist/helpers/ethereumProvider.js +0 -89
- package/dist/helpers/sdk.d.ts +0 -2
- package/dist/helpers/sdk.js +0 -52
- package/dist/iframe.d.ts +0 -21
- package/dist/iframe.js +0 -50
- package/dist/types.d.ts +0 -6
- package/dist/types.js +0 -1
- package/src/comlink/comlink.ts +0 -654
- package/src/comlink/index.ts +0 -1
- package/src/comlink/node-adapter.ts +0 -49
- package/src/comlink/protocol.ts +0 -111
- package/src/helpers/endpoint.ts +0 -75
- package/src/helpers/ethereumProvider.ts +0 -125
- package/src/helpers/sdk.ts +0 -59
- package/src/iframe.ts +0 -80
- package/src/types.ts +0 -7
package/dist/index.d.ts
CHANGED
|
@@ -1,4 +1,12 @@
|
|
|
1
|
-
export * from '@farcaster/
|
|
2
|
-
|
|
3
|
-
export
|
|
4
|
-
|
|
1
|
+
export * from '@farcaster/miniapp-host';
|
|
2
|
+
import { exposeToIframe as _exposeToIframe } from '@farcaster/miniapp-host';
|
|
3
|
+
export declare function exposeToIframe({ iframe, sdk, ethProvider, frameOrigin, debug, }: {
|
|
4
|
+
iframe: HTMLIFrameElement;
|
|
5
|
+
sdk: Parameters<typeof _exposeToIframe>[0]['sdk'];
|
|
6
|
+
frameOrigin: string;
|
|
7
|
+
ethProvider?: Parameters<typeof _exposeToIframe>[0]['ethProvider'];
|
|
8
|
+
debug?: boolean;
|
|
9
|
+
}): {
|
|
10
|
+
endpoint: import("@farcaster/miniapp-host").HostEndpoint;
|
|
11
|
+
cleanup: () => void;
|
|
12
|
+
};
|
package/dist/index.js
CHANGED
|
@@ -1,4 +1,26 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
1
|
+
// Deprecation warning
|
|
2
|
+
if (typeof console !== 'undefined' && console.warn) {
|
|
3
|
+
console.warn('[DEPRECATION WARNING] @farcaster/frame-host is deprecated. Please migrate to @farcaster/miniapp-host. ' +
|
|
4
|
+
'See https://github.com/farcasterxyz/frames/blob/main/MIGRATION.md for migration guide.');
|
|
5
|
+
}
|
|
6
|
+
// Re-export everything from miniapp-host
|
|
7
|
+
export * from '@farcaster/miniapp-host';
|
|
8
|
+
// Backward compatibility - re-export exposeToIframe with old parameter name
|
|
9
|
+
import { exposeToIframe as _exposeToIframe } from '@farcaster/miniapp-host';
|
|
10
|
+
let exposeToIframeWarningShown = false;
|
|
11
|
+
export function exposeToIframe({ iframe, sdk, ethProvider, frameOrigin, debug = false, }) {
|
|
12
|
+
if (!exposeToIframeWarningShown &&
|
|
13
|
+
typeof console !== 'undefined' &&
|
|
14
|
+
console.warn) {
|
|
15
|
+
console.warn('[DEPRECATION WARNING] The frameOrigin parameter is deprecated. Please use miniAppOrigin instead. ' +
|
|
16
|
+
'Import exposeToIframe from @farcaster/miniapp-host.');
|
|
17
|
+
exposeToIframeWarningShown = true;
|
|
18
|
+
}
|
|
19
|
+
return _exposeToIframe({
|
|
20
|
+
iframe,
|
|
21
|
+
sdk,
|
|
22
|
+
ethProvider,
|
|
23
|
+
miniAppOrigin: frameOrigin,
|
|
24
|
+
debug,
|
|
25
|
+
});
|
|
26
|
+
}
|