Updated docs

Signed-off-by: Florian BOUILLON <florian.bouillon@delta-wings.net>
This commit is contained in:
Florian Bouillon 2021-07-19 14:45:41 +02:00
parent ad4ad553a4
commit 324be2a410
2 changed files with 16 additions and 0 deletions

View File

@ -7,6 +7,16 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
## [Unreleased] ## [Unreleased]
## 2.4.2 - 2021-07-19
### Added
- ESM exports are back
### Changed
- Moved browser export from `Webpack` to `esbuild`
## 2.4.1 - 2021-07-11 ## 2.4.1 - 2021-07-11
## Deprecated ## Deprecated

View File

@ -34,11 +34,17 @@ yarn add @tcgdex/sdk
npm install @tcgdex/sdk npm install @tcgdex/sdk
``` ```
or in the web browser
```html
<script src="https://cdn.jsdelivr.net/npm/@tcgdex/sdk@2/dist/tcgdex.browser.js"></script>
```
## Usage ## Usage
_Note: a complete documentation is in progress_ _Note: a complete documentation is in progress_
```javascript ```javascript
// only if using with NPM/Yarn
import TCGdex from '@tcgdex/sdk' import TCGdex from '@tcgdex/sdk'
// initialize the SDK // initialize the SDK