Code Monkey home page Code Monkey logo

endpoint.js's People

Contributors

copperwall avatar dependabot[bot] avatar dominykas avatar frangio avatar gr2m avatar greenkeeper[bot] avatar hjdarnel avatar jhutchings1 avatar jovel avatar jsoref avatar kevo1ution avatar kfcampbell avatar maemaemae3 avatar nickfloyd avatar octokitbot avatar oscard0m avatar ram-nad avatar renovate[bot] avatar romanbalayan avatar southpolesteve avatar timrogers avatar uzlopak avatar wolfy1339 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

endpoint.js's Issues

Possible issue with is-plain-object

Hello, I'm trying to debug this error I'm consistently running into when using @actions/github in a custom action in my repositories. What's odd is that the exact code works fine in one repo, but not in the other. It's the same action, just copied over. There error is below and seems to stem from this package, but it could also be something else happening in the runner. Any help would be awesome!

internal/modules/cjs/loader.js:305
22
      throw err;
23
      ^
24

25
Error: Cannot find module '/home/runner/work/graphql/graphql/.github/actions/terraform-run/node_modules/is-plain-object/dist/is-plain-object.js'. Please verify that the package.json has a valid "main" entry
26
    at tryPackage (internal/modules/cjs/loader.js:297:19)
27
    at Function.Module._findPath (internal/modules/cjs/loader.js:528:18)
28
    at Function.Module._resolveFilename (internal/modules/cjs/loader.js:784:27)
29
    at Function.Module._load (internal/modules/cjs/loader.js:690:27)
30
    at Module.require (internal/modules/cjs/loader.js:852:19)
31
    at require (internal/modules/cjs/helpers.js:74:18)
32
    at Object.<anonymous> (/home/runner/work/graphql/graphql/.github/actions/terraform-run/node_modules/@octokit/endpoint/dist-node/index.js:5:21)
33
    at Module._compile (internal/modules/cjs/loader.js:959:30)
34
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:995:10)
35
    at Module.load (internal/modules/cjs/loader.js:815:32) {
36
  code: 'MODULE_NOT_FOUND',
37
  path: '/home/runner/work/graphql/graphql/.github/actions/terraform-run/node_modules/is-plain-object/package.json',
38
  requestPath: 'is-plain-object'
39
}

URL parameter encoding differs depending on notation ({param} vs :param)

Example

const { url: url1 } = endpoint("GET /repos/{owner}/{repo}/contents/{path}", {
  owner: "owner",
  repo: "repo",
  path: "path/to/file.txt"
});
const { url: url2 } = endpoint("GET /repos/:owner/:repo/contents/:path", {
  owner: "owner",
  repo: "repo",
  path: "path/to/file.txt"
});

url1 is correct.

I'd appreciate a pull request if anyone would like to work on this. You can start out by creating a pull request with a failing test reproducing the above behavior. The test will go into test/endpoint.test.ts.

error with universal user agent in the new actions

Hello,

I've been trying to use the new @actions/github, which allows me to create a new octokit instance and call various api methods. I've been attempting to use release apis.

The custom action i'm using is a local action, stored inside the repository.
An attempt to use the action triggers an error:

Run ./.github/actions/release-upload
/Users/runner/runners/2.157.5/work/myproject/.github/actions/release-upload/node_modules/@octokit/endpoint/dist-node/index.js:360
const userAgent = `octokit-endpoint.js/${VERSION} ${universalUserAgent.getUserAgent()}`;
                                                                       ^

TypeError: universalUserAgent.getUserAgent is not a function
    at Object.<anonymous> (/Users/runner/runners/2.157.5/work/myproject/.github/actions/release-upload/node_modules/@octokit/endpoint/dist-node/index.js:360:72)
    at Module._compile (internal/modules/cjs/loader.js:774:30)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:785:10)
    at Module.load (internal/modules/cjs/loader.js:641:32)
    at Function.Module._load (internal/modules/cjs/loader.js:556:12)
    at Module.require (internal/modules/cjs/loader.js:681:19)
    at require (internal/modules/cjs/helpers.js:16:16)
    at Object.<anonymous> (/Users/runner/runners/2.157.5/work/myproject/.github/actions/release-upload/node_modules/@octokit/request/dist-node/index.js:7:16)
    at Module._compile (internal/modules/cjs/loader.js:774:30)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:785:10)
