From 6899b5b2842fb1cee987657ea6d6ef59383349f1 Mon Sep 17 00:00:00 2001 From: javorosas Date: Tue, 31 Mar 2026 23:55:06 +0200 Subject: [PATCH 1/4] Add TaxFactor.EXENTO enum member --- CHANGELOG.md | 4 ++++ src/enums.ts | 1 + test-d/runtime-types.test-d.ts | 5 ++++- 3 files changed, 9 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 5728abe..b91eb8c 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,6 +5,10 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/) and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html). +## [4.14.2] 2026-03-31 +### Fixed +- Add `TaxFactor.EXENTO` (`"Exento"`) to align SDK enums with the API/OpenAPI allowed tax factor values. + ## [4.14.1] 2026-03-31 ### Fixed - Fix `organizations.checkDomainIsAvailable` to call `GET /organizations/domain-check` with query params (instead of an unsupported `PUT` payload flow). diff --git a/src/enums.ts b/src/enums.ts index 0b7c5ec..1d2d7df 100644 --- a/src/enums.ts +++ b/src/enums.ts @@ -57,6 +57,7 @@ export enum TaxType { export enum TaxFactor { RATE = 'Tasa', QUOTA = 'Cuota', + EXENTO = 'Exento', } export enum IepsMode { diff --git a/test-d/runtime-types.test-d.ts b/test-d/runtime-types.test-d.ts index 5c2cbd4..a4e8f8b 100644 --- a/test-d/runtime-types.test-d.ts +++ b/test-d/runtime-types.test-d.ts @@ -1,7 +1,8 @@ -import { expectType, expectError } from 'tsd'; +import { expectAssignable, expectType, expectError } from 'tsd'; import Facturapi, { BinaryDownload, NodeLikeReadableStream, + TaxFactor, } from '../dist'; const client = new Facturapi('sk_test_123'); @@ -26,3 +27,5 @@ if ('pipe' in binary && typeof binary.pipe === 'function') { const destination = { write: (_chunk: unknown) => undefined }; expectType(binary.pipe(destination)); } + +expectAssignable(TaxFactor.EXENTO); From b991c43a89ebb0dea794a7244e07a9ec6fbe2dd6 Mon Sep 17 00:00:00 2001 From: javorosas Date: Wed, 1 Apr 2026 10:17:13 +0200 Subject: [PATCH 2/4] chore(release): bump version to 4.14.2 --- package-lock.json | 4 ++-- package.json | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/package-lock.json b/package-lock.json index 06ac67c..6dde463 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "facturapi", - "version": "4.14.1", + "version": "4.14.2", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "facturapi", - "version": "4.14.1", + "version": "4.14.2", "license": "MIT", "devDependencies": { "@eslint/js": "^10.0.1", diff --git a/package.json b/package.json index d17ea29..c588ee4 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "facturapi", - "version": "4.14.1", + "version": "4.14.2", "description": "Librería oficial de Facturapi. Crea CFDIs timbrados y enviados al SAT, XML y PDF", "main": "dist/index.cjs.js", "module": "dist/index.es.js", From 82f2b98ec9f185912aa8067c6be486ae2addd8c6 Mon Sep 17 00:00:00 2001 From: javorosas Date: Wed, 1 Apr 2026 12:30:50 +0200 Subject: [PATCH 3/4] chore(metadata): improve npm package metadata --- package-lock.json | 3 ++- package.json | 15 +++++++++++++-- 2 files changed, 15 insertions(+), 3 deletions(-) diff --git a/package-lock.json b/package-lock.json index 6dde463..adfa238 100644 --- a/package-lock.json +++ b/package-lock.json @@ -29,7 +29,8 @@ "vitest": "^4.1.2" }, "engines": { - "node": ">=18.0.0" + "node": ">=18.0.0", + "npm": ">=10.0.0" } }, "node_modules/@asamuzakjp/css-color": { diff --git a/package.json b/package.json index c588ee4..e2afc48 100644 --- a/package.json +++ b/package.json @@ -1,16 +1,21 @@ { "name": "facturapi", "version": "4.14.2", - "description": "Librería oficial de Facturapi. Crea CFDIs timbrados y enviados al SAT, XML y PDF", + "description": "SDK oficial de Facturapi para Node.js y navegadores. Integra facturación electrónica en México (CFDI) de forma simple y obtén una perspectiva fiscal completa de tu operación, con búsquedas indexadas, envío de documentos y trazabilidad.", "main": "dist/index.cjs.js", "module": "dist/index.es.js", "types": "dist/index.d.ts", + "sideEffects": false, "files": [ "dist", "README.md", "CHANGELOG.md", "LICENSE" ], + "publishConfig": { + "access": "public", + "provenance": true + }, "packageManager": "npm@10.9.2", "scripts": { "precommit": "lint-staged", @@ -28,7 +33,8 @@ "ci": "npm run test" }, "engines": { - "node": ">=18.0.0" + "node": ">=18.0.0", + "npm": ">=10.0.0" }, "repository": { "type": "git", @@ -37,6 +43,11 @@ "keywords": [ "cfdi", "factura", + "factura-electronica", + "facturacion-electronica", + "comprobante-fiscal-digital", + "sat-mexico", + "mexico", "sat", "facturación", "facturapi" From 72d77aa79acb239cf302f9e35fe0af874396bd2a Mon Sep 17 00:00:00 2001 From: javorosas Date: Fri, 3 Apr 2026 18:20:28 +0200 Subject: [PATCH 4/4] update contributors --- package.json | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/package.json b/package.json index e2afc48..eaea0d4 100644 --- a/package.json +++ b/package.json @@ -53,6 +53,14 @@ "facturapi" ], "author": "Facturación Espacial ", + "contributors": [ + { + "name": "Raúl Sánchez" + }, + { + "name": "Javier Rosas" + } + ], "license": "MIT", "bugs": { "url": "https://github.com/facturapi/facturapi-node/issues" @@ -87,4 +95,4 @@ "vite": "^8.0.3", "vitest": "^4.1.2" } -} +} \ No newline at end of file