Skip to content

Commit edb2ca5

Browse files
feat: rename monorepo @Focus -> @focus-js as per NPM organization
1 parent 27c7a96 commit edb2ca5

File tree

19 files changed

+41
-41
lines changed

19 files changed

+41
-41
lines changed

README.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -21,20 +21,20 @@ A lens-based state manager. Library/Framework agnostic. Connector for React.
2121
## Installation
2222

2323
```
24-
npm i -S @focus/react-connect
24+
npm i -S @focus-js/react-connect
2525
```
2626

2727
or
2828

2929
```
30-
yarn add @focus/react-connect
30+
yarn add @focus-js/react-connect
3131
```
3232

3333
## Getting started (React)
3434

3535
```typescript
3636
import React from 'react';
37-
import { connect, createLens } from '@focus/react-connect';
37+
import { connect, createLens } from '@focus-js/react-connect';
3838

3939
type ApplicationState = {
4040
a: number;
@@ -347,8 +347,8 @@ From there, you immediately get:
347347

348348
The Focus ecosystem is split into 3 packages, each with a distinct responsibility:
349349

350-
- `@focus/core` – Implements the core lens abstractions. This is the heart of Focus: generic, composable lenses and reducer lifting. It is framework-agnostic and can be used in any TypeScript or JavaScript project.
351-
- `@focus/store` – Implements the state store itself. It handles storing the application state, applying reducers, and notifying subscribers. It does not depend on any view library, making it usable in Node, React, or other environments.
352-
- `@focus/react-connect` – Provides a React connector for the store, via hooks. Other view-library connectors are planned for the future.
350+
- `@focus-js/core` – Implements the core lens abstractions. This is the heart of Focus: generic, composable lenses and reducer lifting. It is framework-agnostic and can be used in any TypeScript or JavaScript project.
351+
- `@focus-js/store` – Implements the state store itself. It handles storing the application state, applying reducers, and notifying subscribers. It does not depend on any view library, making it usable in Node, React, or other environments.
352+
- `@focus-js/react-connect` – Provides a React connector for the store, via hooks. Other view-library connectors are planned for the future.
353353

354354
This modular approach allows you to pick only the pieces you need: use lenses alone, combine them with the store, or integrate seamlessly with React.

package-lock.json

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

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"name": "@focus/source",
2+
"name": "@focus-js/source",
33
"version": "0.0.0",
44
"license": "MIT",
55
"scripts": {},

packages/core/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
{
2-
"name": "@focus/core",
2+
"name": "@focus-js/core",
33
"version": "0.0.1",
44
"dependencies": {
55
"tslib": "^2.3.0"
66
},
77
"type": "commonjs",
88
"main": "./dist/index.js",
99
"typings": "./dist/index.d.ts",
10-
"private": true,
10+
"private": false,
1111
"nx": {
1212
"sourceRoot": "packages/core/src",
1313
"projectType": "library",

packages/demo/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"name": "@focus/demo",
2+
"name": "@focus-js/demo",
33
"version": "0.0.1",
44
"private": true,
55
"nx": {

packages/demo/src/Demo/A/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import React, { useEffect } from 'react';
22
import Code from '../utils/Code';
33
import Button from '../utils/Button';
44
import H2 from '../utils/H2';
5-
import { createLens } from '@focus/react-connect';
5+
import { createLens } from '@focus-js/react-connect';
66
import { ApplicationState, useFocusedState } from '../../main';
77

88
const lens = createLens<ApplicationState, number>({

packages/demo/src/Demo/B/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import React, { useEffect } from 'react';
22
import Code from '../utils/Code';
33
import Button from '../utils/Button';
44
import H2 from '../utils/H2';
5-
import { createLens } from '@focus/react-connect';
5+
import { createLens } from '@focus-js/react-connect';
66
import { ApplicationState, useFocusedState } from '../../main';
77

88
const lens = createLens<ApplicationState, number>({

packages/demo/src/Demo/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import H1 from './utils/H1';
66

77
const Component: React.FunctionComponent = () => (
88
<div className="m-10">
9-
<H1>@focus/react-connect</H1>
9+
<H1>@focus-js/react-connect</H1>
1010
<div className="grid grid-rows-2 grid-flow-col gap-6">
1111
<GlobalState />
1212
<A />

packages/demo/src/main.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import React from 'react';
22
import ReactDOM from 'react-dom/client';
33
import Demo from './Demo';
4-
import { connect } from '@focus/react-connect';
4+
import { connect } from '@focus-js/react-connect';
55
import './styles.css';
66

77
export type ApplicationState = {

packages/react-connect/package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
{
2-
"name": "@focus/react-connect",
2+
"name": "@focus-js/react-connect",
33
"version": "0.0.1",
44
"dependencies": {
55
"react": "^19.0.0",
66
"tslib": "^2.3.0",
7-
"@focus/core": "0.0.1",
8-
"@focus/store": "0.0.1"
7+
"@focus-js/core": "0.0.1",
8+
"@focus-js/store": "0.0.1"
99
},
1010
"type": "commonjs",
1111
"main": "./dist/index.js",

0 commit comments

Comments
 (0)