##[error]Node run failed with exit code 1

Now, seems to me that the error is caused by the fact that the "compiled" js version of the package universal-user-agent has main pointing to the file that actually returns a function, rather than an object.

part of universal-user-agent's package.json (inside node_modules for @octokit/endpoint):

  ...
  "homepage": "https://github.com/gr2m/universal-user-agent#readme",
  "keywords": [],
  "license": "ISC",
  "main": "dist-node/index.js",
  "module": "dist-web/index.js",
  "name": "universal-user-agent",
  "pika": true,
  ...

Also that issue seems to be related to the gr2m/universal-user-agent#23

Thank you!

[BUG]: Undefined slash-parameters likely expanded incorrectly

What happened?

> const { endpoint } = require("@octokit/endpoint");
> endpoint("http://api.github.com/repos/octocat/Hello-World/branches{/branch}", {})
{
  method: 'GET',
  url: 'http://api.github.com/repos/octocat/Hello-World/branches/',
  headers: {
    accept: 'application/vnd.github.v3+json',
    'user-agent': 'octokit-endpoint.js/7.0.4 Node.js/19.4.0 (linux; x64)'
  }
}

Note the slash at the end of url. GitHub returns 404 for .../branches/, but lists branches for .../branches.

Expanding the same URL with url-template and empty context returns .../branches. This makes me belive that endpoint.js performs template expansion incorrectly.

Versions

Octokit.js v7.0.4, Node v19.4.0

Relevant log output

No response

Code of Conduct

  • I agree to follow this project's Code of Conduct

TypeError: merge.all is not a function

I'm using webpack 4.26.1 with rest.js, but after a successful bundling the application encountered this error TypeError: merge.all is not a function.

Then I tried the TypeScript compiler, while it works perfect.

I've found the simillar issue(#1129 ), but it doesn't help at all.

Here is the error stack:

