Skip to content

Fix .js imports not getting added

Choose a tag to compare

@ayush-jadaun ayush-jadaun released this 26 Apr 06:16
· 23 commits to main since this release

AllProfanity v1.1.0

A comprehensive multi-language profanity filter for JavaScript/TypeScript applications with built-in support for English, Hindi, Hinglish, Bengali, Tamil, Telugu, French, German, and Spanish content.

npm version
License: MIT

🔄 Important Update: Fixed ESM Compatibility (v1.1.0)

This release fixes a critical issue with ES module imports in JavaScript environments. The package now properly handles file extensions, making it compatible with both TypeScript and JavaScript projects using ESM.

What was fixed:

  • Updated all import statements to include .js extensions for proper ESM compatibility
  • Modified TypeScript configuration to use NodeNext for module and moduleResolution
  • Updated package.json exports configuration for better module resolution
  • Maintained full backward compatibility with existing implementations