Skip to content

refactor: applyToEnvironment -> perEnvironment hook#18661

Closed
patak-cat wants to merge 1 commit intomainfrom
refactor/per-environment
Closed

refactor: applyToEnvironment -> perEnvironment hook#18661
patak-cat wants to merge 1 commit intomainfrom
refactor/per-environment

Conversation

@patak-cat
Copy link
Copy Markdown
Member

@patak-cat patak-cat commented Nov 13, 2024

Description

Start from #18544 for reference.

This PR renames the applyToEnvironment hook to perEnvironment. I think it is a good idea to find a shorter name, and this one will match the set:

  • plugin.perEnvironment: env => PluginOptionOrBoolean
  • perEnvironmentPlugin(name, env => PluginOptionOrBoolean)
  • perEnvironmentState

@patak-cat
Copy link
Copy Markdown
Member Author

Let's close this. We brainstormed in Discord and everyone keeps thinking that applyToEnvironment is the best name for this hook.

@patak-cat patak-cat closed this Nov 14, 2024
@patak-cat patak-cat deleted the refactor/per-environment branch March 31, 2025 08:56
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.

1 participant