Skip to content

fix: handle null serialization #649

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

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

Conversation

wuiyang
Copy link

@wuiyang wuiyang commented May 23, 2025

πŸ”— Linked issue

Resolves #636

❓ Type of change

  • πŸ“– Documentation (updates to the documentation or readme)
  • 🐞 Bug fix (a non-breaking change that fixes an issue)
  • πŸ‘Œ Enhancement (improving an existing functionality)
  • ✨ New feature (a non-breaking change that adds functionality)
  • 🧹 Chore (updates to the build process or auxiliary tools and libraries)
  • ⚠️ Breaking change (fix or feature that would cause existing functionality to change)

πŸ“š Description

This PR adds condition check during serialization, to avoid serialize null value as object, as typeof null === 'object'.
It fix serialization issue for @nuxtjs/apollo config provided in nuxt.config.ts, where it cannot handle serialization for null value, which is accepted value for client.authType.

Copy link

netlify bot commented May 23, 2025

βœ… Deploy Preview for apollo-module canceled.

Name Link
πŸ”¨ Latest commit 9898989
πŸ” Latest deploy log https://app.netlify.com/projects/apollo-module/deploys/6830cb09490ea50008374bd6

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.

Cannot assign null or empty value for authType configuration
1 participant