Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(deps): update dependency apollo-upload-client to v18 #8871

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

renovate[bot]
Copy link
Contributor

@renovate renovate bot commented Oct 23, 2023

This PR contains the following updates:

Package Change Age Adoption Passing Confidence
apollo-upload-client ^17.0.0 -> ^18.0.0 age adoption passing confidence
@types/apollo-upload-client (source) 17.0.5 -> 18.0.0 age adoption passing confidence

Release Notes

jaydenseric/apollo-upload-client (apollo-upload-client)

v18.0.1

Compare Source

Patch
  • Corrected the function createUploadLink option uri type, fixing #​316.
  • Prefixed unused parameters with _, fixing #​317.
  • Fixed a typo in the changelog entry for v18.0.0.

v18.0.0

Compare Source

Major
  • Updated Node.js support to ^18.15.0 || >=20.4.0.

  • Updated the @apollo/client peer dependency to ^3.8.0.

  • Updated the extract-files dependency to v13.

    • React Native is no longer supported out of the box.

      The class ReactNativeFile is no longer exported, or matched by the function isExtractableFile.

      This class was bloating non React Native environments with an extra module, increasing bundle sizes when building and adding an extra step to ESM loading waterfalls in browsers.

      It’s the responsibility of Facebook to adhere to web standards and implement spec-complaint Blob, File, and FormData globals in the React Native environment.

      To migrate, React Native projects that are unable to use the standard globals can manually implement a class ReactNativeFile and match it with a custom function isReactNativeFile for use with the function createUploadLink option isExtractableFile.

    • “Plain” objects in the GraphQL operation that aren’t Object instances (e.g. Object.create(null)) are now also deep cloned when searching for extractable files.

  • Updated dev dependencies, some of which require newer Node.js versions than previously supported.

  • Use the Node.js test runner API and remove the dev dependency test-director.

  • Refactored tests to use the standard AbortController, AbortSignal, File, FormData, and Response APIs available in modern Node.js and removed the dev dependencies abort-controller, formdata-node, and node-fetch.

  • Public modules are now individually listed in the package files and exports fields.

  • Removed the package main index module; deep imports must be used. To migrate:

    - import {
    -   createUploadLink,
    -   formDataAppendFile,
    -   isExtractableFile
    - } from "apollo-upload-client";
    + import createUploadLink from "apollo-upload-client/createUploadLink.mjs";
    + import formDataAppendFile from "apollo-upload-client/formDataAppendFile.mjs";
    + import isExtractableFile from "apollo-upload-client/isExtractableFile.mjs";
  • Shortened public module deep import paths, removing the /public/. To migrate:

    - import createUploadLink from "apollo-upload-client/public/createUploadLink.js";
    + import createUploadLink from "apollo-upload-client/createUploadLink.mjs";
    
    - import formDataAppendFile from "apollo-upload-client/public/formDataAppendFile.js";
    + import formDataAppendFile from "apollo-upload-client/formDataAppendFile.mjs";
    
    - import isExtractableFile from "apollo-upload-client/public/isExtractableFile.js";
    + import isExtractableFile from "apollo-upload-client/isExtractableFile.mjs";
  • The API is now ESM in .mjs files instead of CJS in .js files, accessible via import but not require.

  • Implemented TypeScript types via JSDoc comments.

    Types published in @types/apollo-upload-client should no longer be used.

    Projects must configure TypeScript to use types from the ECMAScript modules that have a // @​ts-check comment:

  • Internally, use the function selectHttpOptionsAndBodyInternal that was added in @apollo/client v3.5.5.

Minor
  • Added a new option print for the function createUploadLink, to customize how the GraphQL query or mutation AST prints to a string for transport. It that works like the same option for HttpLink.
Patch
  • Updated dev dependencies.
  • Simplified dev dependencies and config for ESLint.
  • Integrated the ESLint plugin eslint-plugin-optimal-modules.
  • Check TypeScript types via a new package types script.
  • Removed the jsdoc-md dev dependency and the related package scripts, replacing the readme “API” section with a manually written “Exports” section.
  • Updated the package.json field repository to conform to new npm requirements.
  • Updated GitHub Actions CI config:
    • The workflow still triggers on push, but no longer on pull request.
    • The workflow can now be manually triggered.
    • Run tests with Node.js v18, v20, v21.
    • Updated actions/checkout to v4.
    • Updated actions/setup-node to v3.
  • Use the node: URL scheme for Node.js builtin module imports.
  • Reorganized the test file structure.
  • In tests, for objects with the property headers that as of @apollo/client v3.7.0 is a null-prototype object, use the assertion deepEqual instead of deepStrictEqual.
  • Tweaked code for type safety.
  • Updated documentation, including link URLs.
  • Refactored example code in the readme.
  • Removed the readme badges.

Configuration

📅 Schedule: Branch creation - "before 7am on Tuesday,before 7am on Wednesday" in timezone Australia/Sydney, 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 these updates again.


  • If you want to rebase/retry this PR, check this box

This PR was generated by Mend Renovate. View the repository job log.

@renovate renovate bot force-pushed the renovate/apollo-upload-client-18.x branch from 6082982 to 1475e57 Compare November 13, 2023 17:42
@renovate renovate bot force-pushed the renovate/apollo-upload-client-18.x branch 2 times, most recently from cbbef59 to c2e6b8d Compare December 4, 2023 22:15
@renovate renovate bot force-pushed the renovate/apollo-upload-client-18.x branch from c2e6b8d to e916de9 Compare January 1, 2024 13:36
@renovate renovate bot force-pushed the renovate/apollo-upload-client-18.x branch from e916de9 to 23ab980 Compare February 12, 2024 15:37
@dcousens dcousens added dependencies Related to our dependencies blocked labels Feb 12, 2024
@renovate renovate bot force-pushed the renovate/apollo-upload-client-18.x branch 2 times, most recently from bb3f7f2 to c8a2f69 Compare February 26, 2024 13:39
@renovate renovate bot force-pushed the renovate/apollo-upload-client-18.x branch from c8a2f69 to 54e426f Compare March 4, 2024 15:18
@renovate renovate bot force-pushed the renovate/apollo-upload-client-18.x branch from 54e426f to f1fb277 Compare March 25, 2024 15:29
@renovate renovate bot force-pushed the renovate/apollo-upload-client-18.x branch from f1fb277 to 6270dd9 Compare April 1, 2024 15:39
@renovate renovate bot force-pushed the renovate/apollo-upload-client-18.x branch 2 times, most recently from 30c0c0f to 5dcd0d8 Compare April 16, 2024 14:09
@renovate renovate bot force-pushed the renovate/apollo-upload-client-18.x branch 2 times, most recently from 65affbc to 5baf33f Compare April 29, 2024 14:05
@renovate renovate bot force-pushed the renovate/apollo-upload-client-18.x branch 2 times, most recently from c3e80f7 to 631b3e1 Compare May 13, 2024 15:40
@renovate renovate bot force-pushed the renovate/apollo-upload-client-18.x branch from 631b3e1 to 26eed01 Compare May 20, 2024 17:15
@renovate renovate bot force-pushed the renovate/apollo-upload-client-18.x branch from 26eed01 to 19f4850 Compare July 8, 2024 17:43
Copy link

codesandbox-ci bot commented Jul 8, 2024

This pull request is automatically built and testable in CodeSandbox.

To see build info of the built libraries, click here or the icon next to each commit SHA.

Latest deployment of this branch, based on commit 6a0c4f8:

Sandbox Source
@keystone-6/sandbox Configuration

@renovate renovate bot force-pushed the renovate/apollo-upload-client-18.x branch 2 times, most recently from 536e138 to d13eac6 Compare August 12, 2024 14:25
@renovate renovate bot force-pushed the renovate/apollo-upload-client-18.x branch 2 times, most recently from 00d1672 to 122f1c5 Compare September 2, 2024 14:30
@renovate renovate bot force-pushed the renovate/apollo-upload-client-18.x branch from 122f1c5 to 599e609 Compare September 9, 2024 17:27
@renovate renovate bot force-pushed the renovate/apollo-upload-client-18.x branch from 599e609 to 7f887ea Compare October 15, 2024 13:39
@renovate renovate bot force-pushed the renovate/apollo-upload-client-18.x branch from 7f887ea to 3a722b6 Compare October 28, 2024 14:38
@renovate renovate bot force-pushed the renovate/apollo-upload-client-18.x branch from 3a722b6 to 625b74f Compare November 11, 2024 14:29
@renovate renovate bot force-pushed the renovate/apollo-upload-client-18.x branch from 625b74f to 6a0c4f8 Compare November 18, 2024 17:20
@renovate renovate bot changed the title fix(deps): update dependency apollo-upload-client to v18 fix(deps): update dependency apollo-upload-client to v18 - autoclosed Dec 8, 2024
@renovate renovate bot closed this Dec 8, 2024
@renovate renovate bot deleted the renovate/apollo-upload-client-18.x branch December 8, 2024 18:41
@renovate renovate bot changed the title fix(deps): update dependency apollo-upload-client to v18 - autoclosed fix(deps): update dependency apollo-upload-client to v18 Dec 9, 2024
@renovate renovate bot reopened this Dec 9, 2024
@renovate renovate bot force-pushed the renovate/apollo-upload-client-18.x branch 2 times, most recently from 6a0c4f8 to b4be285 Compare December 10, 2024 13:07
Copy link

socket-security bot commented Dec 10, 2024

New and removed dependencies detected. Learn more about Socket for GitHub ↗︎

Package New capabilities Transitives Size Publisher
npm/@types/[email protected] None +1 9.26 kB types
npm/[email protected] None 0 20.7 kB jaydenseric

🚮 Removed packages: npm/@types/[email protected], npm/[email protected], npm/[email protected]

View full report↗︎

@renovate renovate bot force-pushed the renovate/apollo-upload-client-18.x branch from b4be285 to bc2cd83 Compare December 16, 2024 13:14
@renovate renovate bot force-pushed the renovate/apollo-upload-client-18.x branch from bc2cd83 to 5133c3f Compare December 23, 2024 14:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
blocked dependencies Related to our dependencies
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant