Skip to content

Commit

Permalink
Removed node packages usage in core Emmett package
Browse files Browse the repository at this point in the history
Removed the accidental usage of `randomUUID` function from `node:crypto` package that was causing compatibility issues on frontend.

Added also the ESLint rule to prevent such things to happen in the future.

Bumped version to 0.9.0

Fixes #64
  • Loading branch information
oskardudycz committed May 17, 2024
1 parent 65034e3 commit 1f8db48
Show file tree
Hide file tree
Showing 10 changed files with 135 additions and 107 deletions.
25 changes: 23 additions & 2 deletions src/.eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
"plugin:@typescript-eslint/recommended-requiring-type-checking",
"plugin:prettier/recommended"
],
"ignorePatterns": ["**/dist/", "**/lib/"],
"ignorePatterns": ["**/dist/", "**/lib/", "**/cache/"],
"parser": "@typescript-eslint/parser",
"parserOptions": {
"ecmaVersion": 2023,
Expand All @@ -25,8 +25,29 @@
{ "varsIgnorePattern": "^_", "argsIgnorePattern": "^_" }
],
"@typescript-eslint/no-misused-promises": ["off"],
"@typescript-eslint/prefer-namespace-keyword": "off"
"@typescript-eslint/prefer-namespace-keyword": "off",
"no-restricted-imports": [
"error",
{
"paths": ["**.spec.ts"],
"patterns": ["node:*"]
}
]
},
"overrides": [
{
"files": [
"**.spec.ts",
"packages/**/src/testing/**",
"docs/**",
"packages/emmett-esdb/**",
"packages/emmett-expressjs/**",
"packages/emmett-fastify/**",
"packages/emmett-testcontainers/**"
],
"rules": { "no-restricted-imports": "off" }
}
],
"settings": {
"import/resolver": {
"typescript": {}
Expand Down
3 changes: 2 additions & 1 deletion src/.prettierignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
**/dist/
**/lib/
**/lib/
**/cache/

0 comments on commit 1f8db48

Please sign in to comment.