Skip to content

Commit 52bf5ce

Browse files
committed
change name
1 parent db2c884 commit 52bf5ce

9 files changed

Lines changed: 31 additions & 25 deletions

File tree

.changeset/khaki-hoops-mate.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"@forge42/web-events": major
3+
---
4+
5+
Initial release

README.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11

22

3-
# 📦 web-events
3+
# 📦 @forge42/web-events
44

55
**A tiny web-standards based utility for event-driven web apps.**
66

@@ -27,17 +27,17 @@ Leverages [`@standard-schema/spec`](https://www.npmjs.com/package/@standard-sche
2727
## 📦 Installation
2828

2929
```bash
30-
npm install web-events
30+
npm install @forge42/web-events
3131
# or
32-
pnpm add web-events
32+
pnpm add @forge42/web-events
3333
```
3434

3535
## 📖 Usage
3636

3737
### Core API
3838

3939
```ts
40-
import { registerEvent } from "web-events"
40+
import { registerEvent } from "@forge42/web-events"
4141
import { z } from "zod"
4242

4343
// Define your schema
@@ -89,10 +89,10 @@ unsubscribe()
8989

9090
### React
9191

92-
You can also use `web-events` in a React application. It comes with a React specific API that allows you to register and listen to events in a more React-friendly way.
92+
You can also use `@forge42/web-events` in a React application. It comes with a React specific API that allows you to register and listen to events in a more React-friendly way.
9393

9494
```tsx
95-
import { registerReactEvent } from "web-events/react"
95+
import { registerReactEvent } from "@forge42/web-events/react"
9696
import { z } from "zod"
9797
const UserLoggedIn = z.object({
9898
userId: z.string(),
@@ -165,11 +165,11 @@ const UserLoggedIn = z.object({
165165

166166

167167
### Framework Integration
168-
You can easily integrate `web-events` with popular frameworks like React, Vue, or Svelte. Here's an example for React:
168+
You can easily integrate `@forge42/web-events` with popular frameworks like React, Vue, or Svelte. Here's an example for React:
169169

170170
```tsx
171171
import React, { useEffect } from "react"
172-
import { registerEvent } from "web-events"
172+
import { registerEvent } from "@forge42/web-events"
173173

174174
const UserLoggedIn = z.object({
175175
userId: z.string(),

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"name": "web-events",
2+
"name": "@forge42/web-events",
33
"version": "0.0.0",
44
"description": "Minimal open-source stack to help you ship an open-source package in TS",
55
"scripts": {

packages/web-events/CHANGELOG.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# web-events
1+
# @forge42/web-events
22

33
## 1.0.0
44

packages/web-events/README.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11

22

3-
# 📦 web-events
3+
# 📦 @forge42/web-events
44

55
**A tiny web-standards based utility for event-driven web apps.**
66

@@ -27,17 +27,17 @@ Leverages [`@standard-schema/spec`](https://www.npmjs.com/package/@standard-sche
2727
## 📦 Installation
2828

2929
```bash
30-
npm install web-events
30+
npm install @forge42/web-events
3131
# or
32-
pnpm add web-events
32+
pnpm add @forge42/web-events
3333
```
3434

3535
## 📖 Usage
3636

3737
### Core API
3838

3939
```ts
40-
import { registerEvent } from "web-events"
40+
import { registerEvent } from "@forge42/web-events"
4141
import { z } from "zod"
4242

4343
// Define your schema
@@ -89,10 +89,10 @@ unsubscribe()
8989

9090
### React
9191

92-
You can also use `web-events` in a React application. It comes with a React specific API that allows you to register and listen to events in a more React-friendly way.
92+
You can also use `@forge42/web-events` in a React application. It comes with a React specific API that allows you to register and listen to events in a more React-friendly way.
9393

9494
```tsx
95-
import { registerReactEvent } from "web-events/react"
95+
import { registerReactEvent } from "@forge42/web-events/react"
9696
import { z } from "zod"
9797
const UserLoggedIn = z.object({
9898
userId: z.string(),
@@ -165,11 +165,11 @@ const UserLoggedIn = z.object({
165165

166166

167167
### Framework Integration
168-
You can easily integrate `web-events` with popular frameworks like React, Vue, or Svelte. Here's an example for React:
168+
You can easily integrate `@forge42/web-events` with popular frameworks like React, Vue, or Svelte. Here's an example for React:
169169

170170
```tsx
171171
import React, { useEffect } from "react"
172-
import { registerEvent } from "web-events"
172+
import { registerEvent } from "@forge42/web-events"
173173

174174
const UserLoggedIn = z.object({
175175
userId: z.string(),

packages/web-events/package.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,12 @@
11
{
2-
"name": "web-events",
3-
"version": "1.0.0",
2+
"name": "@forge42/web-events",
3+
"version": "0.0.0",
44
"description": "Minimal open-source stack to help you ship an open-source package in TS",
55
"main": "./dist/index.cjs",
66
"module": "./dist/index.js",
77
"types": "./dist/index.d.ts",
88
"type": "module",
9+
"private": false,
910
"exports": {
1011
"./package.json": "./package.json",
1112
".": {

pnpm-lock.yaml

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

test-apps/react-router-esm/app/routes/_index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11

22
import type { MetaFunction } from "react-router";
3-
import { registerReactEvent } from "web-events/react";
3+
import { registerReactEvent } from "@forge42/web-events/react";
44
import { z } from "zod";
55
export const meta: MetaFunction = () => {
66
return [{ title: "New Remix App" }, { name: "description", content: "Welcome to Remix!" }];

test-apps/react-router-esm/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
"react": "^19.1.0",
1717
"react-dom": "^19.1.0",
1818
"react-router": "^7.5.0",
19-
"web-events": "workspace:*",
19+
"@forge42/web-events": "workspace:*",
2020
"zod": "^3.25.64"
2121
},
2222
"devDependencies": {

0 commit comments

Comments
 (0)