Skip to content

Commit

Permalink
📦 Dependency upgrade and funding notice mainly.
Browse files Browse the repository at this point in the history
Prepared for 1.0.2

- `pnpm upgrade` for housekeeping.
- Added funding notice to `package.json`.
- Added `collectCoverage` to jest.
  • Loading branch information
adam-rocska committed Aug 29, 2024
1 parent 13ecfca commit 12e97f2
Show file tree
Hide file tree
Showing 3 changed files with 348 additions and 337 deletions.
72 changes: 5 additions & 67 deletions RELEASE.md
Original file line number Diff line number Diff line change
@@ -1,71 +1,9 @@
# 1.0.1
# 1.0.2

Initial release.
Enjoy.
Dependency upgrade and funding notice mainly.

## Patch Changes

* Wrestling with GitHub Actions and the `npm` CLI to get the
package published properly. It has no impact on the API.

## Examples

```ts
markdownTable(
[`Trait`, `Absolute Value`, `Relative Value`],
[`Units Per Em`, `${anatomy.unitsPerEm}`, `${relativized.unitsPerEm}`],
[`Ascender`, `${anatomy.ascender}`, `${relativized.ascender}`],
[`Descender`, `${anatomy.descender}`, `${relativized.descender}`],
[`X-Height`, `${anatomy.xHeight}`, `${relativized.xHeight}`],
[`Cap Height`, `${anatomy.capHeight}`, `${relativized.capHeight}`]
);
```

```ts
markdownTable(
["Attribute", "Value"],
["Copyright", resolveLocalizedName(font.names.copyright)],
["Description", resolveLocalizedName(font.names.description)],
["Designer", resolveLocalizedName(font.names.designer)],
["Designer URL", resolveLocalizedName(font.names.designerURL)],
["Font Family", resolveLocalizedName(font.names.fontFamily)],
["Font Subfamily", resolveLocalizedName(font.names.fontSubfamily)],
["Full Name", resolveLocalizedName(font.names.fullName)],
["License", resolveLocalizedName(font.names.license)],
["License URL", resolveLocalizedName(font.names.licenseURL)],
["Manufacturer", resolveLocalizedName(font.names.manufacturer)],
["Manufacturer URL", resolveLocalizedName(font.names.manufacturerURL)],
["postScript Name", resolveLocalizedName(font.names.postScriptName)],
["Trademark", resolveLocalizedName(font.names.trademark)],
["Version", resolveLocalizedName(font.names.version)],
)
````

The examples above yield the following tables below:

| Attribute | Value |
| ---------------- | ------------------------------------------------------------------------------------------------------------------------------------------------- |
| Copyright | Copyright 2022 The Figtree Project Authors (<https://github.com/erikdkennedy/figtree>) |
| Description | |
| Designer | Erik Kennedy |
| Designer URL | <https://erikdkennedy.com/> |
| Font Family | Figtree Light |
| Font Subfamily | Regular |
| Full Name | Figtree Light |
| License | This Font Software is licensed under the SIL Open Font License, Version 1.1. This license is available with a FAQ at: <https://scripts.sil.org/OFL> |
| License URL | <https://scripts.sil.org/OFL> |
| Manufacturer | Erik Kennedy |
| Manufacturer URL | <https://erikdkennedy.com/> |
| postScript Name | Figtree-Light |
| Trademark | |
| Version | Version 2.001;gftools[0.9.30] |

and

| Trait | Absolute Value | Relative Value |
| ------------ | -------------- | -------------- |
| Units Per Em | 1000 | 1 |
| Ascender | 950 | 0.95 |
| Descender | -250 | -0.25 |
| X-Height | 500 | 0.5 |
| Cap Height | 700 | 0.7 |
- `pnpm upgrade` for housekeeping.
- Added funding notice to `package.json`.
- Added `collectCoverage` to jest.
15 changes: 12 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@adam-rocska/markdown-table",
"version": "1.0.1",
"version": "1.0.2",
"description": "A library with a simple API for generating Markdown tables.",
"keywords": [
"markdown",
Expand Down Expand Up @@ -32,6 +32,12 @@
"bugs": {
"url": "https://github.com/adam-rocska/markdown-table-typescript/issues"
},
"funding": [
{
"type": "github",
"url": "https://github.com/sponsors/adam-rocska"
}
],
"scripts": {
"clean": "rimraf dist",
"build": "bunchee",
Expand All @@ -46,9 +52,9 @@
"eslint": "^8.57.0",
"eslint-config-next": "14.2.5",
"jest": "^29.7.0",
"pnpm": "^9.7.0",
"pnpm": "^9.9.0",
"rimraf": "^6.0.1",
"type-fest": "^4.24.0",
"type-fest": "^4.26.0",
"typescript": "^5.5.4"
},
"files": [
Expand Down Expand Up @@ -82,6 +88,9 @@
"@swc/jest"
]
},
"collectCoverageFrom": [
"src/**/*.ts"
],
"testPathIgnorePatterns": [
"/node_modules/"
],
Expand Down
Loading

0 comments on commit 12e97f2

Please sign in to comment.