Detalhes do pacote

@urql/devtools

FormidableLabs377.8kMIT2.0.3

The official exchange for use with Urql Devtools

devtools, urql, graphql, exchange

readme (leia-me)

logo

Urql Devtools Exchange

The official devtools exchange for use with the Urql Devtools browser extension

CircleCI Build Status NPM Release Spectrum badge Licence MIT

About

A first-party exchange for urql which interfaces with the Urql Devtools browser extension.

Usage

Install this package

# npm
npm i @urql/devtools

# yarn
yarn add @urql/devtools

Add the exchange to your urql client

import { createClient, defaultExchanges } from 'urql';
import { devtoolsExchange } from '@urql/devtools';

const client = createClient({
  url: 'http://localhost:3001/graphql',
  exchanges: [devtoolsExchange, ...defaultExchanges],
});

Note: we recommended putting this exchange before all other exchanges (as demonstrated above)

Contributing

Have experience working with devtools extensions or want to get involved? Check out our contributing docs to get started.

changelog (log de mudanças)

Changelog

v2.0.3 (2021-02-15)

Full Changelog

Closed issues:

  • Anything special to get this working in Expo? #109
  • Replace Operation.operationName usage with Operation.kind #105
  • urql devtools when page is inside an iframe #98

Merged pull requests:

v2.0.2 (2020-05-07)

Full Changelog

Fixed bugs:

v2.0.1 (2020-05-07)

Full Changelog

Fixed bugs:

  • Wait for websocket connection before sending connnection-init message #56

Merged pull requests:

  • Wait for connection to be established before sending an init message #57 (andyrichardson)

v2.0.0 (2020-05-06)

Full Changelog

Breaking changes:

Fixed bugs:

  • Uncaught ReferenceError: process is not defined #37

Merged pull requests:

v1.0.2 (2020-04-23)

Full Changelog

Fixed bugs:

  • Use postMessage for communication with content script #34

Merged pull requests:

v1.0.1 (2020-04-22)

Full Changelog

Fixed bugs:

  • GraphQL.js is bundled with the build output #32

Merged pull requests:

v1.0.0 (2020-04-21)

Full Changelog

Implemented enhancements:

  • Migrate to @urql/core #21
  • Add support for debug events #20

Fixed bugs:

  • Remove React dependency #25

Merged pull requests:

v0.1.2 (2019-12-13)

Full Changelog

Fixed bugs:

Closed issues:

  • Installing Devtools exchange doesnt work as expected #12

v0.1.1 (2019-12-02)

Full Changelog

Fixed bugs:

  • Requests made by the devtools panel don't always return #13

Merged pull requests:

v0.1.0 (2019-10-16)

Full Changelog

v0.1.0-beta.2 (2019-09-30)

Full Changelog

Merged pull requests:

v0.1.0-beta.1 (2019-09-02)

Full Changelog

Merged pull requests:

v0.1.0-beta.0 (2019-08-26)

Full Changelog

Merged pull requests: