@availity/authorizations-axios 9.1.1 → 10.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -2,6 +2,43 @@
2
2
 
3
3
  This file was generated using [@jscutlery/semver](https://github.com/jscutlery/semver).
4
4
 
5
+ ## [10.0.1](https://github.com/availity/sdk-js/compare/@availity/authorizations-axios@10.0.0...@availity/authorizations-axios@10.0.1) (2026-06-09)
6
+
7
+ ### Dependency Updates
8
+
9
+ * `api-axios` updated to version `10.0.0`
10
+ * `authorizations-core` updated to version `10.0.0`
11
+
12
+
13
+ # [10.0.0](https://github.com/availity/sdk-js/compare/@availity/authorizations-axios@9.1.1...@availity/authorizations-axios@10.0.0) (2026-06-08)
14
+
15
+ ### Dependency Updates
16
+
17
+ * `api-axios` updated to version `9.1.1`
18
+ * `authorizations-core` updated to version `9.1.1`
19
+
20
+ ### Bug Fixes
21
+
22
+ * resolve lint errors, type errors, and add typecheck script ([a08d393](https://github.com/availity/sdk-js/commit/a08d3934497934bdcdf2f7a19d9d3c9479186c41))
23
+
24
+
25
+ * feat!: migrate to ESM and drop Node 20 support ([a665467](https://github.com/availity/sdk-js/commit/a6654672c2e96adb325d100a6dfdb7b5baf16bcd))
26
+
27
+
28
+ ### BREAKING CHANGES
29
+
30
+ * All packages now use ESM as the primary module format.
31
+ CJS is still available via the `require` condition in package exports.
32
+
33
+ - Add `"type": "module"` to all packages
34
+ - Swap export paths: `.js` is now ESM, `.cjs` is now CJS
35
+ - Drop Node 20 from engines (now requires ^22.0.0 || ^24.0.0)
36
+ - Rename config files from .js to .cjs (jest, prettier, commitlint, etc.)
37
+ - Upgrade yarn to ^4, jest to 30.4.x, typescript to 5.9.3, undici to ^8
38
+ - Add `sideEffects: false` to all packages for better tree-shaking
39
+
40
+
41
+
5
42
  ## [9.1.1](https://github.com/availity/sdk-js/compare/@availity/authorizations-axios@9.1.0...@availity/authorizations-axios@9.1.1) (2026-05-28)
6
43
 
7
44
  ### Dependency Updates
package/README.md CHANGED
@@ -22,11 +22,12 @@ yarn add @availity/authorizations-axios
22
22
 
23
23
  ## Configuration
24
24
 
25
- `AvAuthorizations` uses `AvPermissions`, and `AvRegions` from [Api-Axios](../api-axios). To configure their default options, `AvAuthorizations` takes in an options object that is passed onto them.
25
+ The default export is a pre-configured instance that uses `AvUserPermissionsApi` and `AvRegionsApi` from [Api-Axios](../api-axios).
26
26
 
27
27
  ```js
28
- import AvAuthorizations from '@availity/authorizations-axios';
29
- new AvAuthorizations(config);
28
+ import avAuthorizations from '@availity/authorizations-axios';
29
+
30
+ const authorized = await avAuthorizations.isAuthorized('1234');
30
31
  ```
31
32
 
32
33
  ## Methods
package/dist/index.d.ts CHANGED
@@ -1,4 +1,5 @@
1
1
  import AvAuthorizationsCore from '@availity/authorizations-core';
2
+ export { Organization, Permission, Resource } from '@availity/authorizations-core';
2
3
 
3
4
  declare const avAuthorizationsAxios: AvAuthorizationsCore;
4
5
 
package/dist/index.js CHANGED
@@ -1,43 +1,12 @@
1
- "use strict";
2
- var __create = Object.create;
3
- var __defProp = Object.defineProperty;
4
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
5
- var __getOwnPropNames = Object.getOwnPropertyNames;
6
- var __getProtoOf = Object.getPrototypeOf;
7
- var __hasOwnProp = Object.prototype.hasOwnProperty;
8
- var __export = (target, all) => {
9
- for (var name in all)
10
- __defProp(target, name, { get: all[name], enumerable: true });
11
- };
12
- var __copyProps = (to, from, except, desc) => {
13
- if (from && typeof from === "object" || typeof from === "function") {
14
- for (let key of __getOwnPropNames(from))
15
- if (!__hasOwnProp.call(to, key) && key !== except)
16
- __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
17
- }
18
- return to;
19
- };
20
- var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
21
- // If the importer is in node compatibility mode or this is not an ESM
22
- // file that has been converted to a CommonJS file using a Babel-
23
- // compatible transform (i.e. "__esModule" has not been set), then set
24
- // "default" to the CommonJS "module.exports" for node compatibility.
25
- isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
26
- mod
27
- ));
28
- var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
29
-
30
1
  // src/index.js
31
- var index_exports = {};
32
- __export(index_exports, {
33
- default: () => index_default
34
- });
35
- module.exports = __toCommonJS(index_exports);
36
- var import_authorizations_core = __toESM(require("@availity/authorizations-core"));
37
- var import_api_axios = require("@availity/api-axios");
38
- var AvAuthorizationsReact = class extends import_authorizations_core.default {
2
+ import AvAuthorizations from "@availity/authorizations-core";
3
+ import { avUserPermissionsApi, avRegionsApi } from "@availity/api-axios";
4
+ var AvAuthorizationsReact = class extends AvAuthorizations {
39
5
  constructor() {
40
- super(import_api_axios.avUserPermissionsApi, import_api_axios.avRegionsApi, Promise);
6
+ super(avUserPermissionsApi, avRegionsApi, Promise);
41
7
  }
42
8
  };
43
9
  var index_default = new AvAuthorizationsReact();
10
+ export {
11
+ index_default as default
12
+ };
@@ -1,4 +1,4 @@
1
- const global = require('../../jest.config');
1
+ const global = require('../../jest.config.cjs');
2
2
 
3
3
  module.exports = {
4
4
  ...global,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@availity/authorizations-axios",
3
- "version": "9.1.1",
3
+ "version": "10.0.1",
4
4
  "description": "Availity authorizations react logic",
5
5
  "homepage": "https://availity.github.io/sdk-js/api/authorizations",
6
6
  "bugs": {
@@ -13,42 +13,41 @@
13
13
  },
14
14
  "license": "MIT",
15
15
  "author": "Kasey Powers <kasey.powers@availity.com>",
16
- "browser": "./dist/index.js",
16
+ "type": "module",
17
17
  "main": "./dist/index.js",
18
- "module": "./dist/index.mjs",
19
18
  "types": "./dist/index.d.ts",
20
19
  "exports": {
21
20
  "./package.json": "./package.json",
22
21
  ".": {
23
22
  "types": "./dist/index.d.ts",
24
- "import": "./dist/index.mjs",
25
- "require": "./dist/index.js"
23
+ "import": "./dist/index.js"
26
24
  }
27
25
  },
28
26
  "engines": {
29
- "node": "^20.0.0 || ^22.0.0 || ^24.0.0"
27
+ "node": "^22.0.0 || ^24.0.0"
30
28
  },
31
29
  "scripts": {
32
- "build": "tsup src/index.js --format esm,cjs --dts",
33
- "dev": "tsup src/index.js --format esm,cjs --watch --dts",
30
+ "build": "tsup src/index.js --format esm --clean --dts",
31
+ "dev": "tsup src/index.js --format esm --watch --dts",
34
32
  "lint": "eslint src",
35
33
  "lint:fix": "eslint src --fix",
36
34
  "clean": "rm -rf node_modules && rm -rf dist",
37
35
  "publish": "yarn npm publish --tolerate-republish --access public"
38
36
  },
39
37
  "dependencies": {
40
- "@availity/api-axios": "12.3.1",
41
- "@availity/authorizations-core": "5.1.0"
38
+ "@availity/api-axios": "13.0.1",
39
+ "@availity/authorizations-core": "6.0.1"
42
40
  },
43
41
  "devDependencies": {
44
- "axios": "^1.13.2",
45
- "tsup": "^8.4.0",
46
- "typescript": "^5.5.4"
42
+ "axios": "^1.17.0",
43
+ "tsup": "^8.5.1",
44
+ "typescript": "^5.9.3"
47
45
  },
48
46
  "peerDependencies": {
49
- "axios": "^1.7.7"
47
+ "axios": "^1.17.0"
50
48
  },
51
49
  "publishConfig": {
52
50
  "access": "public"
53
- }
51
+ },
52
+ "sideEffects": false
54
53
  }
package/project.json CHANGED
@@ -7,7 +7,7 @@
7
7
  "executor": "@nx/jest:jest",
8
8
  "outputs": ["{workspaceRoot}/coverage/authorizations-axios"],
9
9
  "options": {
10
- "jestConfig": "packages/authorizations-axios/jest.config.js"
10
+ "jestConfig": "packages/authorizations-axios/jest.config.cjs"
11
11
  }
12
12
  },
13
13
  "version": {
package/src/index.d.ts CHANGED
@@ -1,5 +1,7 @@
1
1
  import AvAuthorizationsCore from '@availity/authorizations-core';
2
2
 
3
+ export type { Permission, Organization, Resource } from '@availity/authorizations-core';
4
+
3
5
  declare const avAuthorizationsAxios: AvAuthorizationsCore;
4
6
 
5
7
  export default avAuthorizationsAxios;
package/dist/index.d.mts DELETED
@@ -1,5 +0,0 @@
1
- import AvAuthorizationsCore from '@availity/authorizations-core';
2
-
3
- declare const avAuthorizationsAxios: AvAuthorizationsCore;
4
-
5
- export { avAuthorizationsAxios as default };
package/dist/index.mjs DELETED
@@ -1,12 +0,0 @@
1
- // src/index.js
2
- import AvAuthorizations from "@availity/authorizations-core";
3
- import { avUserPermissionsApi, avRegionsApi } from "@availity/api-axios";
4
- var AvAuthorizationsReact = class extends AvAuthorizations {
5
- constructor() {
6
- super(avUserPermissionsApi, avRegionsApi, Promise);
7
- }
8
- };
9
- var index_default = new AvAuthorizationsReact();
10
- export {
11
- index_default as default
12
- };