Skip to content

Commit

Permalink
Merge pull request #43 from nodecfdi/dev
Browse files Browse the repository at this point in the history
chore: 🚀 version bump 1.0.2
  • Loading branch information
luffynando committed Apr 3, 2024
2 parents 81285b3 + d170618 commit 8ebb568
Show file tree
Hide file tree
Showing 19 changed files with 1,612 additions and 2,419 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
node: ['16', '17', '18', '19', '20']
node: ['16', '18', '19', '20']
steps:
- name: Checkout
uses: actions/checkout@v4
Expand Down
13 changes: 0 additions & 13 deletions .prettierrc.js

This file was deleted.

11 changes: 11 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,16 @@
# @nodecfdi/base-converter

## 1.0.2

### Patch Changes - Update linting and build tools

- Fix renovate config for github
- Revert build tool to use tsup
- Update README with latest changes
- Update commitlint cli and config
- Update eslint, prettier, tsconfig to use standard nodecfdi config
- Update dependencies

## 1.0.1

### Patch Changes - Change build tool, linter tools
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -45,10 +45,10 @@ pnpm add @nodecfdi/base-converter

CDN - Browser

Usa la versión mas reciente publicada cambiando `<latest-version>` por la última version. Ex. ...base-converter@1.0.1/dist...
Usa la versión mas reciente publicada cambiando `<latest-version>` por la última version. Ex. ...base-converter@1.0.2/dist...

```html
<script src="https://unpkg.com/@nodecfdi/base-converter@<latest-version>/dist/base-converter.global.js"></script>
<script src="https://unpkg.com/@nodecfdi/base-converter@<latest-version>/dist/index.global.js"></script>
```

## Implementation
Expand Down
File renamed without changes.
103 changes: 2 additions & 101 deletions eslint.config.js
Original file line number Diff line number Diff line change
@@ -1,103 +1,4 @@
import { FlatCompat } from '@eslint/eslintrc';
import { nodecfdiConfig } from '@nodecfdi/eslint-config';
import { defineFlatConfig } from 'eslint-define-config';
import path from 'node:path';
import { fileURLToPath } from 'node:url';

const __filename = fileURLToPath(import.meta.url);
const __dirname = path.dirname(__filename);

const compat = new FlatCompat({
baseDirectory: __dirname,
resolvePluginsRelativeTo: __dirname,
});

export default defineFlatConfig([
{
ignores: [
'dist/**',
'node_modules/**',
'bin/**',
'build/**',
'coverage/**',
'docs/**',
'eslint.config.js',
'.prettierrc.js',
'.commitlintrc.cjs',
'vite.config.ts',
],
},
...compat.extends(
'canonical',
'canonical/module',
'canonical/regexp',
'canonical/typescript',
'canonical/typescript-type-checking',
'canonical/prettier',
),
{
languageOptions: {
parserOptions: {
project: true,
tsconfigRootDir: import.meta.dirname,
},
},
},
// Rules needed by nodecfdi
{
rules: {
'@typescript-eslint/naming-convention': [
'error',
{
selector: 'variable',
format: ['camelCase', 'UPPER_CASE', 'PascalCase'],
},
{
selector: 'typeLike',
format: ['PascalCase'],
},
{
selector: 'class',
format: ['PascalCase'],
},
{
selector: 'interface',
format: ['PascalCase'],
custom: {
regex: '^I[A-Z]',
match: false,
},
},
],

'unicorn/filename-case': [
'error',
{
case: 'snakeCase',
},
],
'unicorn/consistent-function-scoping': ['error', { checkArrowFunctions: false }],

'prettier/prettier': [
'error',
{
arrowParens: 'always',
bracketSameLine: false,
bracketSpacing: true,
endOfLine: 'lf',
printWidth: 100,
proseWrap: 'preserve',
quoteProps: 'consistent',
semi: true,
singleAttributePerLine: true,
singleQuote: true,
tabWidth: 2,
trailingComma: 'all',
useTabs: false,
},
{
usePrettierrc: true,
},
],
},
},
]);
export default defineFlatConfig([...nodecfdiConfig()]);
44 changes: 22 additions & 22 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@nodecfdi/base-converter",
"version": "1.0.1",
"version": "1.0.2",
"description": "Librería que convierte un número entre bases arbitrarias",
"keywords": [
"base",
Expand All @@ -13,20 +13,20 @@
"author": "OcelotlStudio <contacto@ocelotlstudio.com>",
"license": "MIT",
"type": "module",
"main": "./dist/base_converter.umd.cjs",
"module": "./dist/base_converter.js",
"unpkg": "./dist/base_converter.umd.cjs",
"browser": "./dist/base_converter.umd.cjs",
"main": "./dist/index.cjs",
"module": "./dist/index.js",
"unpkg": "./dist/index.global.js",
"browser": "./dist/index.global.js",
"types": "./dist/index.d.ts",
"exports": {
".": {
"import": {
"types": "./dist/index.d.ts",
"default": "./dist/base_converter.js"
"default": "./dist/index.js"
},
"require": {
"types": "./dist/index.d.ts",
"default": "./dist/base_converter.umd.cjs"
"types": "./dist/index.d.cts",
"default": "./dist/index.cjs"
}
}
},
Expand All @@ -42,7 +42,7 @@
"test": "vitest",
"test:run": "vitest run",
"test:coverage": "vitest run --coverage",
"build": "rimraf dist && tsc && vite build",
"build": "rimraf dist && tsc && tsup",
"gen:docs": "rimraf docs && typedoc --options typedoc.json",
"release": "pnpm run build && pnpm changeset publish"
},
Expand All @@ -53,29 +53,29 @@
"homepage": "https://github.com/nodecfdi/base-converter",
"devDependencies": {
"@changesets/cli": "^2.27.1",
"@commitlint/cli": "^19.0.1",
"@commitlint/config-conventional": "^19.0.0",
"@eslint/eslintrc": "^3.0.2",
"@types/node": "^20.11.20",
"@vitest/coverage-istanbul": "^1.3.1",
"@commitlint/cli": "^18.6.1",
"@commitlint/config-conventional": "^18.6.3",
"@nodecfdi/eslint-config": "^1.5.5",
"@nodecfdi/prettier-config": "^1.1.1",
"@nodecfdi/tsconfig": "^1.3.2",
"@types/node": "^20.12.3",
"@vitest/coverage-istanbul": "^1.4.0",
"eslint": "^8.57.0",
"eslint-config-canonical": "^42.8.1",
"eslint-define-config": "^2.1.0",
"eslint-plugin-prettier": "^5.1.3",
"husky": "^9.0.11",
"is-in-ci": "^0.1.0",
"jsdom": "^24.0.0",
"prettier": "^3.2.5",
"rimraf": "^5.0.5",
"typedoc": "^0.25.9",
"tsup": "^8.0.2",
"typedoc": "^0.25.12",
"typedoc-material-theme": "^1.0.2",
"typescript": "^5.3.3",
"vite": "^5.1.4",
"vite-plugin-dts": "^3.7.3",
"vitest": "^1.3.1"
"typescript": "^5.4.3",
"vitest": "^1.4.0"
},
"prettier": "@nodecfdi/prettier-config",
"engines": {
"node": ">=16.0.0"
"node": "^20 || ^19 || ^18 || ^16"
},
"browserslist": [
"defaults",
Expand Down

0 comments on commit 8ebb568

Please sign in to comment.