Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
44 commits
Select commit Hold shift + click to select a range
3948049
feat: 🎸 Added Socket, Emitter and Listener
prc5 Nov 17, 2022
473184f
feat: 🎸 Created intial version of sockets hooks
prc5 Nov 19, 2022
126442a
chore: 🤖 Added sockets husky setup
prc5 Nov 19, 2022
5066302
style: 💄 Readme update
prc5 Nov 19, 2022
00a9a91
style: 💄 Readme update
prc5 Nov 19, 2022
0429535
feat: 🎸 Added server client
prc5 Nov 20, 2022
d1f20a9
feat: 🎸 Updated examples
prc5 Nov 20, 2022
7860636
feat: 🎸 Added websockets client
prc5 Nov 20, 2022
f5c8c63
feat: 🎸 Client adjustments
prc5 Nov 20, 2022
64c8477
feat: 🎸 Added server client adapter
prc5 Nov 20, 2022
28de874
feat: 🎸 Added socket reconnect functionality
prc5 Nov 20, 2022
ad175ac
feat: 🎸 Created extendable architecture
prc5 Nov 21, 2022
547277f
chore: 🤖 Removed frozen lock
prc5 Nov 22, 2022
28393ec
feat: 🎸 Created event hooks
prc5 Nov 22, 2022
2294ed8
feat: 🎸 First working prototype
prc5 Nov 26, 2022
993d45c
feat: 🎸 WIP
prc5 Nov 26, 2022
2fb4bf6
feat: 🎸 Heatbeat and packages upgrade
prc5 Nov 26, 2022
9bb4bdb
feat: 🎸 Feature polishing
prc5 Nov 26, 2022
91e25ff
feat: 🎸 Code polishing
prc5 Nov 27, 2022
2b7ea93
feat: 🎸 Added Ack
prc5 Nov 27, 2022
28afc9b
feat: 🎸 Offline support
prc5 Nov 27, 2022
ee2ec6c
test: 💍 Test update
prc5 Nov 27, 2022
40a6f93
test: 💍 Tests fix
prc5 Nov 27, 2022
52725e5
test: 💍 Tests fix
prc5 Nov 27, 2022
22afc9c
feat: 🎸 Adjusted formatting
prc5 Nov 27, 2022
b48f02e
test: 💍 Tests adjustments
prc5 Nov 27, 2022
466e5b0
test: 💍 Added listener and emitter tests
prc5 Nov 27, 2022
3d40bd7
fix: 🐛 Fixes
prc5 Nov 27, 2022
7418814
feat: 🎸 Added Socket client tests
prc5 Dec 22, 2022
c66b635
test: 💍 Full test coverage
prc5 Dec 22, 2022
fa60af9
test: 💍 Sockets hooks tests
prc5 Dec 22, 2022
d4db80f
test: 💍 Sockets hooks tests
prc5 Dec 23, 2022
6aac7bf
feat: 🎸 Garbage collector adjustments
prc5 Dec 23, 2022
5f17b5f
feat: 🎸 Node uint8Array handling for form data
prc5 Dec 23, 2022
ecd52eb
docs: ✏️ Sockets Documentation
prc5 Dec 23, 2022
3fe127e
feat: 🎸 Process adjustments
prc5 Dec 23, 2022
701fd41
docs: ✏️ Added docs versioning
prc5 Dec 24, 2022
c3a3fc1
chore: 🤖 Docs deployment adjustments
prc5 Dec 24, 2022
5b5df38
Merge main branch
prc5 Dec 24, 2022
71c9d24
test: 💍 Typecheck tests
prc5 Dec 24, 2022
00785f3
test: 💍 Typecheck tests
prc5 Dec 24, 2022
26fb75a
chore: 🤖 Added typecheck command
prc5 Dec 24, 2022
77c6fbf
chore: 🤖 Build before husky checks
prc5 Dec 24, 2022
598256e
feat: 🎸 Sockets
prc5 Dec 24, 2022
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
2 changes: 1 addition & 1 deletion .github/workflows/docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ jobs:
aws-region: ${{ secrets.PROD_AWS_REGION }}

- name: Install packages
run: yarn install --frozen-lockfile
run: yarn install

- name: Build packages
run: yarn build
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ jobs:
cache: "yarn"

- name: Install packages
run: yarn install --frozen-lockfile
run: yarn install

- name: Build
run: yarn build
Expand Down
5 changes: 4 additions & 1 deletion .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,14 +17,17 @@ jobs:
cache: "yarn"

- name: Install packages
run: yarn install --frozen-lockfile
run: yarn install

- name: Build
run: yarn build

- name: Lint
run: yarn lint

- name: Typecheck
run: yarn typecheck

- name: Clear Jest
run: yarn jest --clearCache

Expand Down
6 changes: 4 additions & 2 deletions .husky/pre-commit
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,7 @@
. "$(dirname "$0")/_/husky.sh"

yarn commitlint --edit "$1"
yarn nx run-many --target=precommit --projects=core,react
yarn nx run-many --target=lint --projects=core,react --parallel=2
yarn nx run-many --target=build --projects=core,react,sockets
yarn nx run-many --target=precommit --projects=core,react,sockets
yarn nx run-many --target=lint --projects=core,react,sockets --parallel=3
yarn nx run-many --target=typecheck --projects=core,react,sockets --parallel=3
32 changes: 29 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -54,15 +54,15 @@ particular `caching`, `queuing`, `persistence`, `offline first support`, `reques

🚀 **Queueing** - [Read more](https://hyperfetch.bettertyped.com/guides/Advanced/Queueing)

💎 **Automatic caching** - [Read more](https://hyperfetch.bettertyped.com/docs/Architecture/Cache)
💎 **Automatic caching** - [Read more](https://hyperfetch.bettertyped.com/docs/Core/Cache)

🪄 **Persistence** - [Read more](https://hyperfetch.bettertyped.com/guides/Advanced/Persistence)

🎊 **SSR Support** - [Read more](https://hyperfetch.bettertyped.com/docs/Getting%20Started/Environment)

🔋 **Offline First** - [Read more](https://hyperfetch.bettertyped.com/guides/Advanced/Offline)

📡 **Built-in client** - [Read more](https://hyperfetch.bettertyped.com/docs/Architecture/Client)
📡 **Built-in client** - [Read more](https://hyperfetch.bettertyped.com/docs/Core/Client)

🧪 **Easy to test** - [Read more](https://hyperfetch.bettertyped.com/docs/Getting%20Started/Testing)

Expand All @@ -81,12 +81,22 @@ particular `caching`, `queuing`, `persistence`, `offline first support`, `reques

The easiest way to get the latest version of Hyper Fetch is to install it via yarn or npm.

#### Core

```bash
npm install --save @hyper-fetch/core
or
yarn add @hyper-fetch/core
```

#### Sockets

```bash
npm install --save @hyper-fetch/sockets
or
yarn add @hyper-fetch/sockets
```

#### React Hooks

```bash
Expand Down Expand Up @@ -121,6 +131,22 @@ yarn add @hyper-fetch/core @hyper-fetch/react
</a>
</td>
</tr>
<tr>
<td>
<a href="https://github.com/BetterTyped/hyper-fetch/tree/main/packages/react" >🛰️ Hyper Fetch Sockets</a>
</td>
<td>
<a href="https://www.npmjs.com/package/@hyper-fetch/sockets">
<img src="https://custom-icon-badges.demolab.com/npm/dm/@hyper-fetch/sockets?logoColor=fff&logo=trending-up" />
</a>
<a href="https://www.npmjs.com/package/@hyper-fetch/sockets">
<img src="https://custom-icon-badges.demolab.com/npm/v/@hyper-fetch/sockets.svg?logo=npm"/>
</a>
<a href="https://www.npmjs.com/package/@hyper-fetch/sockets">
<img src="https://custom-icon-badges.demolab.com/bundlephobia/minzip/@hyper-fetch/sockets?color=E10098&logo=package" />
</a>
</td>
</tr>
<tr>
<td>
<a href="https://github.com/BetterTyped/hyper-fetch/tree/main/packages/react" >⚛️ React Hyper Fetch</a>
Expand Down Expand Up @@ -148,7 +174,7 @@ yarn add @hyper-fetch/core @hyper-fetch/react
import { Builder } from "@hyper-fetch/core";

// Create global setup
export const builder = new Builder({ baseUrl: "http://localhost:3000" });
export const builder = new Builder({ url: "http://localhost:3000" });

// Create reusable commands to trigger requests
export const postData = builder.createCommand<ResponseType, RequestType, LocalErrorType, QueryParamsType>()({
Expand Down
Loading