Skip to content

chore: remove extend dependency#322

Draft
gameroman wants to merge 2 commits intoIBM:mainfrom
gameroman:replace-extend
Draft

chore: remove extend dependency#322
gameroman wants to merge 2 commits intoIBM:mainfrom
gameroman:replace-extend

Conversation

@gameroman
Copy link
Copy Markdown

Checklist
  • npm test passes (tip: npm run lint-fix can correct most style issues)
  • tests are included
  • documentation is changed or added

@CLAassistant
Copy link
Copy Markdown

CLAassistant commented Apr 3, 2026

CLA assistant check
All committers have signed the CLA.

@gameroman gameroman marked this pull request as ready for review April 3, 2026 13:15
@pyrooka
Copy link
Copy Markdown
Member

pyrooka commented Apr 10, 2026

Hey @gameroman, thanks for the contribution. We'll try to look into the PR soon, but I'd like to ask two things in the meantime:

  1. Sign off all your commits in the branch, otherwise the DCO check will keep failing
  2. Since the purpose of this PR is to remove the extend dependency from the project, it should be also removed from the package.json - along with package-lock.json -, right?

Comment thread lib/cookie-support.ts Outdated
Comment thread lib/request-wrapper.ts
Comment on lines +248 to +252
const options = { ...parameters.defaultOptions, ...parameters.options };
let headers = { ...parameters.defaultOptions?.headers, ...parameters.options?.headers };
const qs = { ...parameters.defaultOptions?.qs, ...parameters.options?.qs };
const { path, body, form, formData, method, serviceUrl, axiosOptions } = options;
let { url } = options;
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

With this change if parameters.options contains nested objects, they get replaced entirely rather than merged with. This differs from the previous deep merge behaviour provided by extend.

I added a new test case in the main branch testing this specific edge case.

@diatrcz
Copy link
Copy Markdown
Contributor

diatrcz commented Apr 14, 2026

Hi @gameroman, thank you for the contribution. Additionally to the change requests:

  1. As stated above, please sign your commits so DCO stops failing and remove extend from package.json and package-lock.json.
  2. Please keep the branch up to date with the main branch.

@gameroman
Copy link
Copy Markdown
Author

Thank you for the review, I’ll fix everything when I get back👍

@gameroman gameroman marked this pull request as draft April 14, 2026 17:42
Co-authored-by: Tarcza Lídia <100163235+diatrcz@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants