Skip to content

Commit af4cca9

Browse files
committed
refactor(port-storage): move to deno 2 and refactor usages
1 parent fb60a3e commit af4cca9

File tree

13 files changed

+109
-59
lines changed

13 files changed

+109
-59
lines changed

.github/workflows/port-storage.yml

Lines changed: 15 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -19,20 +19,20 @@ jobs:
1919
runs-on: ubuntu-latest
2020
strategy:
2121
matrix:
22-
deno-version: [1.x]
22+
deno-version: [2.x]
2323

2424
steps:
2525
- name: ⬇️ Checkout repo
26-
uses: actions/checkout@v3
26+
uses: actions/checkout@v4
2727

2828
- name: 🦕 Setup Deno
29-
uses: denoland/setup-deno@v1
29+
uses: denoland/setup-deno@v2
3030
with:
3131
deno-version: ${{ matrix.deno-version }}
3232

3333
- name: ⚡ Run Tests
34+
working-directory: packages/port-storage
3435
run: |
35-
cd packages/port-storage
3636
deno task test
3737
env:
3838
CI: true
@@ -41,14 +41,22 @@ jobs:
4141
if: startsWith(github.ref, 'refs/tags/hyper-port-storage@')
4242
needs: [test]
4343
runs-on: ubuntu-latest
44+
permissions:
45+
contents: read
46+
id-token: write
4447
steps:
4548
- name: ⬇️ Checkout repo
46-
uses: actions/checkout@v3
49+
uses: actions/checkout@v4
4750

4851
- name: 🦕 Setup Deno
49-
uses: denoland/setup-deno@v1
52+
uses: denoland/setup-deno@v2
5053
with:
51-
deno-version: v1.x
54+
deno-version: v2.x
55+
56+
- name: ✨ Publish to JSR
57+
working-directory: packages/port-storage
58+
run: |
59+
deno publish --allow-slow-types
5260
5361
# - name: 🥚 Setup Eggs CLI
5462
# run: |

packages/port-cache/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<h1 align="center">hyper-port-cache</h1>
2-
<p align="center">The Cache Port for the <a href="https://hyper.io/">hyper</a> service framework</p>
2+
<p align="center">Port for the Cache Service in the <a href="https://hyper.io/">hyper</a> Service Framework</p>
33
</p>
44
<p align="center">
55
<a href="https://nest.land/package/hyper-port-cache"><img src="https://nest.land/badge.svg" alt="Nest Badge" /></a>

packages/port-data/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<h1 align="center">hyper-port-data</h1>
2-
<p align="center">The Data Port for the <a href="https://hyper.io/">hyper</a> service framework</p>
2+
<p align="center">Port for the Data Service in the <a href="https://hyper.io/">hyper</a> Service Framework</p>
33
</p>
44
<p align="center">
55
<a href="https://nest.land/package/hyper-port-data"><img src="https://nest.land/badge.svg" alt="Nest Badge" /></a>

packages/port-storage/README.md

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
11
<h1 align="center">hyper-port-storage</h1>
2-
<p align="center">The Storage Port for the <a href="https://hyper.io/">hyper</a> service framework</p>
2+
<p align="center">Port for the Storage Service in the <a href="https://hyper.io/">hyper</a> Service Framework</p>
33
</p>
44
<p align="center">
55
<a href="https://nest.land/package/hyper-port-storage"><img src="https://nest.land/badge.svg" alt="Nest Badge" /></a>
6+
<a href="https://jsr.io/@hyper63/port-storage"><img src="https://jsr.io/badges/@hyper63/port-storage" alt="" /></a>
67
<a href="https://github.com/hyper63/hyper63/actions/workflows/port-storage.yml"><img src="https://github.com/hyper63/hyper63/actions/workflows/port-storage.yml/badge.svg" alt="Test" /></a>
78
</p>
89

@@ -11,6 +12,14 @@
1112
hyper63 port is a module that valiadates the schema of an adapter. In this case the storage port
1213
validates the schema of a storage adapter.
1314

15+
<!-- toc -->
16+
17+
- [Usage](#usage)
18+
- [Test](#test)
19+
- [License](#license)
20+
21+
<!-- tocstop -->
22+
1423
## Usage
1524

1625
## Test

packages/port-storage/deno.json

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
{
2+
"name": "@hyper63/port-storage",
3+
"version": "2.0.1",
4+
"exports": "./mod.ts",
5+
"tasks": {
6+
"test": "deno lint && deno fmt --check && deno test --no-check",
7+
"cache": "deno install --entrypoint mod.ts"
8+
},
9+
"imports": {
10+
"zod": "npm:[email protected]",
11+
"@std/io/buffer": "jsr:@std/[email protected]/buffer",
12+
"@std/assert": "jsr:@std/assert@1"
13+
},
14+
"fmt": {
15+
"include": [
16+
"./"
17+
],
18+
"lineWidth": 100,
19+
"singleQuote": true,
20+
"semiColons": false
21+
},
22+
"lint": {
23+
"rules": {
24+
"exclude": [
25+
"no-slow-types"
26+
]
27+
}
28+
},
29+
"publish": {
30+
"include": [
31+
"*"
32+
],
33+
"exclude": [
34+
"**/*.test.ts"
35+
]
36+
}
37+
}

packages/port-storage/deno.jsonc

Lines changed: 0 additions & 16 deletions
This file was deleted.

packages/port-storage/deno.lock

Lines changed: 39 additions & 23 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

packages/port-storage/deps.ts

Lines changed: 0 additions & 1 deletion
This file was deleted.

packages/port-storage/dev_deps.ts

Lines changed: 0 additions & 2 deletions
This file was deleted.

packages/port-storage/egg.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"$schema": "https://x.nest.land/[email protected]/src/schema.json",
33
"name": "hyper-port-storage",
44
"entry": "./mod.ts",
5-
"description": "Hyper service framework port for Storage adapters",
5+
"description": "Port for the Storage Service in the hyper Service Framework",
66
"homepage": "https://github.com/hyper63/hyper",
77
"repo": "https://github.com/hyper63/hyper",
88
"version": "2.0.1",

0 commit comments

Comments
 (0)