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

Prepare for future news templates #29

Merged
merged 7 commits into from
Jun 10, 2024
Merged

Prepare for future news templates #29

merged 7 commits into from
Jun 10, 2024

Conversation

drzax
Copy link
Member

@drzax drzax commented Jun 10, 2024

This drops support for some obsolete and unused environments and adds support for detecting the upcoming future news templates.

There is no clean spot to add that detection in the current API since future news is neither a new generation or a different app. On balance I thought it made most sense to detect it as a separate app, so that's what it does. getApplication() should now return a new value of plnf (PL News Future) if it detects the future news templates.

Additionally, this removes the getEnvironment() function. From a search of dependencies on GitHub, I can't find anywhere it's used and the current implementation is unreliable due to the way domains are now mapped to environments (by which we actually mean databases).

@drzax drzax requested review from AshKyd, jtfell and phocks June 10, 2024 02:17
Copy link

github-actions bot commented Jun 10, 2024

size-limit report 📦

Path Size
dist/index.mjs 1.21 KB (-11.1% 🔽)

Copy link
Member

@phocks phocks left a comment

Choose a reason for hiding this comment

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

This looks good to me.

@drzax drzax merged commit 5150f77 into main Jun 10, 2024
3 checks passed
@drzax drzax deleted the 4.0 branch June 10, 2024 03:35
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.

3 participants