Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@rest-hooks/endpoint

Package Overview
Dependencies
Maintainers
2
Versions
120
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@rest-hooks/endpoint - npm Package Compare versions

Comparing version 1.0.7 to 1.0.8

14

CHANGELOG.md

@@ -6,2 +6,16 @@ # Change Log

### [1.0.8](https://github.com/coinbase/rest-hooks/compare/@rest-hooks/endpoint@1.0.7...@rest-hooks/endpoint@1.0.8) (2021-03-24)
### 💅 Enhancement
* Mark Endpoint's back-compat members as 'deprecated' ([#665](https://github.com/coinbase/rest-hooks/issues/665)) ([6feade0](https://github.com/coinbase/rest-hooks/commit/6feade0ad28eb96c7906793b05d49991294ce858))
### 🐛 Bug Fix
* 'type' inferred from 'sideEffects' correct in union case ([#678](https://github.com/coinbase/rest-hooks/issues/678)) ([2cda690](https://github.com/coinbase/rest-hooks/commit/2cda6900cc3c653637452772ec5439a60354b140))
### [1.0.7](https://github.com/coinbase/rest-hooks/compare/@rest-hooks/endpoint@1.0.6...@rest-hooks/endpoint@1.0.7) (2021-03-14)

@@ -8,0 +22,0 @@

10

lib/endpoint.d.ts

@@ -91,2 +91,3 @@ /* eslint-disable @typescript-eslint/ban-types */

readonly schema: S extends undefined ? schema.SchemaClass<ResolveType<F>> : S;
/** @deprecated */
readonly _schema: S; // TODO: remove once we don't care about FetchShape compatibility

@@ -122,4 +123,11 @@

/** The following is for compatibility with FetchShape */
readonly type: M extends true ? 'mutate' : 'read';
/** @deprecated */
readonly type: M extends undefined
? M extends true
? 'read' | 'mutate'
: 'read'
: 'mutate';
/** @deprecated */
getFetchKey(params: Parameters<F>[0]): string;
/** @deprecated */
options?: EndpointExtraOptions;

@@ -126,0 +134,0 @@ }

4

package.json
{
"name": "@rest-hooks/endpoint",
"version": "1.0.7",
"version": "1.0.8",
"description": "Declarative Network Interface Definitions",

@@ -63,3 +63,3 @@ "sideEffects": false,

},
"gitHead": "f350b75d5680b1928521f20822c67e27f0f7f5a5"
"gitHead": "0ce06c164b73863b67c04a07b379a2a6a7e932e7"
}

@@ -91,2 +91,3 @@ /* eslint-disable @typescript-eslint/ban-types */

readonly schema: S extends undefined ? schema.SchemaClass<ResolveType<F>> : S;
/** @deprecated */
readonly _schema: S; // TODO: remove once we don't care about FetchShape compatibility

@@ -122,4 +123,11 @@

/** The following is for compatibility with FetchShape */
readonly type: M extends true ? 'mutate' : 'read';
/** @deprecated */
readonly type: M extends undefined
? M extends true
? 'read' | 'mutate'
: 'read'
: 'mutate';
/** @deprecated */
getFetchKey(params: Parameters<F>[0]): string;
/** @deprecated */
options?: EndpointExtraOptions;

@@ -126,0 +134,0 @@ }

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