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

mappersmith

Package Overview
Dependencies
Maintainers
1
Versions
121
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

mappersmith - npm Package Versions

23
13

2.44.0

Diff

Changelog

Source

2.44.0

Minor Changes

  • 3a3c092: # Add support for abort signals

    The AbortSignal interface represents a signal object that allows you to communicate with an asynchronous operation (such as a fetch request) and abort it if required via an AbortController object. All gateway APIs (Fetch, HTTP and XHR) support this interface via the signal parameter:

    const abortController = new AbortController()
    // Start a long running task...
    client.Bitcoin.mine({ signal: abortController.signal })
    // This takes too long, abort!
    abortController.abort()
    

    Minor type fixes

    The return value of some functions on Request have been updated to highlight that they might return undefined:

    • Request#body()
    • Request#auth()
    • Request#timeout()

    The reasoning behind this change is that if you didn't pass them (and no middleware set them) they might simply be undefined. So the types were simply wrong before. If you experience a "breaking change" due to this change, then it means you have a potential bug that you didn't properly handle before.

klippx
published 2.43.4 •

Changelog

Source

2.43.4

Patch Changes

  • 7356e30: Expose deep imports for backwards compatibility
klippx
published 2.43.3 •

Changelog

Source

2.43.3

Patch Changes

  • 404f7ba: Exporting client-builder
klippx
published 2.43.2 •

Changelog

Source

2.43.2

Patch Changes

  • 0b832ab: Fix ESM build to output correct code as per ESM spec
klippx
published 2.43.1 •

Changelog

Source

2.43.1

Patch Changes

  • 0177911: Fixes middlewares import path
klippx
published 2.43.0 •

Changelog

Source

2.43.0

Minor Changes

  • 6e94f97: Bundle with ESM exports.

    • The recommended way to use mappersmith in ESM projects is to do import { forge } from 'mappersmith' rather than the old import forge from 'mappersmith'. The reason is because test runners like jest and vitest might get confused when mixing named/default exports together with ESM, even though tsc and node has no problems with it.
    • A similar recommendation change goes for importing middleware: do import { EncodeJsonMiddleware } from 'mappersmith/middleware' (note the mappersmith/middleware folder) rather than deep import import EncodeJsonMiddleware from 'mappersmith/middleware/encode-json'. We still support the old import, but it will be deprecated in the future.
    • The same recommendation goes for importing gateway: do import { FetchGateway } from 'mappersmith/gateway' (note the mappersmith/gateway folder) rather than deep import import FetchGateway from 'mappersmith/gateway/fetch'. We still support the old import, but it will be deprecated in the future.
  • 9da82f6: Fixes memory leak when using http(s) agent with keep-alive

Patch Changes

  • e01114f: Fixed missing type declaration for unusedMocks
klippx
published 2.43.0-beta.1 •

klippx
published 2.43.0-beta.0 •

klippx
published 2.42.0 •

Changelog

Source

2.42.0

Minor Changes

  • mappersmith: EncodeJSON middleware now properly serializes +json family of content-types #362
klippx
published 2.42.0-beta.1 •

23
13
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