Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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).
Expand Down
7 changes: 4 additions & 3 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

27 changes: 23 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,16 +1,21 @@
{
"name": "facturapi",
"version": "4.14.1",
"description": "Librería oficial de Facturapi. Crea CFDIs timbrados y enviados al SAT, XML y PDF",
"version": "4.14.2",
"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",
Expand All @@ -28,7 +33,8 @@
"ci": "npm run test"
},
"engines": {
"node": ">=18.0.0"
"node": ">=18.0.0",
"npm": ">=10.0.0"
},
"repository": {
"type": "git",
Expand All @@ -37,11 +43,24 @@
"keywords": [
"cfdi",
"factura",
"factura-electronica",
"facturacion-electronica",
"comprobante-fiscal-digital",
"sat-mexico",
"mexico",
"sat",
"facturación",
"facturapi"
],
"author": "Facturación Espacial <contacto@facturapi.io>",
"contributors": [
{
"name": "Raúl Sánchez"
},
{
"name": "Javier Rosas"
}
],
"license": "MIT",
"bugs": {
"url": "https://github.com/facturapi/facturapi-node/issues"
Expand Down Expand Up @@ -76,4 +95,4 @@
"vite": "^8.0.3",
"vitest": "^4.1.2"
}
}
}
1 change: 1 addition & 0 deletions src/enums.ts
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@ export enum TaxType {
export enum TaxFactor {
RATE = 'Tasa',
QUOTA = 'Cuota',
EXENTO = 'Exento',
}

export enum IepsMode {
Expand Down
5 changes: 4 additions & 1 deletion test-d/runtime-types.test-d.ts
Original file line number Diff line number Diff line change
@@ -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');
Expand All @@ -26,3 +27,5 @@ if ('pipe' in binary && typeof binary.pipe === 'function') {
const destination = { write: (_chunk: unknown) => undefined };
expectType<typeof destination>(binary.pipe(destination));
}

expectAssignable<TaxFactor>(TaxFactor.EXENTO);
Loading