Unverified Commit 08428575 authored by chris48s's avatar chris48s Committed by GitHub
Browse files

Package 3.1.0 (#5160)

* exclude typedef tests from npm pack
* update docs
* bump version
parent d0f3f225
lib/make-badge-test-helpers.js
lib/**/*.spec.js
index.test-d.ts
# Changelog
## 3.1.0
- Add TypeScript definitions
## 3.0.1
- Fix missing dependency
......
......@@ -25,7 +25,15 @@ With CommonJS in JavaScript,
```js
const { makeBadge, ValidationError } = require('badge-maker')
```
With ESM or TypeScript,
```ts
import { makeBadge, ValidationError } from 'badge-maker'
```
```js
const format = {
label: 'build',
message: 'passed',
......@@ -42,12 +50,6 @@ try {
}
```
With ESM or TypeScript,
```ts
import { makeBadge, ValidationError } from 'badge-maker'
```
### Node version support
The latest version of badge-maker supports all currently maintained Node
......
{
"name": "badge-maker",
"version": "3.0.1",
"version": "3.1.0",
"description": "Shields.io badge library",
"keywords": [
"GitHub",
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment