-
-
Notifications
You must be signed in to change notification settings - Fork 3
v3.0.0 #74
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
Merged
v3.0.0 #74
Changes from all commits
Commits
Show all changes
33 commits
Select commit
Hold shift + click to select a range
16a4541
refactor: Move test files to `__tests__` directory
soranoo 6b5f000
refactor(test): Moves test file to the `__tests__` directory
soranoo d38b38f
chore: Migrates from Prettier to Biome
soranoo 0afd780
feat: Upgrades to v3 with new CSS transformation
soranoo 10e0ac1
refactor: Remove deprecated functions and streamline path filtering l…
soranoo 3c1ca32
refactor(css): Refactor CSS obfuscation with css-seasoning
soranoo 7cb985d
fix(html): fix incorrect html class name truncation
soranoo a290b14
refactor: Simplify and export utility functions
soranoo 668a5f6
feat: v3 migration with TailwindCSS 4 support
soranoo afe1bff
refactor: Standardize code formatting and improve readability across …
soranoo 5492d56
refactor: Remove unused dependency 'recoverable-random' from package …
soranoo b43a194
feat: Enables semantic release for automated publishing
soranoo f517839
fix: fix html tests
soranoo e33c10f
refactor: Update string interpolation to use double quotes for consis…
soranoo 38d4ac2
chore: Remove version field from package.json
soranoo 8954a50
ci: Update semantic release configuration and dependencies
soranoo 3002e5c
ci: Update Node.js setup in release workflow and change npm install t…
soranoo 0ec8131
ci: Update GitHub Actions workflows to use actions/checkout@v4 and np…
soranoo 935dde8
ci: Update release workflow to handle push and pull request events, a…
soranoo 670ce7d
chore(release): 1.0.0-beta.1 [skip ci]
semantic-release-bot 2da79e5
ci: Update release workflow to edit initial version and use npm scrip…
soranoo 8072e37
chore(release): 3.0.0-beta.3 [skip ci]
semantic-release-bot 7ccc78c
chore: update dependencies; disable GitHub release integration
soranoo 32952bf
feat: support ident prefix/suffix options
soranoo b26b6cd
minor: formatting
soranoo cf7f33a
minor: CRLF to LF
soranoo 63800ef
chore(release): 3.0.0-beta.4 [skip ci]
semantic-release-bot 3d6035d
fix: update key names in loadConversionTables for consistency
soranoo 88c2a54
chore(release): 3.0.0-beta.5 [skip ci]
semantic-release-bot 0d6ebeb
deps: update css-seasoning dependency to version 1.9.0
soranoo 5278bac
Merge branch 'beta' of https://github.com/soranoo/next-css-obfuscator…
soranoo 7a54d90
minor(demo): update demo to version 3.0.0-beta.5 and add type annotat…
soranoo 82e440e
docs: remove caution note about TailwindCSS 4 support from README
soranoo File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
name: Release | ||
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
- beta | ||
pull_request: | ||
branches: | ||
- main | ||
- beta | ||
|
||
jobs: | ||
release: | ||
runs-on: ubuntu-latest | ||
permissions: | ||
contents: write # to be able to publish a GitHub release | ||
issues: write # to be able to comment on released issues | ||
pull-requests: write # to be able to comment on released pull requests | ||
id-token: write # to enable use of OIDC for npm provenance | ||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v4 | ||
|
||
- name: Install dependencies | ||
run: npm install | ||
|
||
- name: Build NPM package | ||
run: npm run build | ||
|
||
- name: Edit First Release Version | ||
run: sed -i 's/\( FIRST_RELEASE\) = "1.0.0"/\1 = "3.0.0"/' node_modules/semantic-release/lib/definitions/constants.js | ||
|
||
- name: Edit First Prerelease Version | ||
run: sed -i 's/\( FIRSTPRERELEASE\) = "1"/\1 = "3"/' node_modules/semantic-release/lib/definitions/constants.js | ||
|
||
- name: Create Release | ||
if: github.event_name == 'push' | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
NPM_TOKEN: ${{ secrets.NPM_TOKEN }} | ||
run: npm run semantic-release | ||
|
||
- name: Dry Run Release | ||
if: github.event_name == 'pull_request' | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
run: npm run semantic-release --dry-run |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,4 +2,4 @@ | |
|
||
import { obfuscateCli } from "../dist/index.js"; | ||
|
||
obfuscateCli(); | ||
obfuscateCli(); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,73 @@ | ||
{ | ||
"$schema": "https://biomejs.dev/schemas/1.9.4/schema.json", | ||
"vcs": { | ||
"enabled": false, | ||
"clientKind": "git", | ||
"useIgnoreFile": false | ||
}, | ||
"files": { | ||
"ignoreUnknown": false, | ||
"ignore": [ | ||
"node_modules", | ||
".next", | ||
"packages/tsconfig", | ||
"demos", | ||
"coverage", | ||
"dist" | ||
] | ||
}, | ||
"formatter": { | ||
"enabled": true, | ||
"indentStyle": "space", | ||
"lineWidth": 80, | ||
"indentWidth": 2, | ||
"lineEnding": "lf" | ||
}, | ||
"organizeImports": { | ||
"enabled": true | ||
}, | ||
"linter": { | ||
"enabled": true, | ||
"rules": { | ||
"recommended": true, | ||
|
||
"complexity": { | ||
"noUselessTypeConstraint": "error", | ||
"useLiteralKeys": "error", | ||
"useOptionalChain": "error", | ||
"noForEach": "off" | ||
}, | ||
"correctness": { | ||
"noUnusedVariables": "info", | ||
"useArrayLiterals": "error" | ||
}, | ||
"style": { | ||
"noInferrableTypes": "error", | ||
"noNamespace": "error", | ||
"useAsConstAssertion": "error", | ||
"useBlockStatements": "error", | ||
"useConsistentArrayType": "error", | ||
"useForOf": "error", | ||
"useShorthandFunctionType": "error", | ||
"useImportType": "error" | ||
}, | ||
"suspicious": { | ||
"noDebugger": "info", | ||
"noEmptyBlockStatements": "error", | ||
"noExplicitAny": "error", | ||
"noExtraNonNullAssertion": "error", | ||
"noMisleadingInstantiator": "error", | ||
"noUnsafeDeclarationMerging": "error", | ||
"useAwait": "warn", | ||
"useNamespaceKeyword": "error" | ||
} | ||
} | ||
}, | ||
"javascript": { | ||
"formatter": { | ||
"quoteStyle": "double", | ||
"semicolons": "always", | ||
"trailingCommas": "all" | ||
} | ||
} | ||
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🛠️ Refactor suggestion
Consider a more robust approach for version configuration.
The sed commands modifying semantic-release internal constants are fragile and could break with package updates. Consider using semantic-release configuration options instead.
A more maintainable approach would be to configure this in
release.config.cjs
:Then remove the sed commands from the workflow.
🤖 Prompt for AI Agents