@farcaster/frame-sdk 0.0.64 → 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/dist/index.d.ts +5 -6
- package/dist/index.js +26 -6
- package/dist/index.min.js +40 -12
- package/dist/index.min.js.map +4 -4
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +7 -4
- package/src/index.ts +35 -6
- package/dist/back.d.ts +0 -15
- package/dist/back.js +0 -88
- package/dist/endpoint.d.ts +0 -2
- package/dist/endpoint.js +0 -32
- package/dist/ethereumProvider.d.ts +0 -3
- package/dist/ethereumProvider.js +0 -132
- package/dist/frameHost.d.ts +0 -2
- package/dist/frameHost.js +0 -3
- package/dist/quickAuth.d.ts +0 -42
- package/dist/quickAuth.js +0 -74
- package/dist/sdk.d.ts +0 -2
- package/dist/sdk.js +0 -182
- package/dist/sdkEmitter.d.ts +0 -15
- package/dist/sdkEmitter.js +0 -23
- package/dist/solanaProvider.d.ts +0 -3
- package/dist/solanaProvider.js +0 -19
- package/dist/types.d.ts +0 -74
- package/dist/types.js +0 -1
- package/src/back.ts +0 -143
- package/src/endpoint.ts +0 -34
- package/src/ethereumProvider.ts +0 -183
- package/src/frameHost.ts +0 -5
- package/src/navigation.d.ts +0 -191
- package/src/quickAuth.ts +0 -148
- package/src/sdk.ts +0 -191
- package/src/sdkEmitter.ts +0 -27
- package/src/solanaProvider.ts +0 -33
- package/src/types.ts +0 -107
package/dist/index.d.ts
CHANGED
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
export
|
|
4
|
-
export
|
|
5
|
-
export
|
|
6
|
-
export { quickAuth } from './quickAuth.ts';
|
|
1
|
+
export * from '@farcaster/miniapp-sdk';
|
|
2
|
+
import { sdk as miniAppSdk } from '@farcaster/miniapp-sdk';
|
|
3
|
+
export declare const sdk: import("@farcaster/miniapp-sdk/dist/types").MiniAppSDK;
|
|
4
|
+
export declare const frameHost: import("comlink").Remote<import("@farcaster/miniapp-sdk").WireMiniAppHost>;
|
|
5
|
+
export type FrameSDK = typeof miniAppSdk;
|
|
7
6
|
export default sdk;
|
package/dist/index.js
CHANGED
|
@@ -1,7 +1,27 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
export
|
|
1
|
+
// Deprecation warning
|
|
2
|
+
if (typeof console !== 'undefined' && console.warn) {
|
|
3
|
+
console.warn('[DEPRECATION WARNING] @farcaster/frame-sdk is deprecated. Please migrate to @farcaster/miniapp-sdk. ' +
|
|
4
|
+
'See https://github.com/farcasterxyz/frames/blob/main/MIGRATION.md for migration guide.');
|
|
5
|
+
}
|
|
6
|
+
// Re-export everything from miniapp-sdk
|
|
7
|
+
export * from '@farcaster/miniapp-sdk';
|
|
8
|
+
// Import for aliasing
|
|
9
|
+
import { miniAppHost, sdk as miniAppSdk } from '@farcaster/miniapp-sdk';
|
|
10
|
+
// Backward compatibility exports
|
|
11
|
+
export const sdk = miniAppSdk;
|
|
12
|
+
// Create a proxy for frameHost that logs deprecation warning on first access
|
|
13
|
+
let frameHostWarningShown = false;
|
|
14
|
+
export const frameHost = new Proxy(miniAppHost, {
|
|
15
|
+
get(target, prop, receiver) {
|
|
16
|
+
if (!frameHostWarningShown &&
|
|
17
|
+
typeof console !== 'undefined' &&
|
|
18
|
+
console.warn) {
|
|
19
|
+
console.warn('[DEPRECATION WARNING] frameHost is deprecated. Please use miniAppHost instead. ' +
|
|
20
|
+
'Import from @farcaster/miniapp-sdk and use miniAppHost.');
|
|
21
|
+
frameHostWarningShown = true;
|
|
22
|
+
}
|
|
23
|
+
return Reflect.get(target, prop, receiver);
|
|
24
|
+
},
|
|
25
|
+
});
|
|
26
|
+
// Default export
|
|
7
27
|
export default sdk;
|