Skip to content

Commit

Permalink
chore(release): 2.0.3
Browse files Browse the repository at this point in the history
  • Loading branch information
pixu1980 committed May 1, 2023
1 parent 754f638 commit d87f2e7
Show file tree
Hide file tree
Showing 29 changed files with 867 additions and 939 deletions.
15 changes: 15 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,21 @@

All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.

### [2.0.3](https://github.com/pixu1980/detector-js/compare/v1.3.2...v2.0.3) (2023-05-01)


### Features

* **docs:** improved typedoc docs generation, updated usage ex ([5308768](https://github.com/pixu1980/detector-js/commit/5308768141135b092158b7ebb1ec5c4515ed98c9))
* **docs:** replaced jsdoc with typedoc ([7595bb9](https://github.com/pixu1980/detector-js/commit/7595bb9c0f0c648c073bfbaa048e36ce7186b4d1))
* **parcel:** replaced rollup with parcel ([ebe9128](https://github.com/pixu1980/detector-js/commit/ebe9128096d7195bc20e80e93c991ea7aa06b3c8))
* **ts:** typescript rework ([4838e91](https://github.com/pixu1980/detector-js/commit/4838e9120d11100d026afbc9758dfaf75e5c1d92))


### Bug Fixes

* **build-broken:** sorry for this, now should work ([754f638](https://github.com/pixu1980/detector-js/commit/754f6389477df0995389eea06801319252d4989f))

### [2.0.2](https://github.com/pixu1980/detector-js/compare/v1.3.2...v2.0.2) (2023-04-24)


Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# detector-js
v2.0.2
v2.0.3

## Description
DetectorJS, zero-dependency platform/environment detector written in TypeScript
Expand Down Expand Up @@ -156,10 +156,10 @@ console.log(detector);
- [@parcel/packager-ts](https://ghub.io/@parcel/packager-ts): DetectorJS, zero-dependency platform/environment detector written in TypeScript
- [@parcel/transformer-typescript-types](https://ghub.io/@parcel/transformer-typescript-types): DetectorJS, zero-dependency platform/environment detector written in TypeScript
- [@types/node](https://ghub.io/@types/node): TypeScript definitions for Node.js
- [changelog](https://ghub.io/changelog): Command line tool (and Node module) that generates a changelog in color output, markdown, or json for modules in npmjs.org's registry as well as any public github.com repo.
- [lerna](https://ghub.io/lerna): Lerna is a fast, modern build system for managing and publishing multiple JavaScript/TypeScript packages from the same repository
- [parcel](https://ghub.io/parcel): Blazing fast, zero configuration web application bundler
- [pkg-2-readme](https://ghub.io/pkg-2-readme): Generate a README.md from package.json contents
- [standard-version](https://ghub.io/standard-version): replacement for `npm version` with automatic CHANGELOG generation
- [typedoc](https://ghub.io/typedoc): Create api documentation for TypeScript projects.
- [typescript](https://ghub.io/typescript): TypeScript is a language for application scale JavaScript development

Expand Down
2 changes: 1 addition & 1 deletion dist/detector.js.map

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

28 changes: 14 additions & 14 deletions docs/assets/highlight.css
Original file line number Diff line number Diff line change
@@ -1,18 +1,18 @@
:root {
--light-hl-0: #000000;
--dark-hl-0: #D4D4D4;
--light-hl-1: #A31515;
--dark-hl-1: #CE9178;
--light-hl-2: #AF00DB;
--dark-hl-2: #C586C0;
--light-hl-3: #001080;
--dark-hl-3: #9CDCFE;
--light-hl-4: #0000FF;
--dark-hl-4: #569CD6;
--light-hl-5: #0070C1;
--dark-hl-5: #4FC1FF;
--light-hl-6: #795E26;
--dark-hl-6: #DCDCAA;
--light-hl-0: #795E26;
--dark-hl-0: #DCDCAA;
--light-hl-1: #000000;
--dark-hl-1: #D4D4D4;
--light-hl-2: #A31515;
--dark-hl-2: #CE9178;
--light-hl-3: #AF00DB;
--dark-hl-3: #C586C0;
--light-hl-4: #001080;
--dark-hl-4: #9CDCFE;
--light-hl-5: #0000FF;
--dark-hl-5: #569CD6;
--light-hl-6: #0070C1;
--dark-hl-6: #4FC1FF;
--light-hl-7: #008000;
--dark-hl-7: #6A9955;
--light-code-background: #FFFFFF;
Expand Down
6 changes: 3 additions & 3 deletions docs/assets/main.js

Large diffs are not rendered by default.

85 changes: 56 additions & 29 deletions docs/assets/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -51,13 +51,13 @@
--dark-color-text-aside: #dddddd;
--dark-color-link: #00aff4;

--dark-color-ts-project: #e14dff;
--dark-color-ts-project: #e358ff;
--dark-color-ts-module: var(--dark-color-ts-project);
--dark-color-ts-namespace: var(--dark-color-ts-project);
--dark-color-ts-enum: #f4d93e;
--dark-color-ts-enum-member: var(--dark-color-ts-enum);
--dark-color-ts-variable: #798dff;
--dark-color-ts-function: #9772ff;
--dark-color-ts-function: #a280ff;
--dark-color-ts-class: #8ac4ff;
--dark-color-ts-interface: #6cff87;
--dark-color-ts-constructor: var(--dark-color-ts-class);
Expand Down Expand Up @@ -262,6 +262,16 @@ h6 {
line-height: 1.2;
}

h1 > a,
h2 > a,
h3 > a,
h4 > a,
h5 > a,
h6 > a {
text-decoration: none;
color: var(--color-text);
}

h1 {
font-size: 1.875rem;
margin: 0.67rem 0;
Expand Down Expand Up @@ -296,12 +306,6 @@ h6 {
text-transform: uppercase;
}

pre {
white-space: pre;
white-space: pre-wrap;
word-wrap: break-word;
}

dl,
menu,
ol,
Expand Down Expand Up @@ -426,13 +430,29 @@ pre {
}

pre {
position: relative;
white-space: pre;
white-space: pre-wrap;
word-wrap: break-word;
padding: 10px;
border: 0.1em solid var(--color-accent);
border: 1px solid var(--color-accent);
}
pre code {
padding: 0;
font-size: 100%;
}
pre > button {
position: absolute;
top: 10px;
right: 10px;
opacity: 0;
transition: opacity 0.1s;
box-sizing: border-box;
}
pre:hover > button,
pre > button.visible {
opacity: 1;
}

blockquote {
margin: 1em 0;
Expand Down Expand Up @@ -676,7 +696,12 @@ input[type="checkbox"]:checked ~ svg .tsd-checkbox-checkmark {
.tsd-navigation.settings {
margin: 1rem 0;
}
.tsd-navigation > a,
.tsd-navigation .tsd-accordion-summary {
width: calc(100% - 0.5rem);
}
.tsd-navigation a,
.tsd-navigation summary > span,
.tsd-page-navigation a {
display: inline-flex;
align-items: center;
Expand All @@ -685,14 +710,6 @@ input[type="checkbox"]:checked ~ svg .tsd-checkbox-checkmark {
text-decoration: none;
box-sizing: border-box;
}
.tsd-navigation a {
/* why 3rem? No idea, but it seems to work. */
width: calc(100% - 3rem);
}
.tsd-page-navigation a {
/* why is this different? */
width: 100%;
}
.tsd-navigation a.current,
.tsd-page-navigation a.current {
background: var(--color-active-menu-item);
Expand All @@ -703,7 +720,8 @@ input[type="checkbox"]:checked ~ svg .tsd-checkbox-checkmark {
}
.tsd-navigation ul,
.tsd-page-navigation ul {
margin: 0;
margin-top: 0;
margin-bottom: 0;
padding: 0;
list-style: none;
}
Expand All @@ -712,18 +730,24 @@ input[type="checkbox"]:checked ~ svg .tsd-checkbox-checkmark {
padding: 0;
max-width: 100%;
}
.tsd-nested-navigation > li > a {
.tsd-nested-navigation {
margin-left: 3rem;
}
.tsd-nested-navigation > li > details {
margin-left: 1.5rem;
margin-left: -1.5rem;
}
.tsd-small-nested-navigation > li > a {
.tsd-small-nested-navigation {
margin-left: 1.5rem;
}
.tsd-small-nested-navigation > li > details {
margin-left: 0;
margin-left: -1.5rem;
}

.tsd-nested-navigation > li > a,
.tsd-nested-navigation > li > span {
width: calc(100% - 1.75rem - 0.5rem);
}

.tsd-page-navigation ul {
padding-left: 1.75rem;
}
Expand All @@ -745,28 +769,31 @@ a.tsd-index-link {
align-items: center;
color: var(--color-text);
}
.tsd-accordion-summary {
list-style-type: none;
display: flex;
align-items: center;
}
.tsd-accordion-summary,
.tsd-accordion-summary a {
user-select: none;
-moz-user-select: none;
-webkit-user-select: none;
-ms-user-select: none;

display: flex;
align-items: center;
cursor: pointer;
}
.tsd-accordion-summary a {
flex-grow: 1;
}
.tsd-accordion-summary > * {
margin-top: 0;
margin-bottom: 0;
padding-top: 0;
padding-bottom: 0;
}
.tsd-accordion-summary::-webkit-details-marker {
display: none;
}
.tsd-index-accordion .tsd-accordion-summary svg {
margin-right: 0.25rem;
.tsd-index-accordion .tsd-accordion-summary > svg {
margin-left: 0.25rem;
}
.tsd-index-content > :not(:first-child) {
margin-top: 0.75rem;
Expand Down
24 changes: 11 additions & 13 deletions docs/classes/_detector_js_core.Asserts.html
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
<!DOCTYPE html><html class="default" lang="en"><head><meta charSet="utf-8"/><meta http-equiv="x-ua-compatible" content="IE=edge"/><title>Asserts | DetectorJS - v2.0.2</title><meta name="description" content="Documentation for DetectorJS"/><meta name="viewport" content="width=device-width, initial-scale=1"/><link rel="stylesheet" href="../assets/style.css"/><link rel="stylesheet" href="../assets/highlight.css"/><script defer src="../assets/main.js"></script><script async src="../assets/search.js" id="tsd-search-script"></script></head><body><script>document.documentElement.dataset.theme = localStorage.getItem("tsd-theme") || "os"</script><header class="tsd-page-toolbar">
<!DOCTYPE html><html class="default" lang="en"><head><meta charSet="utf-8"/><meta http-equiv="x-ua-compatible" content="IE=edge"/><title>Asserts | DetectorJS - v2.0.3</title><meta name="description" content="Documentation for DetectorJS"/><meta name="viewport" content="width=device-width, initial-scale=1"/><link rel="stylesheet" href="../assets/style.css"/><link rel="stylesheet" href="../assets/highlight.css"/><script defer src="../assets/main.js"></script><script async src="../assets/search.js" id="tsd-search-script"></script></head><body><script>document.documentElement.dataset.theme = localStorage.getItem("tsd-theme") || "os"</script><header class="tsd-page-toolbar">
<div class="tsd-toolbar-contents container">
<div class="table-cell" id="tsd-search" data-base="..">
<div class="field"><label for="tsd-search-field" class="tsd-widget tsd-toolbar-icon search no-caption"><svg width="16" height="16" viewBox="0 0 16 16" fill="none"><path d="M15.7824 13.833L12.6666 10.7177C12.5259 10.5771 12.3353 10.499 12.1353 10.499H11.6259C12.4884 9.39596 13.001 8.00859 13.001 6.49937C13.001 2.90909 10.0914 0 6.50048 0C2.90959 0 0 2.90909 0 6.49937C0 10.0896 2.90959 12.9987 6.50048 12.9987C8.00996 12.9987 9.39756 12.4863 10.5008 11.6239V12.1332C10.5008 12.3332 10.5789 12.5238 10.7195 12.6644L13.8354 15.7797C14.1292 16.0734 14.6042 16.0734 14.8948 15.7797L15.7793 14.8954C16.0731 14.6017 16.0731 14.1267 15.7824 13.833ZM6.50048 10.499C4.29094 10.499 2.50018 8.71165 2.50018 6.49937C2.50018 4.29021 4.28781 2.49976 6.50048 2.49976C8.71001 2.49976 10.5008 4.28708 10.5008 6.49937C10.5008 8.70852 8.71314 10.499 6.50048 10.499Z" fill="var(--color-text)"></path></svg></label><input type="text" id="tsd-search-field" aria-label="Search"/></div>
<div class="field">
<div id="tsd-toolbar-links"></div></div>
<ul class="results">
<li class="state loading">Preparing search index...</li>
<li class="state failure">The search index is not available</li></ul><a href="../index.html" class="title">DetectorJS - v2.0.2</a></div>
<li class="state failure">The search index is not available</li></ul><a href="../index.html" class="title">DetectorJS - v2.0.3</a></div>
<div class="table-cell" id="tsd-widgets"><a href="#" class="tsd-widget tsd-toolbar-icon menu no-caption" data-toggle="menu" aria-label="Menu"><svg width="16" height="16" viewBox="0 0 16 16" fill="none"><rect x="1" y="3" width="14" height="2" fill="var(--color-text)"></rect><rect x="1" y="7" width="14" height="2" fill="var(--color-text)"></rect><rect x="1" y="11" width="14" height="2" fill="var(--color-text)"></rect></svg></a></div></div></header>
<div class="container container-main">
<div class="col-content">
Expand All @@ -24,7 +24,7 @@ <h4>Hierarchy</h4>
<ul class="tsd-hierarchy">
<li><span class="target">Asserts</span></li></ul></section><aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/pixu1980/detector-js/blob/c5e280e/packages/core/lib/asserts.ts#L7">asserts.ts:7</a></li></ul></aside>
<li>Defined in <a href="https://github.com/pixu1980/detector-js/blob/81ba070/packages/core/lib/asserts.ts#L7">asserts.ts:7</a></li></ul></aside>
<section class="tsd-panel-group tsd-index-group">
<section class="tsd-panel tsd-index-panel">
<details class="tsd-index-content tsd-index-accordion" open><summary class="tsd-accordion-summary tsd-index-summary">
Expand Down Expand Up @@ -64,7 +64,7 @@ <h5><span class="tsd-kind-parameter">assert</span>: <span class="tsd-signature-t
<h5><span class="tsd-kind-parameter">safe</span>: <span class="tsd-signature-type">boolean</span><span class="tsd-signature-symbol"> = false</span></h5></li></ul></div>
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">any</span></h4><aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/pixu1980/detector-js/blob/c5e280e/packages/core/lib/asserts.ts#L8">asserts.ts:8</a></li></ul></aside></li></ul></section>
<li>Defined in <a href="https://github.com/pixu1980/detector-js/blob/81ba070/packages/core/lib/asserts.ts#L8">asserts.ts:8</a></li></ul></aside></li></ul></section>
<section class="tsd-panel tsd-member"><a id="all" class="tsd-anchor"></a>
<h3 class="tsd-anchor-link"><code class="tsd-tag ts-flagStatic">Static</code> <span>all</span><a href="#all" aria-label="Permalink" class="tsd-anchor-icon"><svg class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><use href="#icon-anchor-a"></use><use href="#icon-anchor-b"></use><use href="#icon-anchor-c"></use></svg></a></h3>
<ul class="tsd-signatures">
Expand All @@ -73,8 +73,6 @@ <h3 class="tsd-anchor-link"><code class="tsd-tag ts-flagStatic">Static</code> <s
<div class="tsd-comment tsd-typography"><p>Check for every assert to be true</p>

<h3>Static</h3>
<h3>Returns</h3><p>boolean</p>

<h3>Member Of</h3><p>Asserts</p>
</div>
<div class="tsd-parameters">
Expand All @@ -88,9 +86,10 @@ <h5><code class="tsd-tag ts-flagOptional">Optional</code> <span class="tsd-kind-
<h5><code class="tsd-tag ts-flagOptional">Optional</code> <span class="tsd-kind-parameter">safe</span>: <span class="tsd-signature-type">boolean</span><span class="tsd-signature-symbol"> = false</span></h5>
<div class="tsd-comment tsd-typography"><p>executes asserts in a safe mode (try/catch)</p>
</div></li></ul></div>
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">boolean</span></h4><aside class="tsd-sources">
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">boolean</span></h4><p>boolean</p>
<aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/pixu1980/detector-js/blob/c5e280e/packages/core/lib/asserts.ts#L38">asserts.ts:38</a></li></ul></aside></li></ul></section>
<li>Defined in <a href="https://github.com/pixu1980/detector-js/blob/81ba070/packages/core/lib/asserts.ts#L38">asserts.ts:38</a></li></ul></aside></li></ul></section>
<section class="tsd-panel tsd-member"><a id="one" class="tsd-anchor"></a>
<h3 class="tsd-anchor-link"><code class="tsd-tag ts-flagStatic">Static</code> <span>one</span><a href="#one" aria-label="Permalink" class="tsd-anchor-icon"><svg class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><use href="#icon-anchor-a"></use><use href="#icon-anchor-b"></use><use href="#icon-anchor-c"></use></svg></a></h3>
<ul class="tsd-signatures">
Expand All @@ -99,8 +98,6 @@ <h3 class="tsd-anchor-link"><code class="tsd-tag ts-flagStatic">Static</code> <s
<div class="tsd-comment tsd-typography"><p>Check for at least one assert to be true</p>

<h3>Static</h3>
<h3>Returns</h3><p>boolean</p>

<h3>Member Of</h3><p>Asserts</p>
</div>
<div class="tsd-parameters">
Expand All @@ -114,9 +111,10 @@ <h5><code class="tsd-tag ts-flagOptional">Optional</code> <span class="tsd-kind-
<h5><code class="tsd-tag ts-flagOptional">Optional</code> <span class="tsd-kind-parameter">safe</span>: <span class="tsd-signature-type">boolean</span><span class="tsd-signature-symbol"> = false</span></h5>
<div class="tsd-comment tsd-typography"><p>executes asserts in a safe mode (try/catch)</p>
</div></li></ul></div>
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">boolean</span></h4><aside class="tsd-sources">
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">boolean</span></h4><p>boolean</p>
<aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/pixu1980/detector-js/blob/c5e280e/packages/core/lib/asserts.ts#L54">asserts.ts:54</a></li></ul></aside></li></ul></section></section></div>
<li>Defined in <a href="https://github.com/pixu1980/detector-js/blob/81ba070/packages/core/lib/asserts.ts#L54">asserts.ts:54</a></li></ul></aside></li></ul></section></section></div>
<div class="col-sidebar">
<div class="page-menu">
<div class="tsd-navigation settings">
Expand All @@ -141,7 +139,7 @@ <h3><svg width="20" height="20" viewBox="0 0 24 24" fill="none"><path d="M4.9389
<li><a href="#all" class=""><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-2048-path"></use><use href="#icon-2048-text"></use></svg><span>all</span></a></li>
<li><a href="#one" class=""><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-2048-path"></use><use href="#icon-2048-text"></use></svg><span>one</span></a></li></ul></div></details></div>
<div class="site-menu">
<nav class="tsd-navigation"><a href="../index.html"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><rect fill="var(--color-icon-background)" stroke="var(--color-ts-namespace)" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="6" id="icon-4-path"></rect><path d="M9.33 16V7.24H10.77L13.446 14.74C13.43 14.54 13.41 14.296 13.386 14.008C13.37 13.712 13.354 13.404 13.338 13.084C13.33 12.756 13.326 12.448 13.326 12.16V7.24H14.37V16H12.93L10.266 8.5C10.282 8.692 10.298 8.936 10.314 9.232C10.33 9.52 10.342 9.828 10.35 10.156C10.366 10.476 10.374 10.784 10.374 11.08V16H9.33Z" fill="var(--color-text)" id="icon-4-text"></path></svg><span>DetectorJS -<wbr/> v2.0.2</span></a>
<nav class="tsd-navigation"><a href="../index.html"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><rect fill="var(--color-icon-background)" stroke="var(--color-ts-namespace)" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="6" id="icon-4-path"></rect><path d="M9.33 16V7.24H10.77L13.446 14.74C13.43 14.54 13.41 14.296 13.386 14.008C13.37 13.712 13.354 13.404 13.338 13.084C13.33 12.756 13.326 12.448 13.326 12.16V7.24H14.37V16H12.93L10.266 8.5C10.282 8.692 10.298 8.936 10.314 9.232C10.33 9.52 10.342 9.828 10.35 10.156C10.366 10.476 10.374 10.784 10.374 11.08V16H9.33Z" fill="var(--color-text)" id="icon-4-text"></path></svg><span>DetectorJS -<wbr/> v2.0.3</span></a>
<ul class="tsd-small-nested-navigation">
<li>
<details class="tsd-index-accordion" open data-key="@detector-js/core"><summary class="tsd-accordion-summary"><svg width="20" height="20" viewBox="0 0 24 24" fill="none"><path d="M4.93896 8.531L12 15.591L19.061 8.531L16.939 6.409L12 11.349L7.06098 6.409L4.93896 8.531Z" fill="var(--color-text)"></path></svg><a href="../modules/_detector_js_core.html"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-4-path"></use><use href="#icon-4-text"></use></svg><span>@detector-<wbr/>js/core -<wbr/> v0.0.2</span></a></summary>
Expand Down
Loading

0 comments on commit d87f2e7

Please sign in to comment.