Skip to content
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

Pr 215 #216

Merged
merged 7 commits into from
Feb 6, 2025
Merged

Pr 215 #216

merged 7 commits into from
Feb 6, 2025

Conversation

sanchezzzhak
Copy link
Owner

No description provided.

shorwood and others added 7 commits January 29, 2025 23:15
This commit introduces a new utility script that converts YAML regex files to CommonJS modules. The script recursively processes all YAML files in the regexes directory and generates corresponding .js files with the same structure. This is a preparatory step for removing the filesystem dependency in the main package, making it more suitable for various JavaScript environments.
This commit transforms the regexes detection rules from YAML to CommonJS format as part of the ongoing effort to remove filesystem dependencies. The conversion maintains all existing regex patterns and device detection logic while making the rules more suitable for direct consumption in JavaScript environments.
This commit completes the migration from YAML to CommonJS modules by removing all YAML file loading logic and replacing it with direct requires. The changes include removing the base regex directory path constant, collection map caching, and file loading methods from the abstract parser. All parser classes now directly require their respective CommonJS regex modules instead of loading YAML files at runtime.
feat: update devDependencies and js-yaml move to devDependencies
feat: remove helper.loadYMLFile (not uses)
# Conflicts:
#	parser/helper.js
feat: update devDependencies and js-yaml move to devDependencies
feat: remove helper.loadYMLFile (not uses)
feat: update generate client indexes
feat: remove client-index-hash.yml and device-index-hash.yml (these files are no longer needed, as we use JS files)
@sanchezzzhak sanchezzzhak merged commit 311bc8a into master Feb 6, 2025
10 checks passed
@sanchezzzhak sanchezzzhak deleted the pr_215 branch February 6, 2025 12:08
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