Skip to content

Commit

Permalink
Release v3.0.1
Browse files Browse the repository at this point in the history
  • Loading branch information
dpilafian committed May 7, 2024
1 parent 27ce07a commit 01eaca7
Show file tree
Hide file tree
Showing 19 changed files with 34 additions and 32 deletions.
9 changes: 5 additions & 4 deletions .github/workflows/release-on-vtag.yaml
@@ -1,15 +1,16 @@
name: release
name: Create Release

on:
push:
tags:
- 'v*'

jobs:
build:
name: Create Release
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/create-release@v1
- uses: actions/checkout@v4 #see: https://github.com/actions/checkout/releases
- uses: actions/create-release@v1 #see: https://github.com/actions/create-release/releases
env:
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
with:
Expand Down
9 changes: 5 additions & 4 deletions .github/workflows/run-spec-on-push.yaml
@@ -1,11 +1,12 @@
name: build
name: Build and Run Specifications

on: [push]

jobs:
build:
name: Run Specifications
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
- uses: actions/checkout@v4 #see: https://github.com/actions/checkout/releases
- uses: actions/setup-node@v4 #see: https://github.com/actions/setup-node/releases
- run: npm install
- run: npm test
2 changes: 1 addition & 1 deletion README.md
Expand Up @@ -7,7 +7,7 @@ _Pretty-print JSON data into HTML to indent and colorize (written in functional
[![npm](https://img.shields.io/npm/v/pretty-print-json.svg)](https://www.npmjs.com/package/pretty-print-json)
[![Size](https://badgen.net/bundlephobia/minzip/pretty-print-json)](https://bundlephobia.com/package/pretty-print-json)
[![Hits](https://data.jsdelivr.com/v1/package/npm/pretty-print-json/badge?style=rounded)](https://www.jsdelivr.com/package/npm/pretty-print-json)
[![Build](https://github.com/center-key/pretty-print-json/workflows/build/badge.svg)](https://github.com/center-key/pretty-print-json/actions/workflows/run-spec-on-push.yaml)
[![Build](https://github.com/center-key/pretty-print-json/actions/workflows/run-spec-on-push.yaml/badge.svg)](https://github.com/center-key/pretty-print-json/actions/workflows/run-spec-on-push.yaml)

![Screenshot](docs/screenshot.png)

Expand Down
2 changes: 1 addition & 1 deletion dist/css/pretty-print-json.css
@@ -1,4 +1,4 @@
/*! pretty-print-json v3.0.0 ~~ https://pretty-print-json.js.org ~~ MIT License */
/*! pretty-print-json v3.0.1 ~~ https://pretty-print-json.js.org ~~ MIT License */

/* Layout */
.json-container { font-family: menlo, consolas, monospace; font-style: normal; font-weight: bold; line-height: 1.4em; font-size: 0.9rem; transition: background-color 400ms; }
Expand Down
2 changes: 1 addition & 1 deletion dist/css/pretty-print-json.dark-mode.css
@@ -1,4 +1,4 @@
/*! pretty-print-json v3.0.0 ~~ https://pretty-print-json.js.org ~~ MIT License */
/*! pretty-print-json v3.0.1 ~~ https://pretty-print-json.js.org ~~ MIT License */

/* Layout */
.json-container { font-family: menlo, consolas, monospace; font-style: normal; font-weight: bold; line-height: 1.4em; font-size: 0.9rem; transition: background-color 400ms; }
Expand Down
2 changes: 1 addition & 1 deletion dist/css/pretty-print-json.dark-mode.min.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/css/pretty-print-json.min.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/css/pretty-print-json.prefers.css
@@ -1,4 +1,4 @@
/*! pretty-print-json v3.0.0 ~~ https://pretty-print-json.js.org ~~ MIT License */
/*! pretty-print-json v3.0.1 ~~ https://pretty-print-json.js.org ~~ MIT License */

/* Layout */
.json-container { font-family: menlo, consolas, monospace; font-style: normal; font-weight: bold; line-height: 1.4em; font-size: 0.9rem; transition: background-color 400ms; }
Expand Down
2 changes: 1 addition & 1 deletion dist/css/pretty-print-json.prefers.min.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/pretty-print-json.d.ts
@@ -1,4 +1,4 @@
//! pretty-print-json v3.0.0 ~~ https://pretty-print-json.js.org ~~ MIT License
//! pretty-print-json v3.0.1 ~~ https://pretty-print-json.js.org ~~ MIT License

export type FormatSettings = {
indent: number;
Expand Down
4 changes: 2 additions & 2 deletions dist/pretty-print-json.dev.js
@@ -1,7 +1,7 @@
//! pretty-print-json v3.0.0 ~~ https://pretty-print-json.js.org ~~ MIT License
//! pretty-print-json v3.0.1 ~~ https://pretty-print-json.js.org ~~ MIT License

const prettyPrintJson = {
version: '3.0.0',
version: '3.0.1',
toHtml(data, options) {
const defaults = {
indent: 3,
Expand Down
4 changes: 2 additions & 2 deletions dist/pretty-print-json.js
@@ -1,7 +1,7 @@
//! pretty-print-json v3.0.0 ~~ https://pretty-print-json.js.org ~~ MIT License
//! pretty-print-json v3.0.1 ~~ https://pretty-print-json.js.org ~~ MIT License

const prettyPrintJson = {
version: '3.0.0',
version: '3.0.1',
toHtml(data, options) {
const defaults = {
indent: 3,
Expand Down
4 changes: 2 additions & 2 deletions dist/pretty-print-json.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions docs/dynamic/index.html
Expand Up @@ -14,7 +14,7 @@
<link rel=preconnect href=https://fonts.gstatic.com crossorigin>
<link rel=stylesheet href=https://cdn.jsdelivr.net/npm/@fortawesome/fontawesome-free@6.5/css/all.min.css>
<link rel=stylesheet href=https://cdn.jsdelivr.net/npm/pretty-print-json@3.0/dist/css/pretty-print-json.css>
<link rel=stylesheet href=https://cdn.jsdelivr.net/npm/dna-engine@3.1/dist/dna-engine.css>
<link rel=stylesheet href=https://cdn.jsdelivr.net/npm/dna-engine@3.2/dist/dna-engine.css>
<link rel=stylesheet href=https://cdn.jsdelivr.net/npm/web-ignition@2.1/dist/reset.min.css>
<style>
body {
Expand Down Expand Up @@ -42,7 +42,7 @@
opacity: 1;
}
</style>
<script defer src=https://cdn.jsdelivr.net/npm/dna-engine@3.1/dist/dna-engine.min.js></script>
<script defer src=https://cdn.jsdelivr.net/npm/dna-engine@3.2/dist/dna-engine.min.js></script>
<script defer src=https://cdn.jsdelivr.net/npm/web-ignition@2.1/dist/lib-x.min.js></script>
<script data-on-load=app.setup data-wait-for=libX>
const app = {
Expand Down
4 changes: 2 additions & 2 deletions docs/index.html
Expand Up @@ -22,7 +22,7 @@
<link rel=preconnect href=https://fonts.gstatic.com crossorigin>
<link rel=stylesheet href=https://cdn.jsdelivr.net/npm/@fortawesome/fontawesome-free@6.4/css/all.min.css>
<link rel=stylesheet href=https://cdn.jsdelivr.net/npm/pretty-print-json@3.0/dist/css/pretty-print-json.css>
<link rel=stylesheet href=https://cdn.jsdelivr.net/npm/dna-engine@3.1/dist/dna-engine.css>
<link rel=stylesheet href=https://cdn.jsdelivr.net/npm/dna-engine@3.2/dist/dna-engine.css>
<link rel=stylesheet href=https://cdn.jsdelivr.net/npm/web-ignition@2.0/dist/reset.min.css>
<style>
body {
Expand Down Expand Up @@ -171,7 +171,7 @@
</style>
<script defer src=https://cdn.jsdelivr.net/npm/pretty-print-json@3.0/dist/pretty-print-json.min.js></script>
<script defer src=https://cdn.jsdelivr.net/npm/fetch-json@3.3/dist/fetch-json.min.js></script>
<script defer src=https://cdn.jsdelivr.net/npm/dna-engine@3.1/dist/dna-engine.min.js></script>
<script defer src=https://cdn.jsdelivr.net/npm/dna-engine@3.2/dist/dna-engine.min.js></script>
<script defer src=https://cdn.jsdelivr.net/npm/web-ignition@2.0/dist/lib-x.min.js></script>
<script data-on-load=app.setup data-wait-for=libX>
const app = {
Expand Down
2 changes: 1 addition & 1 deletion package.json
@@ -1,6 +1,6 @@
{
"name": "pretty-print-json",
"version": "3.0.0",
"version": "3.0.1",
"description": "Pretty-print JSON data into HTML to indent and colorize (written in functional TypeScript)",
"license": "MIT",
"type": "module",
Expand Down
4 changes: 2 additions & 2 deletions spec/dynamic.html
Expand Up @@ -14,7 +14,7 @@
<link rel=preconnect href=https://fonts.gstatic.com crossorigin>
<link rel=stylesheet href=https://cdn.jsdelivr.net/npm/@fortawesome/fontawesome-free@6.5/css/all.min.css>
<link rel=stylesheet href=https://cdn.jsdelivr.net/npm/pretty-print-json@3.0/dist/css/pretty-print-json.css>
<link rel=stylesheet href=https://cdn.jsdelivr.net/npm/dna-engine@3.1/dist/dna-engine.css>
<link rel=stylesheet href=https://cdn.jsdelivr.net/npm/dna-engine@3.2/dist/dna-engine.css>
<link rel=stylesheet href=https://cdn.jsdelivr.net/npm/web-ignition@2.1/dist/reset.min.css>
<style>
body {
Expand Down Expand Up @@ -42,7 +42,7 @@
opacity: 1;
}
</style>
<script defer src=https://cdn.jsdelivr.net/npm/dna-engine@3.1/dist/dna-engine.min.js></script>
<script defer src=https://cdn.jsdelivr.net/npm/dna-engine@3.2/dist/dna-engine.min.js></script>
<script defer src=https://cdn.jsdelivr.net/npm/web-ignition@2.1/dist/lib-x.min.js></script>
<script data-on-load=app.setup data-wait-for=libX>
const app = {
Expand Down
4 changes: 2 additions & 2 deletions spec/interactive.html
Expand Up @@ -22,7 +22,7 @@
<link rel=preconnect href=https://fonts.gstatic.com crossorigin>
<link rel=stylesheet href=https://cdn.jsdelivr.net/npm/@fortawesome/fontawesome-free@6.4/css/all.min.css>
<link rel=stylesheet href=../dist/css/pretty-print-json.css>
<link rel=stylesheet href=https://cdn.jsdelivr.net/npm/dna-engine@3.1/dist/dna-engine.css>
<link rel=stylesheet href=https://cdn.jsdelivr.net/npm/dna-engine@3.2/dist/dna-engine.css>
<link rel=stylesheet href=https://cdn.jsdelivr.net/npm/web-ignition@2.0/dist/reset.min.css>
<style>
body {
Expand Down Expand Up @@ -171,7 +171,7 @@
</style>
<script defer src=../dist/pretty-print-json.min.js></script>
<script defer src=https://cdn.jsdelivr.net/npm/fetch-json@3.3/dist/fetch-json.min.js></script>
<script defer src=https://cdn.jsdelivr.net/npm/dna-engine@3.1/dist/dna-engine.min.js></script>
<script defer src=https://cdn.jsdelivr.net/npm/dna-engine@3.2/dist/dna-engine.min.js></script>
<script defer src=https://cdn.jsdelivr.net/npm/web-ignition@2.0/dist/lib-x.min.js></script>
<script data-on-load=app.setup data-wait-for=libX>
const app = {
Expand Down
2 changes: 1 addition & 1 deletion src/pretty-print-json.ts
Expand Up @@ -13,7 +13,7 @@ export type JsonType = 'key' | 'string' | 'number' | 'boolean' | 'null' | 'mark'

const prettyPrintJson = {

version: '{{pkg.version}}',
version: '{{package.version}}',

toHtml(data: unknown, options?: FormatOptions): string {
// Converts an object or primitive into an HTML string suitable for rendering.
Expand Down

0 comments on commit 01eaca7

Please sign in to comment.