Skip to content
New issue

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

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

Already on GitHub? # to your account

Remove non-null assertion operator for compatibility with JavaScript #70104

Merged
merged 4 commits into from
Sep 16, 2024

Conversation

md-rejoyan-islam
Copy link
Contributor

Remove TypeScript-specific non-null assertion operator (!) from URL parsing

The non-null assertion operator (!) is used in TypeScript to assert that a value is not null or undefined. In plain JavaScript, this operator is not valid and can cause issues. Replaced req.url! with a safer approach for handling potential null or undefined values to ensure compatibility with JavaScript environments.

Remove TypeScript-specific non-null assertion operator (`!`) from URL parsing

The non-null assertion operator (`!`) is used in TypeScript to assert that a value is not `null` or `undefined`. In plain JavaScript, this operator is not valid and can cause issues. Replaced `req.url!` with a safer approach for handling potential `null` or `undefined` values to ensure compatibility with JavaScript environments.
@ijjk ijjk added the Documentation Related to Next.js' official documentation. label Sep 14, 2024
@ijjk
Copy link
Member

ijjk commented Sep 14, 2024

Allow CI Workflow Run

  • approve CI run for commit: bb22b52

Note: this should only be enabled once the PR is ready to go and can only be enabled by a maintainer

@ijjk ijjk enabled auto-merge (squash) September 16, 2024 18:17
@ijjk ijjk merged commit b1fad80 into vercel:canary Sep 16, 2024
38 checks passed
@github-actions github-actions bot added the locked label Oct 3, 2024
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Oct 3, 2024
# for free to subscribe to this conversation on GitHub. Already have an account? #.
Labels
Documentation Related to Next.js' official documentation. locked
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants