Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions .changeset/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
# Changesets

Hello and welcome! This folder has been automatically generated by `@changesets/cli`, a build tool that works
with multi-package repos, or single-package repos to help you version and publish your code. You can
find the full documentation for it [in the changesets repository](https://github.com/changesets/changesets).

**For contributors**: If your PR includes changes to the `react-http-renderer` package, please run `pnpm changeset` and
follow the prompts to describe your changes. Commit the generated changeset file along with your code changes.
14 changes: 14 additions & 0 deletions .changeset/config.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
{
"$schema": "https://unpkg.com/@changesets/config@3.1.1/schema.json",
"changelog": [
"@changesets/changelog-github",
{ "repo": "ntatoud/react-http" }
],
"commit": false,
"fixed": [],
"linked": [],
"access": "public",
"baseBranch": "main",
"updateInternalDependencies": "patch",
"ignore": ["@todo-app/backend", "@todo-app/frontend"]
}
14 changes: 14 additions & 0 deletions .changeset/initial-release.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
---
"react-http-renderer": minor
---

Initial release of react-http-renderer

- Custom React Reconciler for HTTP server rendering
- Declarative JSX components: `<Server>`, `<Route>`, `<Get>`, `<Post>`, `<Put>`, `<Delete>`, `<Patch>`, `<Options>`, `<Head>`, `<Middleware>`
- React hooks: `useRequest()` and `useResponse()`
- Middleware support with scoped execution and chaining
- URL parameter extraction and query string parsing
- JSON request body parsing
- Full TypeScript support with typed RequestContext, handlers, and middleware
- Zero external HTTP dependencies — built on Node.js `http` module
49 changes: 49 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
name: Release

on:
push:
branches:
- main

concurrency: ${{ github.workflow }}-${{ github.ref }}

jobs:
release:
name: Release
runs-on: ubuntu-latest
permissions:
contents: write
pull-requests: write
id-token: write

steps:
- name: Checkout repo
uses: actions/checkout@v4

- name: Setup pnpm
uses: pnpm/action-setup@v4

- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: 20
cache: pnpm
registry-url: "https://registry.npmjs.org"

- name: Install dependencies
run: pnpm install

- name: Build
run: pnpm turbo run build

- name: Create Release Pull Request or Publish
id: changesets
uses: changesets/action@v1
with:
title: "chore: version packages"
commit: "chore: version packages"
publish: pnpm release
version: pnpm version-packages
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_CONFIG_PROVENANCE: true
Loading