Socket
Socket
Sign inDemoInstall

@metamask/utils

Package Overview
Dependencies
Maintainers
10
Versions
36
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@metamask/utils - npm Package Compare versions

Comparing version 7.1.0 to 8.0.0

9

CHANGELOG.md

@@ -9,5 +9,9 @@ # Changelog

## [8.0.0]
### Changed
- **BREAKING:** `JsonRpcParams` type no longer accepts `undefined` as value, as `undefined` is not a valid JSON type ([#130](https://github.com/MetaMask/utils/pull/130))
## [7.1.0]
### Added
- CAIP-2 and CAIP-10 Types ([#116](https://github.com/MetaMask/utils/pull/116))
- Add CAIP-2 and CAIP-10 types ([#116](https://github.com/MetaMask/utils/pull/116))

@@ -182,3 +186,4 @@ ## [7.0.0]

[Unreleased]: https://github.com/MetaMask/utils/compare/v7.1.0...HEAD
[Unreleased]: https://github.com/MetaMask/utils/compare/v8.0.0...HEAD
[8.0.0]: https://github.com/MetaMask/utils/compare/v7.1.0...v8.0.0
[7.1.0]: https://github.com/MetaMask/utils/compare/v7.0.0...v7.1.0

@@ -185,0 +190,0 @@ [7.0.0]: https://github.com/MetaMask/utils/compare/v6.2.0...v7.0.0

@@ -91,4 +91,4 @@ import type { Infer, Struct } from 'superstruct';

export declare type JsonRpcError = OptionalField<Infer<typeof JsonRpcErrorStruct>, 'data'>;
export declare const JsonRpcParamsStruct: Struct<Json[] | Record<string, Json> | undefined, null>;
export declare type JsonRpcParams = Infer<typeof JsonRpcParamsStruct>;
export declare const JsonRpcParamsStruct: Struct<Json[] | Record<string, Json>, null>;
export declare type JsonRpcParams = Json[] | Record<string, Json>;
export declare const JsonRpcRequestStruct: Struct<{

@@ -98,3 +98,3 @@ id: string | number | null;

jsonrpc: "2.0";
params?: Json[] | Record<string, Json> | undefined;
params: Json[] | Record<string, Json>;
}, {

@@ -104,3 +104,3 @@ id: Struct<string | number | null, null>;

method: Struct<string, null>;
params: Struct<Json[] | Record<string, Json> | undefined, null>;
params: Struct<Json[] | Record<string, Json>, null>;
}>;

@@ -119,3 +119,3 @@ export declare type InferWithParams<Type extends Struct<any>, Params extends JsonRpcParams> = Omit<Infer<Type>, 'params'> & (keyof Params extends undefined ? {

jsonrpc: "2.0";
params?: Json[] | Record<string, Json> | undefined;
params: Json[] | Record<string, Json>;
}, Omit<{

@@ -125,3 +125,3 @@ id: Struct<string | number | null, null>;

method: Struct<string, null>;
params: Struct<Json[] | Record<string, Json> | undefined, null>;
params: Struct<Json[] | Record<string, Json>, null>;
}, "id">>;

@@ -128,0 +128,0 @@ /**

{
"name": "@metamask/utils",
"version": "7.1.0",
"version": "8.0.0",
"description": "Various JavaScript/TypeScript utilities of wide relevance to the MetaMask codebase",

@@ -5,0 +5,0 @@ "homepage": "https://github.com/MetaMask/utils#readme",

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc