@alien_org/react 0.1.4 → 0.2.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.cts +5 -0
- package/dist/index.d.mts +5 -0
- package/package.json +3 -3
package/dist/index.d.cts
CHANGED
|
@@ -412,6 +412,11 @@ type MethodPayload<M$1 extends MethodName> = Methods[M$1]['payload'];
|
|
|
412
412
|
/**
|
|
413
413
|
* Check if a method is supported in a given version.
|
|
414
414
|
*
|
|
415
|
+
* Uses the minimum version that introduced the method and returns true if
|
|
416
|
+
* the given version is >= that minimum (semver comparison). This supports
|
|
417
|
+
* versions not explicitly listed in releases (e.g. 0.1.4 when method was
|
|
418
|
+
* added in 0.1.1).
|
|
419
|
+
*
|
|
415
420
|
* @param method - The method name to check.
|
|
416
421
|
* @param version - The contract version (must be a valid version string, not undefined).
|
|
417
422
|
* @returns `true` if the method is supported in the given version, `false` otherwise.
|
package/dist/index.d.mts
CHANGED
|
@@ -412,6 +412,11 @@ type MethodPayload<M$1 extends MethodName> = Methods[M$1]['payload'];
|
|
|
412
412
|
/**
|
|
413
413
|
* Check if a method is supported in a given version.
|
|
414
414
|
*
|
|
415
|
+
* Uses the minimum version that introduced the method and returns true if
|
|
416
|
+
* the given version is >= that minimum (semver comparison). This supports
|
|
417
|
+
* versions not explicitly listed in releases (e.g. 0.1.4 when method was
|
|
418
|
+
* added in 0.1.1).
|
|
419
|
+
*
|
|
415
420
|
* @param method - The method name to check.
|
|
416
421
|
* @param version - The contract version (must be a valid version string, not undefined).
|
|
417
422
|
* @returns `true` if the method is supported in the given version, `false` otherwise.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@alien_org/react",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.2.0",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"main": "./dist/index.cjs",
|
|
6
6
|
"module": "./dist/index.mjs",
|
|
@@ -34,8 +34,8 @@
|
|
|
34
34
|
"prepublishOnly": "bun run build"
|
|
35
35
|
},
|
|
36
36
|
"dependencies": {
|
|
37
|
-
"@alien_org/bridge": "0.
|
|
38
|
-
"@alien_org/contract": "0.
|
|
37
|
+
"@alien_org/bridge": "0.2.0",
|
|
38
|
+
"@alien_org/contract": "0.2.0"
|
|
39
39
|
},
|
|
40
40
|
"peerDependencies": {
|
|
41
41
|
"react": "^18 || ^19",
|