Skip to content

v4.0.1

Choose a tag to compare

@octokitbot octokitbot released this 16 May 00:01

Version v4.0.0 was a faulty release, here are the changes compared to v3

Breaking changes

  • In favour of better compatibility with es modules, the library has a named export now

    const request = require("@octokit/request")

    is now

    const { request } = require("@octokit/rest")

    or

    import { request } from "@octokit/request"
  • Buffer responses now return an ArrayBuffer instead of a Buffer. To get a Buffer again, do simply

    Buffer.from(response.data)

Features

  • Better typescript definitions
  • options.request.hook (#45) (7b38319)