hyper-nano 2.1.0 → 3.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +8 -12
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -30,7 +30,7 @@ logic. `hyper-nano` is an embodiment of this approach.
|
|
|
30
30
|
[`adapters`](https://docs.hyper.io/oss/building-your-own-adapter) for all of the hyper service
|
|
31
31
|
offerings:
|
|
32
32
|
|
|
33
|
-
- data (powered by [
|
|
33
|
+
- data (powered by [In-Memory MongoDB](https://github.com/hyper63/hyper-adapter-mongodb))
|
|
34
34
|
- cache (powered by [Sqlite](https://github.com/hyper63/hyper-adapter-sqlite))
|
|
35
35
|
- storage (powered by your local [file system](https://github.com/hyper63/hyper-adapter-fs))
|
|
36
36
|
- search (powered by [Sqlite and Minisearch](https://github.com/hyper63/hyper-adapter-minisearch))
|
|
@@ -78,7 +78,7 @@ npx hyper-nano --domain=foobar --experimental --data --cache ...
|
|
|
78
78
|
Alternatively, if you use `Deno` you may run `hyper nano` directly from the source:
|
|
79
79
|
|
|
80
80
|
```sh
|
|
81
|
-
deno run --allow-env --allow-read --allow-write=__hyper__ --allow-net --unstable --no-check=remote https://raw.githubusercontent.com/hyper63/hyper/main/images/nano/mod.js
|
|
81
|
+
deno run --allow-run --allow-env --allow-read --allow-write=__hyper__ --allow-net --unstable --no-check=remote https://raw.githubusercontent.com/hyper63/hyper/main/images/nano/mod.js
|
|
82
82
|
```
|
|
83
83
|
|
|
84
84
|
If you'd like to programmatically start `hyper nano`, you can import `main.js` and run `main`:
|
|
@@ -101,7 +101,7 @@ then consume your hyper instance
|
|
|
101
101
|
using `HTTP`.
|
|
102
102
|
|
|
103
103
|
To consume using [`hyper-connect`](https://github.com/hyper63/hyper/tree/main/packages/connect) pass
|
|
104
|
-
`http://
|
|
104
|
+
`http://127.0.0.1:[port]/[domain]` to `hyper-connect` as your
|
|
105
105
|
[`connection string`](https://docs.hyper.io/app-keys#nq-connection-string)
|
|
106
106
|
|
|
107
107
|
Consume with [`hyper-connect`](https://github.com/hyper63/hyper/tree/main/packages/connect):
|
|
@@ -109,7 +109,7 @@ Consume with [`hyper-connect`](https://github.com/hyper63/hyper/tree/main/packag
|
|
|
109
109
|
```js
|
|
110
110
|
import { connect } from 'hyper-connect'
|
|
111
111
|
|
|
112
|
-
const hyper = connect('http://
|
|
112
|
+
const hyper = connect('http://127.0.0.1:6363/test')
|
|
113
113
|
|
|
114
114
|
await hyper.data.list()
|
|
115
115
|
```
|
|
@@ -117,7 +117,7 @@ await hyper.data.list()
|
|
|
117
117
|
Or consume via HTTP
|
|
118
118
|
|
|
119
119
|
```sh
|
|
120
|
-
curl http://
|
|
120
|
+
curl http://127.0.0.1:6363/data/test
|
|
121
121
|
```
|
|
122
122
|
|
|
123
123
|
> Starting with Node 17, Node has changed how it resolves `localhost`, when using global `fetch` and
|
|
@@ -205,25 +205,21 @@ await main({
|
|
|
205
205
|
### cache
|
|
206
206
|
|
|
207
207
|
```
|
|
208
|
-
|
|
208
|
+
deno task cache
|
|
209
209
|
```
|
|
210
210
|
|
|
211
211
|
### test
|
|
212
212
|
|
|
213
213
|
```
|
|
214
|
-
|
|
214
|
+
deno task test
|
|
215
215
|
```
|
|
216
216
|
|
|
217
217
|
### compile
|
|
218
218
|
|
|
219
219
|
```
|
|
220
|
-
|
|
220
|
+
make clean compile-{target}
|
|
221
221
|
```
|
|
222
222
|
|
|
223
|
-
### actions
|
|
224
|
-
|
|
225
|
-
Github actions deploy hyper to https://hyperland.s3.amazonaws.com/hyper
|
|
226
|
-
|
|
227
223
|
## LICENSE
|
|
228
224
|
|
|
229
225
|
Apache 2.0
|
package/package.json
CHANGED