Skip to documentation

reference

Migration — @stackline/parse-link-header

Project migration notes for @stackline/parse-link-header 1.0.4. Review behavior, requirements and limitations.

Versioned project notes for @stackline/parse-link-header 1.0.4. Original attribution is retained in the linked repository.

Migration

No source changes

Replace the dependency value and retain existing imports:

npm install parse-link-header@npm:@stackline/parse-link-header
{
  "dependencies": {
    "parse-link-header": "npm:@stackline/parse-link-header@^1.0.1"
  }
}
const parseLinkHeader = require('parse-link-header')

Scoped import

npm install @stackline/parse-link-header
import parseLinkHeader from '@stackline/parse-link-header'

Applications using @types/parse-link-header can remove that package after switching because declarations ship with this package. Existing TypeScript 3.9 CommonJS import syntax remains supported.

Browser applications no longer need process, url, or querystring polyfills. Move environment-only length configuration to per-call options when the same build runs in both browser and server contexts.

Package reference