-
-
Notifications
You must be signed in to change notification settings - Fork 3
Ci upgrade release version #71
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
Conversation
Moves test files from the `src/handlers` directory to the `src/__tests__` directory for better organization and separation of concerns. This change improves the project structure and makes it easier to locate and manage test files. Also, updates import paths in test files.
Moves the test file from the `src` directory to the `__tests__` directory for better organization and separation of concerns. This change improves the project structure and makes it easier to locate test files.
Migrates the project's code formatting and linting from Prettier to Biome. This change removes the existing Prettier configuration and implements Biome. The Biome configuration enforces consistent code style and catches potential issues, improving code quality and maintainability.
Upgrades the core CSS transformation engine to `css-seasoning` and `lightningcss-wasm`. - Replaces PostCSS with `css-seasoning` for CSS parsing and transformation. - Integrates `lightningcss-wasm` for CSS minification and optimization. - Introduces a new `obfuscateCssFiles` function for processing CSS files. - Removes the deprecated `classLength` option. - Improves the way of css obfuscation with new logic and features. This change significantly enhances the performance and flexibility of the CSS obfuscation process.
Refactors the CSS obfuscation process to leverage the `css-seasoning` library, replacing custom CSS parsing and manipulation logic. This change improves maintainability and leverages a dedicated library for CSS transformations. Removes the old CSS test file as the functionality is now covered by `css-seasoning`.
Refactors utility functions for better organization and reusability. - Removes unused random string generation and string simplification functions. - Exports previously internal functions to enhance module accessibility and facilitate testing. - Streamlines the codebase by removing dead code and improving overall structure.
Introduces breaking changes to support TailwindCSS 4, nested CSS, and CSS ident obfuscation. - Updates configuration options, including renaming, merging, and removing deprecated options. - Migrates to css-seasoning v1.4.1. - Enables JS AST parsing by default. - Updates documentation with v3 migration guide.
Sets up semantic release to automate the release process. This includes: - Adding a release workflow file. - Installing semantic-release and related plugins. - Creating a release configuration file. This automates versioning, changelog generation, and package publishing.
…tency in tests and handlers
# 1.0.0-beta.1 (2025-04-25) ### Bug Fixes * fix html tests ([f517839](f517839)) * **html:** fix [#57](#57) ([a638538](a638538)) * **html:** fix incorrect html class name truncation ([7cb985d](7cb985d)) * **js-ast:** added support to `MemberExpression` [#45](#45) ([8c95ba0](8c95ba0)) * **js-ast:** added support to `TemplateLiteral` & `TemplateElement` [#45](#45) ([0dd46b3](0dd46b3)) ### Features * Enables semantic release for automated publishing ([b43a194](b43a194)) * Upgrades to v3 with new CSS transformation ([0afd780](0afd780)) * v3 migration with TailwindCSS 4 support ([668a5f6](668a5f6))
BREAKING CHANGE
BREAKING CHANGE
# [1.0.0-beta.2](v1.0.0-beta.1...v1.0.0-beta.2) (2025-04-25) ### Features * upgrade semantic-release release version to v2 ([7466b77](7466b77))
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
Caution Review failedThe pull request is closed. WalkthroughThis update introduces significant refactoring and modernization across the codebase. The CSS obfuscation logic is overhauled to utilize the Changes
Sequence Diagram(s)sequenceDiagram
participant User
participant CLI
participant Config
participant CSSObfuscator
participant ConversionTables
participant FileSystem
participant HTMLObfuscator
participant JSObfuscator
User->>CLI: Run obfuscateCli()
CLI->>Config: Load and merge options
CLI->>CSSObfuscator: obfuscateCssFiles (async)
CSSObfuscator->>FileSystem: Find CSS files (with whitelist/blacklist)
CSSObfuscator->>ConversionTables: Load and merge conversion tables
CSSObfuscator->>FileSystem: Write obfuscated CSS/minified CSS
CSSObfuscator->>CLI: Return conversionTables
CLI->>FileSystem: Write conversionTables to conversion.json
CLI->>HTMLObfuscator: Replace selectors in HTML files
CLI->>JSObfuscator: Replace selectors in JS files
CLI->>User: Done
Possibly related PRs
Poem
📜 Recent review detailsConfiguration used: CodeRabbit UI ⛔ Files ignored due to path filters (1)
📒 Files selected for processing (25)
✨ Finishing Touches
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
Summary by CodeRabbit
New Features
prefix
,suffix
, andignorePatterns
for more flexible obfuscation control.Bug Fixes
Refactor
Documentation
Chores