TypeError: merge.all is not a function
	at defaultOptions (webpack:///./node_modules/@octokit/endpoint/lib/merge.js?:19:19)
	at withDefaults (webpack:///./node_modules/@octokit/endpoint/with-defaults.js?:8:20)
	at eval (webpack:///./node_modules/@octokit/endpoint/index.js?:4:18)
	at Object../node_modules/@octokit/endpoint/index.js (/Users/Zoro/Workspace/vscode-syncing/dist/extension.js:96:1)
	at __webpack_require__ (/Users/Zoro/Workspace/vscode-syncing/dist/extension.js:20:30)
	at eval (webpack:///./node_modules/@octokit/request/index.js?:1:18)
	at Object../node_modules/@octokit/request/index.js (/Users/Zoro/Workspace/vscode-syncing/dist/extension.js:217:1)
	at __webpack_require__ (/Users/Zoro/Workspace/vscode-syncing/dist/extension.js:20:30)
	at eval (webpack:///./node_modules/@octokit/rest/lib/constructor.js?:3:18)
	at Object../node_modules/@octokit/rest/lib/constructor.js (/Users/Zoro/Workspace/vscode-syncing/dist/extension.js:306:1)
	at __webpack_require__ (/Users/Zoro/Workspace/vscode-syncing/dist/extension.js:20:30)
	at eval (webpack:///./node_modules/@octokit/rest/lib/factory.js?:3:17)
	at Object../node_modules/@octokit/rest/lib/factory.js (/Users/Zoro/Workspace/vscode-syncing/dist/extension.js:328:1)
	at __webpack_require__ (/Users/Zoro/Workspace/vscode-syncing/dist/extension.js:20:30)
	at eval (webpack:///./node_modules/@octokit/rest/lib/core.js?:1:17)
	at Object../node_modules/@octokit/rest/lib/core.js (/Users/Zoro/Workspace/vscode-syncing/dist/extension.js:317:1)
	at __webpack_require__ (/Users/Zoro/Workspace/vscode-syncing/dist/extension.js:20:30)
	at eval (webpack:///./node_modules/@octokit/rest/index.js?:1:17)
	at Object../node_modules/@octokit/rest/index.js (/Users/Zoro/Workspace/vscode-syncing/dist/extension.js:295:1)
	at __webpack_require__ (/Users/Zoro/Workspace/vscode-syncing/dist/extension.js:20:30)

After debugging into the package deepmerge, I got this:

default

Note that the webpack imports the deepmerge from "./node_modules/deepmerge/dist/es.js", which is an ES module. But it doesn't extract the merge object from the default property of the imported ES module.
Thus, calling merge.all will raise the error, instead it should be called as merge.default.all, but of cause it cannot be an acceptable solution.

Dependency Dashboard

This issue contains a list of Renovate updates and their statuses.

Awaiting Schedule

These updates are awaiting their schedule. Click on a checkbox to ignore the schedule.

  • fix(deps): lock file maintenance

  • Check this box to trigger a request for Renovate to run again on this repository

An in-range update of cypress is breaking the build 🚨

The devDependency cypress was updated from 3.1.2 to 3.1.3.

🚨 View failing branch.

This version is covered by your current version range and after updating it in your project the build failed.

cypress is a devDependency of this project. It might not break your production code or affect downstream projects, but probably breaks your build or test tools, which may prevent deploying or publishing.

Status Details
  • ❌ continuous-integration/travis-ci/push: The Travis CI build could not complete due to an error (Details).

FAQ and help

There is a collection of frequently asked questions. If those don’t help, you can always ask the humans behind Greenkeeper.


Your Greenkeeper Bot 🌴

Action Required: Fix Renovate Configuration

There is an error with this repository's Renovate configuration that needs to be fixed. As a precaution, Renovate will stop PRs until it is resolved.

Location: package.json
Error type: The renovate configuration file contains some invalid settings
Message: Configuration option 'packageRules[1].npm' should be a json object, Invalid configuration option: @pika/pack, Invalid configuration option: author, Invalid configuration option: jest, Invalid configuration option: keywords, Invalid configuration option: license, Invalid configuration option: name, Invalid configuration option: packageRules[0].@pika/pack, Invalid configuration option: packageRules[0].@pika/plugin-build-node, Invalid configuration option: packageRules[0].@pika/plugin-build-web, Invalid configuration option: packageRules[0].@pika/plugin-ts-standard-pkg, Invalid configuration option: packageRules[0].@types/jest, Invalid configuration option: packageRules[0].jest, Invalid configuration option: packageRules[0].prettier, Invalid configuration option: packageRules[0].semantic-release, Invalid configuration option: packageRules[0].semantic-release-plugin-update-version-in-files, Invalid configuration option: packageRules[0].ts-jest, Invalid configuration option: packageRules[0].typescript, Invalid configuration option: packageRules[1].@octokit/types, Invalid configuration option: packageRules[1].i, Invalid configuration option: packageRules[1].is-plain-object, Invalid configuration option: packageRules[1].universal-user-agent, Invalid configuration option: publishConfig, Invalid configuration option: release, Invalid configuration option: renovate, Invalid configuration option: scripts, Invalid configuration option: version, The "npm" object can only be configured at the top level of a config but was found inside "packageRules[1]"

Reduce bundle size for browsers

The current bundle size is 9.15KB, minified and gzipped. I’m sure there are ways to further reduce the file size. To test it locally, you can run

npm run build
npx bundlesize

There is also a built-in bundle report which tells you where the most of size is coming from

npm run bundle-report
# then open ./dist/bundle-report.html

An in-range update of webpack is breaking the build 🚨

The devDependency webpack was updated from 4.26.1 to 4.27.0.

🚨 View failing branch.

This version is covered by your current version range and after updating it in your project the build failed.

webpack is a devDependency of this project. It might not break your production code or affect downstream projects, but probably breaks your build or test tools, which may prevent deploying or publishing.

Status Details
  • ❌ continuous-integration/travis-ci/push: The Travis CI build could not complete due to an error (Details).

Release Notes for v4.27.0

Features

  • When using functions as plugins they are now also called with the compiler as parameter
    • This make it possible to use arrow functions as plugins
  • splitChunks.maxSize now emits a warning when minSize > maxSize
  • Loaders have now access to a getResolve method to create their own resolver function with custom options

Bugfixes

  • splitChunks.cacheGroups.xxx.enforce now behaves as documented and enforce chunk creation
  • splitChunks.cacheGroups.xxx.enforce now no longer deletes minSize for maxSize
  • fixes a bug where splitChunks cause cacheGroups to be incorrectly merged when using the same name
    • now conditions are considered per cacheGroup
    • the correct cache group comment is displayed in stats
  • fixes a bug which causes providedExports not to be updated on rebuilds when using export * from
Commits

The new version differs by 12 commits.

  • f47bf8b 4.27.0
  • a67ffcd Merge pull request #8452 from webpack/feature/resolveWithOptions
  • 96f625c Merge pull request #8457 from webpack/bugfix/rebuild-provided-exports
  • 56feccc convert test case to normal function for node.js 6 support
  • 2f4296e fix a bug which causes incorrect providedExports for cached modules
  • f944002 Merge pull request #8451 from webpack/bugfix/split-chunks
  • 162da1c add getResolve method to loader context
  • 3b46b48 enforce doesn't affect minSize for maxSize
  • 72a8a1f Merge pull request #8440 from Connormiha/oprimize-chunk-can-be-integrated
  • 537d3e4 Cache hasRunstime in chunk
  • e3e8a68 Merge pull request #8405 from xiaoxiaojx/fix-function-plugin-apply
  • 70b9a1b fix parameter missing when plugin type is a funtion

See the full diff

FAQ and help

There is a collection of frequently asked questions. If those don’t help, you can always ask the humans behind Greenkeeper.


Your Greenkeeper Bot 🌴

[FEAT]: integrate isPlainObject

Describe the need

placeholder issue for the existing PR #457

SDK Version

No response

API Version

No response

Relevant log output

No response

Code of Conduct

  • I agree to follow this project's Code of Conduct

Replace "cdn.pika.dev" with "cdn.skypack.dev" in README

πŸ†•πŸ₯☝ First Timers Only.

This issue is reserved for people who never contributed to Open Source before. We know that the process of creating a pull request is the biggest barrier for new contributors. This issue is for you πŸ’

About First Timers Only.

πŸ€” What you will need to know.

The Pika CDN is now Skypack, see https://www.pika.dev/cdn. The CDN at https://cdn.pika.dev/ no longer works, all URLs must be replaced with the new CDN: https://cdn.skypack.dev/. We currently recommend using cdn.pika.dev to import the library into the browser, but that no longer works. Replacing it with cdn.skypack.dev will make it work again.

πŸ“‹ Step by Step

  • πŸ™‹ Claim this issue: Comment below.

    More than one person can work on this issue, don't worry if it's already claimed.

  • πŸ“ Update the file \README.md (press the little pen Icon) and edit as shown below:

@@ -32,11 +32,11 @@
 <tr><th>
 Browsers
 </th><td width=100%>
-Load <code>@octokit/endpoint</code> directly from <a href="https://cdn.pika.dev">cdn.pika.dev</a>
+Load <code>@octokit/endpoint</code> directly from <a href="https://cdn.skypack.dev">cdn.skypack.dev</a>
         
 ```html
 <script type="module">
-import { endpoint } from "https://cdn.pika.dev/@octokit/endpoint";
+import { endpoint } from "https://cdn.skypack.dev/@octokit/endpoint";
 </script>
 ```
  • πŸ’Ύ Commit your changes

  • πŸ”€ Start a Pull Request. There are two ways how you can start a pull request:

    1. If you are familiar with the terminal or would like to learn it, here is a great tutorial on how to send a pull request using the terminal.
    2. You can edit files directly in your browser
  • 🏁 Done Ask for a review :)

If there are more than one pull requests with the correct change, we will merge the first one, but attribute the change to all authors who made the same change using @Co-authored-by, so yo can be sure your contribution will count.

πŸ€”β“ Questions

Leave a comment below!

This issue was created by First-Timers-Bot.

"Update a webhook configuration for an app" is not available from octokit.

Hello, Thanks for develop a useful library. I have always used octokit.js when using GitHub's API with JavaScript.

What happened?

I recently tried to update webhook settings of the GitHub App when it failed, because the request URL had been rewritten with an optional parameter "url". The GitHub API I used is here.

await octokit.apps.updateWebhookConfigForApp({
    url: "https://example.com",
});
/node_modules/@octokit/request/dist-node/index.js:86
      const error = new requestError.RequestError(toErrorMessage(data), status, {
                    ^

RequestError [HttpError]
    at /node_modules/@octokit/request/dist-node/index.js:86:21
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async sendRequestWithRetries (/node_modules/@octokit/auth-app/dist-node/index.js:376:12)
    at async Job.doExecute (/node_modules/bottleneck/light.js:405:18) {
  status: 405,
  response: {
    url: 'https://example.com/',
    status: 405,
    headers: {
      'cache-control': 'max-age=604800',
      connection: 'close',
      'content-length': '0',
      'content-type': 'text/html; charset=UTF-8',
      date: 'Wed, 05 Oct 2022 03:15:29 GMT',
      expires: 'Wed, 12 Oct 2022 03:15:29 GMT',
      server: 'EOS (vny/0453)'
    },
    data: ''
  },
  request: {
    method: 'PATCH',
    url: 'https://example.com',
    headers: {
      accept: 'application/vnd.github.v3+json',
      'user-agent': 'probot/12.2.8 octokit-core.js/3.6.0 Node.js/16.11.0 (darwin; arm64)',
      authorization: 'token [REDACTED]',
      'content-length': 0
    },
    body: '',
    request: {
      hook: [Function: bound bound register],
      retryCount: 3,
      retries: 3,
      retryAfter: 16
    }
  }
}

The request url is "https://example.com". This problem is caused by overwriting the url with an optional url in endpoint.merge using by Object.assign.
https://github.com/octokit/endpoint.js/blob/master/src/merge.ts#L14

reproducible test case: https://runkit.com/kuroppe1819/633c4007c4b5ac0008e59295

Proposal

Update my GitHub App webhook url by using octokit.js. In order to do that wish to solve the problem of not being able to add URL parameters to the request body.

How about an approach that allows the body_url parameter to be specified, e.g.

const merged = endpoint.merge("PATCH /app/hook/config", {
    body_url: "https://example.com"
});
const parsed = endpoint.parse(merged);

console.log(parsed);
// expect
// {
//   method: "PATCH",
//   url: "https://api.github.com/app/hook/config",
//   headers: {
//     accept: "application/vnd.github.v3+json",
//     user-agent: "octokit-endpoint.js/7.0.2 Node.js/14.20.1 (linux; x64)"
//   },
//   body: {
//     url: "https://example.com"
//   }
// }

or body object to merge function argument.

const merged = endpoint.merge("PATCH /app/hook/config", {
  content_type: "json",
  body: {
    url: "https://example.com",
    secret: "XXXX"
  }
});
const parsed = endpoint.parse(merged);

console.log(parsed);
// expect
// {
//   method: "PATCH",
//   url: "https://api.github.com/app/hook/config",
//   headers: {
//     accept: "application/vnd.github.v3+json",
//     user-agent: "octokit-endpoint.js/7.0.2 Node.js/14.20.1 (linux; x64)"
//   },
//   body: {
//     content_type: "json",
//     url: "https://example.com",
//     secret: "XXXX"
//   }
// }

if merge method or parse method interface are able to change it, I think more good approach to do proposal. First, I have suggested a safe implementation. If you have a cooler implementation, please advise.

An in-range update of mocha is breaking the build 🚨

The devDependency mocha was updated from 6.0.2 to 6.1.0.

🚨 View failing branch.

This version is covered by your current version range and after updating it in your project the build failed.

mocha is a devDependency of this project. It might not break your production code or affect downstream projects, but probably breaks your build or test tools, which may prevent deploying or publishing.

Status Details
  • ❌ continuous-integration/travis-ci/push: The Travis CI build failed (Details).
  • βœ… coverage/coveralls: First build on greenkeeper/mocha-6.1.0 at 100.0% (Details).

Release Notes for v6.1.0

6.1.0 / 2019-04-07

πŸ”’ Security Fixes

  • #3845: Update dependency "js-yaml" to v3.13.0 per npm security advisory (@plroebuck)

πŸŽ‰ Enhancements

  • #3766: Make reporter constructor support optional options parameter (@plroebuck)
  • #3760: Add support for config files with .jsonc extension (@sstephant)

πŸ“  Deprecations

These are soft-deprecated, and will emit a warning upon use. Support will be removed in (likely) the next major version of Mocha:

πŸ› Fixes

  • #3829: Use cwd-relative pathname to load config file (@plroebuck)
  • #3745: Fix async calls of this.skip() in "before each" hooks (@juergba)
  • #3669: Enable --allow-uncaught for uncaught exceptions thrown inside hooks (@givanse)

and some regressions:

πŸ“– Documentation

πŸ”© Other

  • #3830: Replace dependency "findup-sync" with "find-up" for faster startup (@cspotcode)
  • #3799: Update devDependencies to fix many npm vulnerabilities (@XhmikosR)
Commits

The new version differs by 28 commits.

  • f4fc95a Release v6.1.0
  • bd29dbd update CHANGELOG for v6.1.0 [ci skip]
  • aaf2b72 Use cwd-relative pathname to load config file (#3829)
  • b079d24 upgrade deps as per npm audit fix; closes #3854
  • e87c689 Deprecate this.skip() for "after all" hooks (#3719)
  • 81cfa90 Copy Suite property "root" when cloning; closes #3847 (#3848)
  • 8aa2fc4 Fix issue 3714, hide pound icon showing on hover header on docs page (#3850)
  • 586bf78 Update JS-YAML to address security issue (#3845)
  • d1024a3 Update doc examples "tests.html" (#3811)
  • 1d570e0 Delete "/docs/example/chai.js"
  • ade8b90 runner.js: "self.test" undefined in Browser (#3835)
  • 0098147 Replace findup-sync with find-up for faster startup (#3830)
  • d5ba121 Remove "package" flag from sample config file because it can only be passes as CLI arg (#3793)
  • a3089ad update package-lock
  • 75430ec Upgrade yargs-parser dependency to avoid loading 2 copies of yargs

There are 28 commits in total.

See the full diff

FAQ and help

There is a collection of frequently asked questions. If those don’t help, you can always ask the humans behind Greenkeeper.


Your Greenkeeper Bot 🌴

GET/HEAD requests: do not attach query parameter if value is `undefined`

Example

const requestOptions = endpoint("GET /repos/{owner}/{repo}/contents/{path}", {
  owner: "owner",
  repo: "repo",
  path: "path/to/file.txt",
  ref: undefined,
});

requestOptions.url is now "https://api.github.com/repos/owner/repo/contents/path%2Fto%2Ffile.txt?ref=undefined", but should be just "https://api.github.com/repos/owner/repo/contents/path%2Fto%2Ffile.txt"

I'd appreciate a pull request if anyone would like to work on this. You can start out by creating a pull request with a failing test reproducing the above behavior. The test will go into test/endpoint.test.ts.

TypeScript: if endpoint for passed route has required parameters, require a parameters object to be set

Today, TypeScript does not complain about this

endpoint("GET /orgs/:org");

But it should, because the org parameter is required. If "GET /orgs/:org" is set, then TypeScript should complain that only one of two parameters is set and only chill once the code is

endpoint("GET /orgs/:org", {
  org: 'my-org'
});

I'll get to this myself eventually, but if anyone wants to give that a go, just comment and give it a go :)

An in-range update of @octokit/types is breaking the build 🚨


🚨 Reminder! Less than one month left to migrate your repositories over to Snyk before Greenkeeper says goodbye on June 3rd! πŸ’œ πŸššπŸ’¨ πŸ’š

Find out how to migrate to Snyk at greenkeeper.io


The dependency @octokit/types was updated from 2.16.0 to 2.16.1.

🚨 View failing branch.

This version is covered by your current version range and after updating it in your project the build failed.

@octokit/types is a direct dependency of this project, and it is very likely causing it to break. If other packages depend on yours, this update is probably also breaking those in turn.

Status Details
  • ❌ test (13): There are 2 failures, 0 warnings, and 0 notices.
  • ❌ test (12): There are 2 failures, 0 warnings, and 0 notices.
  • ❌ test (10): There are 1 failures, 0 warnings, and 0 notices.

Release Notes for v2.16.1

2.16.1 (2020-05-12)

Bug Fixes

  • trigger release to test new build using pika (1327b02)
Commits

The new version differs by 2 commits.

  • 1327b02 fix: trigger release to test new build using pika
  • 438bfdf build: use pika to build before release (#63)

See the full diff

FAQ and help

There is a collection of frequently asked questions. If those don’t help, you can always ask the humans behind Greenkeeper.


Your Greenkeeper Bot 🌴

Rewrite in Typescript

I was very cautious to write libraries in Typescript, I was always thinking that it might increase barriers to contributors. But we won’t get around having typescript definitions and the constant problems that occur due to JavaScript code being out-of-sync with the Typescript definitions I think it’s time to embrace Typescript.

If you have any concerns, now is the time to raise them. I’ll probably rewrite all @octokit/* libraries to Typescript.

I started experimenting with Typescript definitions for @ocotkit/endpoint a while ago:

type KnownRoute = 
    | 'GET /foo'
    | 'POST /foo'
type Method = 
    | 'DELETE'
    | 'GET'
    | 'HEAD'
    | 'PATCH'
    | 'POST'
    | 'PUT'
type KnownPath =
    | '/foo'
type Options = {
    headers?: Object,
    request?: Object,
    baseUrl?: string,
    data?: any
    [option: string]: any
}
type KnownRouteOptions = {
    method: Method,
    url: KnownPath
}
type CustomRouteOptions = {
    method: Method,
    url: string
}
type RequestOptions = {
    method: Method,
    url: string,
    headers: object,
    body?: any,
    request?: object
}

type GetFooRoute = 'GET /foo'
type GetFooOptions = {
    headers?: object,
    request?: object,
    bar: string,
    baz:
        | 'one'
        | 'two'
        | 'three'
}
type GetFooRequestOptions = {
    method: 'GET',
    url: string,
    headers: object,
    request?: object
}

/**
 * Super funky fresh!
 * 
 * @param route funky
 * @param options fresh
 */
function endpoint (route: GetFooRoute, options: GetFooOptions): GetFooRequestOptions;
function endpoint (route: KnownRoute, options?: Options): RequestOptions;
function endpoint (route: string, options?: Options): RequestOptions;
function endpoint (options: Options & KnownRouteOptions): RequestOptions;
function endpoint (options: Options & CustomRouteOptions): RequestOptions;
function endpoint (route?, options?): RequestOptions {
    return {
        method: 'GET',
        url: '/foo',
        headers: {}
    }
}

My thinking is that we could use @octokit/routes to generate typescript definitions for every known route, I think that would provide a very sleek developer experience.

The same definitions can be inherited by @octokit/request, so people might end up just using this library in order to minimize their bundle size, but still have nice typeahead experience.

An in-range update of nyc is breaking the build 🚨

The devDependency nyc was updated from 13.1.0 to 13.2.0.

🚨 View failing branch.

This version is covered by your current version range and after updating it in your project the build failed.

nyc is a devDependency of this project. It might not break your production code or affect downstream projects, but probably breaks your build or test tools, which may prevent deploying or publishing.

Status Details
  • ❌ continuous-integration/travis-ci/push: The Travis CI build failed (Details).
  • βœ… coverage/coveralls: First build on greenkeeper/nyc-13.2.0 at 100.0% (Details).

Commits

The new version differs by 17 commits.

  • 29e6f5e chore(release): 13.2.0
  • e95856c chore: Update dependencies. (#978)
  • 921d386 fix: Create directory for merge destination. (#979)
  • df2730d feat: Option Plugins (#948)
  • 35cd49a feat: document the fact that cacheDir is configurable (#968)
  • ff834aa feat: avoid hardcoded HOME for spawn-wrap working dir (#957)
  • 35710b1 build: move windows tests to travis (#961)
  • 93cb5c1 tests: coverage for temp-dir changes (#964)
  • d566efe test: stop using LAZY_LOAD_COUNT (#960)
  • f23d474 chore: update stale bot config with feedback (#958)
  • 62d7fb8 chore: slight tweak to position of test
  • 28b6d09 fix: missing command temp-directory (#928)
  • 40afc5f fix: nyc processing files not covered by include when all is enabled. (#914)
  • ba22a26 docs(readme): Update to reflect .nycrc.json support (#934)
  • 2dbb82d chore: enable probot-stale

There are 17 commits in total.

See the full diff

FAQ and help

There is a collection of frequently asked questions. If those don’t help, you can always ask the humans behind Greenkeeper.


Your Greenkeeper Bot 🌴

remove support for `:name` URL parameters

We only support it for legacy reasons. GitHub is no longer documenting the REST API endpoints using the :name notation for a long time now. We should remove support for it as well.

An in-range update of webpack-bundle-analyzer is breaking the build 🚨

The devDependency webpack-bundle-analyzer was updated from 3.0.3 to 3.0.4.

🚨 View failing branch.

This version is covered by your current version range and after updating it in your project the build failed.

webpack-bundle-analyzer is a devDependency of this project. It might not break your production code or affect downstream projects, but probably breaks your build or test tools, which may prevent deploying or publishing.

Status Details
  • ❌ continuous-integration/travis-ci/push: The Travis CI build failed (Details).
  • βœ… coverage/coveralls: First build on greenkeeper/webpack-bundle-analyzer-3.0.4 at 100.0% (Details).

Commits

The new version differs by 11 commits.

  • 2d340ff v3.0.4
  • 477d362 Add changelog entry for async fix (#250)
  • 1c8aba3 Make webpack's done hook wait until analyzer writes report / stat file. (#247)
  • 1821812 Fix error message typo (#234)
  • f94fb30 Merge pull request #231 from fanich37/stat-size-issue
  • 363a34a Fix README.md
  • fa30ce1 Clean usage section at README.md
  • 66f48d9 Update troubleshooting section at README.md
  • 15402cb Update README.md (#191)
  • a3ee8e0 ci: test Node.js 6, 8, 10 and 11 (#227)
  • 61f260b Add Yarn install instructions to readme (#222)

See the full diff

FAQ and help

There is a collection of frequently asked questions. If those don’t help, you can always ask the humans behind Greenkeeper.


Your Greenkeeper Bot 🌴

An in-range update of semantic-release is breaking the build 🚨

The devDependency semantic-release was updated from 15.12.3 to 15.12.4.

🚨 View failing branch.

This version is covered by your current version range and after updating it in your project the build failed.

semantic-release is a devDependency of this project. It might not break your production code or affect downstream projects, but probably breaks your build or test tools, which may prevent deploying or publishing.

Status Details
  • ❌ continuous-integration/travis-ci/push: The Travis CI build could not complete due to an error (Details).

Release Notes for v15.12.4

15.12.4 (2018-11-30)

Bug Fixes

  • remove unnecessary branch parameter from push function (ffe1062)
Commits

The new version differs by 1 commits.

  • ffe1062 fix: remove unnecessary branch parameter from push function

See the full diff

FAQ and help

There is a collection of frequently asked questions. If those don’t help, you can always ask the humans behind Greenkeeper.


Your Greenkeeper Bot 🌴

An in-range update of webpack is breaking the build 🚨

The devDependency webpack was updated from 4.29.0 to 4.29.1.

🚨 View failing branch.

This version is covered by your current version range and after updating it in your project the build failed.

webpack is a devDependency of this project. It might not break your production code or affect downstream projects, but probably breaks your build or test tools, which may prevent deploying or publishing.

Status Details
  • ❌ continuous-integration/travis-ci/push: The Travis CI build failed (Details).
  • βœ… coverage/coveralls: First build on greenkeeper/webpack-4.29.1 at 100.0% (Details).

Release Notes for v4.29.1

Bugfixes

  • add missing __esModule flag when modules are concatenated, but without usage information
Commits

The new version differs by 14 commits.

  • 6934b98 4.29.1
  • 960f396 Merge pull request #8686 from MarkPollmann/patch-1
  • 8627743 Merge pull request #8678 from bhavya9107/patch-1
  • 915c32d docs(README): remove to from link
  • 9737a3b Update README.md
  • f654a49 docs(README):Update index
  • c957338 docs(README): newline after index
  • 09cf713 docs(README): add index
  • 07d4d85 Merge pull request #8676 from hulkish/fix-side-effects-example
  • 2209b8a rebuild examples
  • 780c17e fix side-effects example
  • 2fe0ba5 Normalize backslash on windows
  • a0eab48 Merge pull request #8667 from webpack/bugfix/esModule-flag
  • 42007e8 fixes #8666

See the full diff

FAQ and help

There is a collection of frequently asked questions. If those don’t help, you can always ask the humans behind Greenkeeper.


Your Greenkeeper Bot 🌴

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.