Skip to content

feat: hash file imports#3376

Merged
BobbieGoede merged 33 commits intonuxt-modules:mainfrom
BobbieGoede:refactor/nitro-locale-import-support
Mar 1, 2025
Merged

feat: hash file imports#3376
BobbieGoede merged 33 commits intonuxt-modules:mainfrom
BobbieGoede:refactor/nitro-locale-import-support

Conversation

@BobbieGoede
Copy link
Copy Markdown
Member

@BobbieGoede BobbieGoede commented Feb 25, 2025

🔗 Linked issue

❓ Type of change

  • 📖 Documentation (updates to the documentation, readme or JSdoc annotations)
  • 🐞 Bug fix (a non-breaking change that fixes an issue)
  • 👌 Enhancement (improving an existing functionality like performance)
  • ✨ 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 changes the locale and config file resolution to be the same in both Nuxt and Nitro contexts, it now uses generated hash names for the files which are mapped back to the file paths.

Replacing the paths with hashes also makes it harder for sensitive path information to end up in production.

📝 Checklist

  • I have linked an issue or discussion.
  • I have added tests (if possible).
  • I have updated the documentation accordingly.

@BobbieGoede BobbieGoede self-assigned this Feb 25, 2025
@BobbieGoede BobbieGoede force-pushed the refactor/nitro-locale-import-support branch from ca873b6 to 3d69299 Compare February 25, 2025 22:27
@BobbieGoede BobbieGoede force-pushed the refactor/nitro-locale-import-support branch from b4f65f9 to af7eacb Compare February 26, 2025 20:38
@BobbieGoede BobbieGoede changed the title [DRAFT] refactor: nitro locale import refactor: nitro locale import Feb 28, 2025
@BobbieGoede BobbieGoede changed the title refactor: nitro locale import feat: hashed locale file imports Feb 28, 2025
@BobbieGoede BobbieGoede changed the title feat: hashed locale file imports feat: hash locale file imports Feb 28, 2025
@BobbieGoede BobbieGoede changed the title feat: hash locale file imports feat: hash file imports Mar 1, 2025
@BobbieGoede BobbieGoede merged commit 4503796 into nuxt-modules:main Mar 1, 2025
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.

2 participants