ox 0.1.0 → 0.1.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.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # ox
2
2
 
3
+ ## 0.1.1
4
+
5
+ ### Patch Changes
6
+
7
+ - [`b7de4f2`](https://github.com/wevm/ox/commit/b7de4f2180520fd7f2bf08955df6e676d75db93e) Thanks [@jxom](https://github.com/jxom)! - Fixed `RpcSchema` inference on `params`.
8
+
3
9
  ## 0.1.0
4
10
 
5
11
  ### Minor Changes
package/_cjs/version.js CHANGED
@@ -1,5 +1,5 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.version = void 0;
4
- exports.version = '0.1.0';
4
+ exports.version = '0.1.1';
5
5
  //# sourceMappingURL=version.js.map
package/_esm/version.js CHANGED
@@ -1,3 +1,3 @@
1
1
  /** @internal */
2
- export const version = '0.1.0';
2
+ export const version = '0.1.1';
3
3
  //# sourceMappingURL=version.js.map
@@ -4,7 +4,7 @@ import type { Compute, IsNarrowable } from './types.js';
4
4
  export type ExtractRequestOpaque<schema extends Generic, methodName extends MethodNameGeneric<schema> = MethodNameGeneric<schema>> = Compute<Omit<{
5
5
  method: methodName | schema['Request']['method'];
6
6
  params?: unknown;
7
- } & (IsNarrowable<methodName, schema['Request']['method']> extends true ? IsNarrowable<schema, Generic> extends true ? Extract<schema, {
7
+ } & (methodName extends schema['Request']['method'] ? IsNarrowable<schema, Generic> extends true ? Extract<schema, {
8
8
  Request: {
9
9
  method: methodName;
10
10
  };
@@ -1 +1 @@
1
- {"version":3,"file":"rpcSchema.d.ts","sourceRoot":"","sources":["../../internal/rpcSchema.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,iBAAiB,EAAE,MAAM,iBAAiB,CAAA;AACjE,OAAO,KAAK,EAAE,OAAO,EAAE,YAAY,EAAE,MAAM,YAAY,CAAA;A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AAO,CAAC,SAAS,IAAI,GACxC,OAAO,CAAC,MAAM,EAAE;IAAE,OAAO,EAAE;QAAE,MAAM,EAAE,UAAU,CAAA;KAAE,CAAA;CAAE,CAAC,CAAC,SAAS,CAAC,GAC/D,EAAE,GACJ,EAAE,CAAC,EACP,EAAE,CACH,CACF,CAAA"}
@@ -1,3 +1,3 @@
1
1
  /** @internal */
2
- export declare const version = "0.1.0";
2
+ export declare const version = "0.1.1";
3
3
  //# sourceMappingURL=version.d.ts.map
@@ -10,7 +10,7 @@ export type ExtractRequestOpaque<
10
10
  {
11
11
  method: methodName | schema['Request']['method']
12
12
  params?: unknown
13
- } & (IsNarrowable<methodName, schema['Request']['method']> extends true
13
+ } & (methodName extends schema['Request']['method']
14
14
  ? IsNarrowable<schema, Generic> extends true
15
15
  ? Extract<schema, { Request: { method: methodName } }>['Request']
16
16
  : {}
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "ox",
3
3
  "description": "Ethereum Standard Library",
4
- "version": "0.1.0",
4
+ "version": "0.1.1",
5
5
  "main": "./_cjs/index.js",
6
6
  "module": "./_esm/index.js",
7
7
  "types": "./_types/index.d.ts",
package/version.ts CHANGED
@@ -1,2 +1,2 @@
1
1
  /** @internal */
2
- export const version = '0.1.0'
2
+ export const version = '0.1.1'