Skip to content

Commit

Permalink
Release v2.1.1
Browse files Browse the repository at this point in the history
  • Loading branch information
dpilafian committed Jan 3, 2024
1 parent 06bf801 commit c763ad3
Show file tree
Hide file tree
Showing 18 changed files with 31 additions and 31 deletions.
2 changes: 1 addition & 1 deletion LICENSE.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
MIT License

Copyright (c) 2018-2023 Individual contributors to pretty-print-json
Copyright (c) 2018-2024 Individual contributors to pretty-print-json

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,9 @@ https://pretty-print-json.js.org
### 1. Web browser
Load from the [jsdelivr.com CDN](https://www.jsdelivr.com/package/npm/pretty-print-json):
```html
<link rel=stylesheet href=https://cdn.jsdelivr.net/npm/pretty-print-json@2.0/dist/css/pretty-print-json.css>
<link rel=stylesheet href=https://cdn.jsdelivr.net/npm/pretty-print-json@2.1/dist/css/pretty-print-json.css>
...
<script src=https://cdn.jsdelivr.net/npm/pretty-print-json@2.0/dist/pretty-print-json.min.js></script>
<script src=https://cdn.jsdelivr.net/npm/pretty-print-json@2.1/dist/pretty-print-json.min.js></script>
```
For **dark mode**, replace `pretty-print-json.css` with `pretty-print-json.dark-mode.css` in
the `<link>` tag.
Expand Down
2 changes: 1 addition & 1 deletion dist/css/pretty-print-json.css
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/*! pretty-print-json v2.1.0 ~~ https://pretty-print-json.js.org ~~ MIT License */
/*! pretty-print-json v2.1.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
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/*! pretty-print-json v2.1.0 ~~ https://pretty-print-json.js.org ~~ MIT License */
/*! pretty-print-json v2.1.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
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/*! pretty-print-json v2.1.0 ~~ https://pretty-print-json.js.org ~~ MIT License */
/*! pretty-print-json v2.1.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
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
//! pretty-print-json v2.1.0 ~~ https://pretty-print-json.js.org ~~ MIT License
//! pretty-print-json v2.1.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
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
//! pretty-print-json v2.1.0 ~~ https://pretty-print-json.js.org ~~ MIT License
//! pretty-print-json v2.1.1 ~~ https://pretty-print-json.js.org ~~ MIT License

const prettyPrintJson = {
version: '2.1.0',
version: '2.1.1',
toHtml(data, options) {
if (!''.at)
String.prototype.at = function (i) { return this.charAt(i + (i < 0 ? this.length : 0)); };
Expand Down
4 changes: 2 additions & 2 deletions dist/pretty-print-json.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
//! pretty-print-json v2.1.0 ~~ https://pretty-print-json.js.org ~~ MIT License
//! pretty-print-json v2.1.1 ~~ https://pretty-print-json.js.org ~~ MIT License

const prettyPrintJson = {
version: '2.1.0',
version: '2.1.1',
toHtml(data, options) {
if (!''.at)
String.prototype.at = function (i) { return this.charAt(i + (i < 0 ? this.length : 0)); };
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 dist/pretty-print-json.umd.cjs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
//! pretty-print-json v2.1.0 ~~ https://pretty-print-json.js.org ~~ MIT License
//! pretty-print-json v2.1.1 ~~ https://pretty-print-json.js.org ~~ MIT License

(function (factory) {
if (typeof module === "object" && typeof module.exports === "object") {
Expand All @@ -13,7 +13,7 @@
Object.defineProperty(exports, "__esModule", { value: true });
exports.prettyPrintJson = void 0;
const prettyPrintJson = {
version: '2.1.0',
version: '2.1.1',
toHtml(data, options) {
if (!''.at)
String.prototype.at = function (i) { return this.charAt(i + (i < 0 ? this.length : 0)); };
Expand Down
4 changes: 2 additions & 2 deletions docs/dynamic/index.html
Original file line number Diff line number Diff line change
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/[email protected]/css/all.min.css>
<link rel=stylesheet href=https://cdn.jsdelivr.net/npm/[email protected]/dist/css/pretty-print-json.css>
<link rel=stylesheet href=https://cdn.jsdelivr.net/npm/dna-engine@3.0/dist/dna-engine.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/[email protected]/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.0/dist/dna-engine.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/[email protected]/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
Original file line number Diff line number Diff line change
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/[email protected]/css/all.min.css>
<link rel=stylesheet href=https://cdn.jsdelivr.net/npm/[email protected]/dist/css/pretty-print-json.css>
<link rel=stylesheet href=https://cdn.jsdelivr.net/npm/dna-engine@3.0/dist/dna-engine.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/[email protected]/dist/reset.min.css>
<style>
body {
Expand Down Expand Up @@ -171,7 +171,7 @@
</style>
<script defer src=https://cdn.jsdelivr.net/npm/[email protected]/dist/pretty-print-json.min.js></script>
<script defer src=https://cdn.jsdelivr.net/npm/[email protected]/dist/fetch-json.min.js></script>
<script defer src=https://cdn.jsdelivr.net/npm/dna-engine@3.0/dist/dna-engine.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/[email protected]/dist/lib-x.min.js></script>
<script data-on-load=app.setup data-wait-for=libX>
const app = {
Expand Down
10 changes: 5 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "pretty-print-json",
"version": "2.1.0",
"version": "2.1.1",
"description": "Pretty-print JSON data into HTML to indent and colorize (written in functional TypeScript)",
"license": "MIT",
"type": "module",
Expand Down Expand Up @@ -106,15 +106,15 @@
"devDependencies": {
"@fortawesome/fontawesome-free": "~6.5",
"@types/node": "~20.10",
"@typescript-eslint/eslint-plugin": "~6.13",
"@typescript-eslint/parser": "~6.13",
"@typescript-eslint/eslint-plugin": "~6.17",
"@typescript-eslint/parser": "~6.17",
"add-dist-header": "~1.3",
"assert-deep-strict-equal": "~1.1",
"copy-file-util": "~1.1",
"copy-folder-util": "~1.1",
"csso-cli": "~4.0",
"dna-engine": "~3.0",
"eslint": "~8.55",
"dna-engine": "~3.1",
"eslint": "~8.56",
"esm-to-plain-js": "~1.1",
"fetch-json": "~3.2",
"jsdom": "~23.0",
Expand Down
4 changes: 2 additions & 2 deletions spec/dynamic.html
Original file line number Diff line number Diff line change
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/[email protected]/css/all.min.css>
<link rel=stylesheet href=https://cdn.jsdelivr.net/npm/[email protected]/dist/css/pretty-print-json.css>
<link rel=stylesheet href=https://cdn.jsdelivr.net/npm/dna-engine@3.0/dist/dna-engine.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/[email protected]/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.0/dist/dna-engine.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/[email protected]/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
Original file line number Diff line number Diff line change
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/[email protected]/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.0/dist/dna-engine.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/[email protected]/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/[email protected]/dist/fetch-json.min.js></script>
<script defer src=https://cdn.jsdelivr.net/npm/dna-engine@3.0/dist/dna-engine.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/[email protected]/dist/lib-x.min.js></script>
<script data-on-load=app.setup data-wait-for=libX>
const app = {
Expand Down

0 comments on commit c763ad3

Please sign in to comment.