![Create React App Officially Deprecated Amid React 19 Compatibility Issues](https://cdn.sanity.io/images/cgdhsj6q/production/04fa08cf844d798abc0e1a6391c129363cc7e2ab-1024x1024.webp?w=400&fit=max&auto=format)
Security News
Create React App Officially Deprecated Amid React 19 Compatibility Issues
Create React App is officially deprecated due to React 19 issues and lack of maintenance—developers should switch to Vite or other modern alternatives.
@apihawk/billia-sdk
Advanced tools
Node.js SDK for easy interaction with the Billia REST API. The code is written in TypeScript and provides typings for all methods and data objects.
npm i @apihawk/billia-sdk
Requires Node.js version 10.0.0+
Import the BilliaSDK
constructor and create a new instance:
import { BilliaSDK } from '@apihawk/billia-sdk';
const billia = new BilliaSDK({
apiUrl: '<BILLIA API URL>',
clientId: '<YOUR CLIENT ID>',
clientSecret: '<YOUR CLIENT SECRET>'
});
const session = await billia.Authentication.authenticate(
'john.doe@example.com',
'my_password_123'
);
const orders = await billia.Orders.getOrders(session, {
page: 1,
page_size: 10
});
console.log(orders.items);
You can also use the SDK on the client (Angular/React/Vue etc.) to import Billia specific application data object types (interfaces) without including the actual implementation code. All types and interfaces are prefixed with I
and are in the /lib/types
namespace.
import { ICatalogProduct } from '@apihawk/billia-sdk/lib/types';
function showProductName(product: ICatalogProduct) {
console.log(`${product.name} (${product.module})`);
}
npm link
.npm link @apihawk/billia-sdk
.You must compile the TypeScript source code into JavaScript. You can do this by running: npm run build
.
Before you start the tests, make sure your code passes the linting rules set by TSLint:
npm run lint
You can execute the integration tests by running:
npm test
This will start the Jest test runner and each module will get tested in parallel.
It's important to always run the test suite before you contribute to this project and add tests for new features you implement. The tests are located in the src/__tests__
folder, the JSON API mocks are in the src/__mocksData__
while src/__mocks__
contains JS mock objects.
There are pre-commit hooks which will:
If one of these fails, your changes won't be commited. You have to fix the errors and fix your code until the pre-commit hooks pass.
If for some reason the hooks do not work for you, please run npm rebuild
. This will re-initialize the Husky hooks.
git checkout production
git pull origin production
npm version patch
(or minor
/ major
)git push origin production --tags
npm version patch
(or minor
/ major
)npm publish --access public
FAQs
The ApiHawk Billia SDK
The npm package @apihawk/billia-sdk receives a total of 11 weekly downloads. As such, @apihawk/billia-sdk popularity was classified as not popular.
We found that @apihawk/billia-sdk demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 4 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Create React App is officially deprecated due to React 19 issues and lack of maintenance—developers should switch to Vite or other modern alternatives.
Security News
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
Security News
The Linux Foundation is warning open source developers that compliance with global sanctions is mandatory, highlighting legal risks and restrictions on contributions.