Skip to content
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

feat: add context parsers for hybrid headers #260

Merged
merged 1 commit into from
Sep 30, 2024
Merged

Conversation

wkillerud
Copy link
Contributor

  • Pass on x-podium-app-id as appId on the context
  • Pass on x-podium-base-font-size as baseFontSize on the context
  • Override deviceType with x-podium-device-type

- Pass on `x-podium-app-id` as `appId` on the context
- Pass on `x-podium-base-font-size` as `baseFontSize` on the context
- Override `deviceType` with `x-podium-device-type`
}),
);
const result = parser.parse(incoming);
t.equal(result, 'hybrid-ios');
Copy link
Contributor Author

Choose a reason for hiding this comment

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

This test gave me pause. Should we maybe separate the signal for "I'm in a hybrid web view" from the device type?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@trygve-lie I think I remember we discussed the device-type header and agreed that this was fine (setting it to hybrid-ios and hybrid-android)?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Ack IRL

@wkillerud wkillerud merged commit 73a7581 into main Sep 30, 2024
7 checks passed
@wkillerud wkillerud deleted the hybrid-headers branch September 30, 2024 09:52
github-actions bot pushed a commit that referenced this pull request Sep 30, 2024
# [5.1.0](v5.0.29...v5.1.0) (2024-09-30)

### Features

* add context parsers for hybrid headers ([#260](#260)) ([73a7581](73a7581))
Copy link

🎉 This PR is included in version 5.1.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant