Unibeautify / auto-config

Attempt to automatically determine best Unibeautify configuration for desired code format
MIT License
1 stars 0 forks source link

Update dependency dataloader to v2 #6

Open renovate[bot] opened 4 years ago

renovate[bot] commented 4 years ago

Mend Renovate

This PR contains the following updates:

Package Change Age Adoption Passing Confidence
dataloader ^1.4.0 -> ^2.0.0 age adoption passing confidence

Release Notes

graphql/dataloader ### [`v2.2.2`](https://togithub.com/graphql/dataloader/blob/HEAD/CHANGELOG.md#​222) [Compare Source](https://togithub.com/graphql/dataloader/compare/v2.2.1...v2.2.2) ##### Patch Changes - [#​334](https://togithub.com/graphql/dataloader/pull/334) [`e286f66`](https://togithub.com/graphql/dataloader/commit/e286f662657675fa790f33abcd6aa87b5aac2be3) Thanks [@​henrinormak](https://togithub.com/henrinormak)! - Added missing type definition for Dataloader.name ### [`v2.2.1`](https://togithub.com/graphql/dataloader/blob/HEAD/CHANGELOG.md#​221) [Compare Source](https://togithub.com/graphql/dataloader/compare/v2.2.0...v2.2.1) ##### Patch Changes - [#​331](https://togithub.com/graphql/dataloader/pull/331) [`6d2efb7`](https://togithub.com/graphql/dataloader/commit/6d2efb7dd0363062de255e723c29a781d0ea9937) Thanks [@​saihaj](https://togithub.com/saihaj)! - `name` is an optional property ### [`v2.2.0`](https://togithub.com/graphql/dataloader/blob/HEAD/CHANGELOG.md#​220) [Compare Source](https://togithub.com/graphql/dataloader/compare/v2.1.0...v2.2.0) ##### Minor Changes - [#​326](https://togithub.com/graphql/dataloader/pull/326) [`6c758d0`](https://togithub.com/graphql/dataloader/commit/6c758d03bef628a69b238f053da3b263cd5e3321) Thanks [@​SimenB](https://togithub.com/SimenB)! - Add `name` property to `DataLoader`. Useful in APM tools. ##### Patch Changes - [#​318](https://togithub.com/graphql/dataloader/pull/318) [`588a8b6`](https://togithub.com/graphql/dataloader/commit/588a8b6c6391aad042b369f10dc440c7e0458312) Thanks [@​boopathi](https://togithub.com/boopathi)! - Fix the propagation of sync throws in the batch function to the loader function instead of crashing the process wtih an uncaught exception. - [#​252](https://togithub.com/graphql/dataloader/pull/252) [`fae38f1`](https://togithub.com/graphql/dataloader/commit/fae38f14702e925d1e59051d7e5cb3a9a78bfde8) Thanks [@​LinusU](https://togithub.com/LinusU)! - Fix types for priming cache with promise - [#​321](https://togithub.com/graphql/dataloader/pull/321) [`3cd3a43`](https://togithub.com/graphql/dataloader/commit/3cd3a430bdb4f9ef2f7f265a29e93e0255277885) Thanks [@​thekevinbrown](https://togithub.com/thekevinbrown)! - Resolves an issue where the maxBatchSize parameter wouldn't be fully used on each batch sent to the backend loader. ### [`v2.1.0`](https://togithub.com/graphql/dataloader/blob/HEAD/CHANGELOG.md#​210) [Compare Source](https://togithub.com/graphql/dataloader/compare/v2.0.0...v2.1.0) ##### Minor Changes - [`28cf959`](https://togithub.com/graphql/dataloader/commit/28cf959): - Do not return void results from arrow functions https://github.com/graphql/dataloader/commit/3b0bae94e91453d9a432c02628745252abc5e011 - Fix typo in `loader.load()` error message https://github.com/graphql/dataloader/commit/249b2b966a8807c50e07746ff04acb8c48fa4357 - Fix typo in SQL example https://github.com/graphql/dataloader/commit/cae1a3d9bfa48e181a49fd443f43813b335dc120 - Fix typo in TypeScript declaration https://github.com/graphql/dataloader/commit/ef6d32f97cde16aba84d96dc806c4439eaf8efae - Most of the browsers don't have `setImmediate`. `setImmediate || setTimeout` doesn't work and it throws `setImmediate` is not defined in this case, so we should check setImmediate with typeof. And some environments like Cloudflare Workers don't allow you to set setTimeout directly to another variable. https://github.com/graphql/dataloader/commit/3e62fbe7d42b7ab1ec54818a1491cb0107dd828a ##### Patch Changes - [`3135e9a`](https://togithub.com/graphql/dataloader/commit/3135e9a): Fix typo in jsdoc comment; flip "objects are keys" to "keys are objects" ### [`v2.0.0`](https://togithub.com/graphql/dataloader/releases/tag/v2.0.0) [Compare Source](https://togithub.com/graphql/dataloader/compare/v1.4.0...v2.0.0) This is the first release since becoming part of the GraphQL Foundation and the most significant since the initial release over four years ago. Read more about the history of the project and this release in the [blog post](https://medium.com/@​leeb/dataloader-v2-0-925b4dccf8d6). **Breaking:** - [#​216](https://togithub.com/graphql/dataloader/issues/216): `.loadMany()` now returns an array which may contain `Error` if one of the requested keys failed. > Previously `.loadMany()` was exactly the same as calling `Promise.all()` on multiple `.load()` calls. While syntactically a minor convenience, this wasn't particularly useful over what could be done with `Promise.all` directly and if one key failed, it meant the entire call to `.loadMany()` would fail. As of this version, `.loadMany()` can now return a mix of values and `Error` instances in the case that some keys failed, but the Promise it returns will never be rejected. This is similar to the behavior of the new [Promise.allSettled](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise/allSettled) method in the upcoming version of JavaScript. > > This will break any code which relied on `.loadMany()`. To support this change, either ensure the each item in the result of `.loadMany()` are checked against `instanceof Error` or replace calls like `loader.loadMany([k1, k2])` with `Promise.all([loader.load(k1), loader.load(k2))`. - [#​220](https://togithub.com/graphql/dataloader/issues/220): The timing of calls to `batchLoadFn` when `{ batch: false }` has changed to the end of the run-loop tick. > Previously when batching was disabled the `batchLoadFn` would be called immediately when `.load()` is called. This differed from the `batchLoadFn` being called at the end of the tick of the run-loop for when batching was enabled. This timing difference could lead to subtle race conditions for code which dynamically toggled batching on or off. As a simplification, the `batchLoadFn` is now always called at the end of the run-loop tick regardless of whether batching is disabled. > > Hopefully this will not break your code. It could cause issues for any code which relied on this synchronous call to `batchLoadFn` for loaders where batching was disabled. - [#​222](https://togithub.com/graphql/dataloader/issues/222): Promises for cached values now wait to resolve until the rest of the batch resolves. > Previously when `.load()` encountered a cached value it would return an already resolved (or rejected) Promise. However when additional dependent loads happened after these, the difference in time between the cache hit value resolving and the cache miss value resolving would result in additional unnecessary network requests. As of this version when `.load()` encounters a cached value it returns a Promise which waits to resolve until the call to `batchLoadFn` also resolves. This should result in better whole-program performance and is the most significant conceptual change and improvement. This is actually not a new innovation but a correction to match the original behavior of Facebook's "Loader" from 2010 this library is inspired by. > > This changes the timing of when Promises are resolved and thus could introduce subtle behavioral change in your code, especially if your code is prone to race conditions. Please test carefully. > > This also means each return of `.load()` is a new Promise instance. Where prior versions returned the same Promise instance for cached results, this version does not. This may break code which uses the returned Promise as a memoization key or in some other way assumed reference equality. - [#​226](https://togithub.com/graphql/dataloader/issues/226): The names of private class variables have changed > This really shouldn't break your code because you definitely don't reach into class private variables, right? I just figured it would be something you'd like to know, you know... just in case. **New:** - [#​176](https://togithub.com/graphql/dataloader/issues/176) [#​209](https://togithub.com/graphql/dataloader/issues/209): MIT licensed (no longer BSD+Patents) and copyrights moved from Facebook to the GraphQL Foundation - [#​182](https://togithub.com/graphql/dataloader/issues/182): The DataLoader instance is now available as `this` in `batchLoadFn` - [#​228](https://togithub.com/graphql/dataloader/issues/228): Support for custom batch scheduling functions > The dirty secret of DataLoader is that most of it is quite boring. The interesting bit is the batch scheduling function which takes advantage of Node.js's unique run-loop scheduler to acheive automatic batching without any additional latency. However since its release, ports to other languages have found this bit to be not be easily replicated and have either replaced it with something conceptually simpler (like manual dispatch) or with a scheduler custom fit to a GraphQL execution engine. These are interesting innovations which deserve ground for experimentation in this original library as well. > > Via `batchScheduleFn`, you can now provide a custom batch scheduling function and experiment with manual dispatch, added latency dispatch, or any other behavior which might work best for your application. **Types:** - [#​145](https://togithub.com/graphql/dataloader/issues/145): Improved TypeScript/Flow types for custom `cacheKeyFn` and `cacheMap` - [#​146](https://togithub.com/graphql/dataloader/issues/146): TypeScript types allow `batchLoadFn` to return a `PromiseLike`, supporting use of bluebird - [#​214](https://togithub.com/graphql/dataloader/issues/214) [#​219](https://togithub.com/graphql/dataloader/issues/219): TypeScript/Flow types allow `batchLoadFn` to return `ArrayLike`, supporting returning read-only arrays - [#​168](https://togithub.com/graphql/dataloader/issues/168): Flow types now use strict mode, allowing safe import into other strict mode code - [#​217](https://togithub.com/graphql/dataloader/issues/217): Fixed an issue where TypeScript/Flow would incorrectly report an error when providing an `Error` to `.prime()` **Fixes:** - [#​215](https://togithub.com/graphql/dataloader/issues/215): Fixed an issue where a cache could still consume memory, even when caching was disabled - [#​223](https://togithub.com/graphql/dataloader/issues/223): Fixed an issue where providing an `Error` to `.prime()` could incorrectly cause an unhandled promise rejection warning **Documentation:** - Added references to a ton more ports of DataLoader into other languages (keep 'em coming!) - [#​213](https://togithub.com/graphql/dataloader/issues/213): All examples have been updated to latest JavaScript (preferring async/await over Promise chaining) - Improved documentation for custom `cacheMap` along with an LRU example. - Improved documentation for using higher-order functions on `batchLoadFn`. - Improved documentation for converting Map results to Array results in `batchLoadFn`.

Configuration

📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about this update again.



This PR has been generated by Mend Renovate. View repository job log here.

renovate[bot] commented 4 years ago

:warning: Artifact update problem

Renovate failed to update an artifact related to this branch. You probably do not want to merge this PR as-is.

:recycle: Renovate will retry this branch, including artifacts, only when one of the following happens:

The artifact failure details are included below:

File name: package-lock.json
npm WARN checkPermissions Missing write access to /mnt/renovate/gh/Unibeautify/auto-config/node_modules/@unibeautify/beautifier-file
npm WARN @unibeautify/beautifier-eslint@0.5.0 requires a peer of eslint@^4.19.1 but none is installed. You must install peer dependencies yourself.
npm WARN ajv-keywords@3.2.0 requires a peer of ajv@^6.0.0 but none is installed. You must install peer dependencies yourself.

npm ERR! code ENOENT
npm ERR! syscall access
npm ERR! path /mnt/renovate/gh/Unibeautify/auto-config/node_modules/@unibeautify/beautifier-file
npm ERR! errno -2
npm ERR! enoent ENOENT: no such file or directory, access '/mnt/renovate/gh/Unibeautify/auto-config/node_modules/@unibeautify/beautifier-file'
npm ERR! enoent This is related to npm not being able to find a file.
npm ERR! enoent 

npm ERR! A complete log of this run can be found in:
npm ERR!     /tmp/renovate-cache/others/npm/_logs/2019-11-21T10_07_20_217Z-debug.log
renovate[bot] commented 1 year ago

Edited/Blocked Notification

Renovate will not automatically rebase this PR, because it does not recognize the last commit author and assumes somebody else may have edited the PR.

You can manually request rebase by checking the rebase/retry box above.

⚠️ Warning: custom changes will be lost.