Skip to content

fix(dep): upgrade corslite#425

Merged
DennisOSRM merged 2 commits intogh-pagesfrom
upgrade_dep
Apr 26, 2026
Merged

fix(dep): upgrade corslite#425
DennisOSRM merged 2 commits intogh-pagesfrom
upgrade_dep

Conversation

@DennisOSRM
Copy link
Copy Markdown
Contributor

No description provided.

Copilot AI review requested due to automatic review settings April 26, 2026 10:17
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR updates the project’s CORS request helper dependency by switching from the deprecated corslite package to the @mapbox/corslite scoped package, aligning with the upstream module’s maintained namespace.

Changes:

  • Replace corslite with @mapbox/corslite in package.json dependencies.
  • Regenerate package-lock.json to reflect the new dependency and updated resolved tree.

Reviewed changes

Copilot reviewed 1 out of 2 changed files in this pull request and generated 1 comment.

File Description
package.json Switch dependency from corslite to @mapbox/corslite.
package-lock.json Update lockfile for the new dependency (and other transitive resolution changes).

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread package.json
},
"dependencies": {
"corslite": "^0.0.6",
"@mapbox/corslite": "^0.0.7",
Copy link

Copilot AI Apr 26, 2026

Choose a reason for hiding this comment

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

corslite was replaced with @mapbox/corslite in dependencies, but the codebase still imports/mocks the old module name (require('corslite') in src/shortlink.js and jest.mock('corslite') in test/shortlink.test.js). As-is, installs/tests will fail with "Cannot find module 'corslite'". Either update those imports/mocks to the new package name, or add an npm alias so require('corslite') continues to resolve to @mapbox/corslite.

Suggested change
"@mapbox/corslite": "^0.0.7",
"@mapbox/corslite": "^0.0.7",
"corslite": "npm:@mapbox/corslite@^0.0.7",

Copilot uses AI. Check for mistakes.
@DennisOSRM DennisOSRM merged commit d910515 into gh-pages Apr 26, 2026
5 checks passed
@DennisOSRM DennisOSRM deleted the upgrade_dep branch April 26, 2026 10:21
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.

2 participants