Skip to content

Commit

Permalink
fix: update semantic-release and build configuration to correctly deploy
Browse files Browse the repository at this point in the history
  • Loading branch information
alexberriman committed Aug 2, 2022
1 parent 900d4c3 commit fa07692
Show file tree
Hide file tree
Showing 6 changed files with 15 additions and 41 deletions.
12 changes: 8 additions & 4 deletions .releaserc.json
Expand Up @@ -3,14 +3,18 @@
"plugins": [
"@semantic-release/commit-analyzer",
"@semantic-release/release-notes-generator",
"@semantic-release/changelog",
[
"@semantic-release/exec",
"@semantic-release/changelog",
{
"generateNotesCmd": "./benchmark.sh"
"changelogTitle": "Changelog"
}
],
[
"@semantic-release/npm",
{
"pkgRoot": "./build"
}
],
"@semantic-release/npm",
"@semantic-release/git",
"@semantic-release/github"
]
Expand Down
28 changes: 1 addition & 27 deletions CHANGELOG.md
@@ -1,34 +1,8 @@
# [0.3.0](https://github.com/alexberriman/newtondb/compare/v0.2.0...v0.3.0) (2022-08-02)


### Features

* **collection:** add or property to conditionally execute chain operations ([dc4fb79](https://github.com/alexberriman/newtondb/commit/dc4fb79297edf21ec79d302373763b787f881cac))





<details>
<summary>View benchmarks</summary>

- `db.get` (1000k records):
- **native** `Array.prototype.find()`: 116 ops/s
- **newton** without PK: 2 ops/s
- **newton** with pk: 15205 ops/s
- `db.find` (1000k records):
- **native** `Array.prototype.find()`: 113 ops/s
- **newton** without PK: 6 ops/s
- **newton** with pk: 74274 ops/s
- `new Newton()`:
- 1k records: 4401 ops/s
- 10k records: 381 ops/s
- 100k records: 9 ops/s
- 1000k records: 1 ops/s

</details>

# Changelog
- **collection:** add or property to conditionally execute chain operations ([dc4fb79](https://github.com/alexberriman/newtondb/commit/dc4fb79297edf21ec79d302373763b787f881cac))

## [0.2.0](https://github.com/alexberriman/newtondb/compare/v0.1.2...v0.2.0) (2022-07-26)

Expand Down
8 changes: 5 additions & 3 deletions README.md
@@ -1,5 +1,5 @@
<h1 align="center" id="top">
<a href="https://github.com/alexberriman/newtondb"><img src="./static/logo.png" alt="newtondb" height="190"></a>
<a href="https://github.com/alexberriman/newtondb"><img src="https://github.com/alexberriman/newtondb/raw/main/static/logo.png" alt="newtondb" height="190"></a>
<br>
Newton
<br>
Expand Down Expand Up @@ -873,6 +873,8 @@ const isaac = $.get("Isaac Newton")
.commit();
```
<div align="right"><a href="#top">Back to top</a></div>
### `.delete()`
Deletes one or more records from the collection.
Expand Down Expand Up @@ -1900,7 +1902,7 @@ const db = new Database([
]);
```
<img src="./static/01-type-inference-single-collection.png" alt="type inference using a single collection" />
<img src="https://github.com/alexberriman/newtondb/raw/main/static/01-type-inference-single-collection.png" alt="type inference using a single collection" />
**Using multiple collections:**
Expand All @@ -1916,7 +1918,7 @@ const db = new Database({
});
```
<img src="./static/02-type-inference-multiple-collections.png" alt="type inference using a single collection" />
<img src="https://github.com/alexberriman/newtondb/raw/main/static/02-type-inference-multiple-collections.png" alt="type inference using a single collection" />
When the shape of the data can't be inferred automatically, you can pass through the shape of the data when instantiating your database:
Expand Down
4 changes: 1 addition & 3 deletions deploy.sh
@@ -1,9 +1,7 @@
#!/bin/bash

npm run build \
&& cp package.json README.md LICENSE .build \
&& mkdir -p .build/static \
&& cp -R ./static/ .build/static/
&& cp package.json README.md LICENSE .build

dot-json .build/package.json devDependencies --delete \
&& dot-json .build/package.json scripts --delete \
Expand Down
3 changes: 0 additions & 3 deletions static/docs.css

This file was deleted.

1 change: 0 additions & 1 deletion typedoc.json
@@ -1,7 +1,6 @@
{
"$schema": "https://typedoc.org/schema.json",
"name": "Newton",
"customCss": "./static/docs.css",
"includeVersion": true,
"excludePrivate": true,
"excludeProtected": true,
Expand Down

0 comments on commit fa07692

Please sign in to comment.