Skip to content

Commit 5c31503

Browse files
committed
@josepot/rxjs-state -> @rxstate/core
1 parent 2452f12 commit 5c31503

File tree

9 files changed

+15
-20
lines changed

9 files changed

+15
-20
lines changed

packages/core/cjsBuild.js

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -22,12 +22,7 @@ require("esbuild")
2222
: "./dist/core.cjs.development.js",
2323
target: "es2015",
2424
minify: isProd,
25-
external: [
26-
"react",
27-
"rxjs",
28-
"@josepot/rxjs-state",
29-
"use-sync-external-store",
30-
],
25+
external: ["react", "rxjs", "@rxstate/core", "use-sync-external-store"],
3126
format: "cjs",
3227
sourcemap: true,
3328
plugins: [fixCjsPlugin],

packages/core/package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,8 @@
2525
],
2626
"scripts": {
2727
"build": "yarn build:ts && yarn build:esm2017 && yarn build:esm2019 && yarn build:cjs:dev && yarn build:cjs:prod",
28-
"build:esm2019": "esbuild src/index.tsx --bundle --outfile=./dist/core.es2019.mjs --target=es2019 --external:react --external:rxjs --external:@josepot/rxjs-state --external:use-sync-external-store --format=esm --sourcemap",
29-
"build:esm2017": "esbuild src/index.tsx --bundle --outfile=./dist/core.es2017.js --target=es2017 --external:react --external:rxjs --external:@josepot/rxjs-state --external:use-sync-external-store --format=esm --sourcemap",
28+
"build:esm2019": "esbuild src/index.tsx --bundle --outfile=./dist/core.es2019.mjs --target=es2019 --external:react --external:rxjs --external:@rxstate/core --external:use-sync-external-store --format=esm --sourcemap",
29+
"build:esm2017": "esbuild src/index.tsx --bundle --outfile=./dist/core.es2017.js --target=es2017 --external:react --external:rxjs --external:@rxstate/core --external:use-sync-external-store --format=esm --sourcemap",
3030
"build:cjs:dev": "node cjsBuild.js",
3131
"build:cjs:prod": "node cjsBuild.js --prod",
3232
"build:ts": "tsc -p ./tsconfig-build.json --outDir ./dist --skipLibCheck --emitDeclarationOnly",
@@ -50,7 +50,7 @@
5050
"Victor Oliva (https://github.com/voliva)"
5151
],
5252
"dependencies": {
53-
"@josepot/rxjs-state": "^0.1.0",
53+
"@rxstate/core": "^0.0.1",
5454
"use-sync-external-store": "^1.0.0"
5555
},
5656
"devDependencies": {

packages/core/src/Subscribe.test.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { state } from "@josepot/rxjs-state"
1+
import { state } from "@rxstate/core"
22
import { render, screen } from "@testing-library/react"
33
import React, { StrictMode, useState } from "react"
44
import { defer, EMPTY, Observable, of, startWith } from "rxjs"

packages/core/src/bind/connectFactoryObservable.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import { Observable } from "rxjs"
22
import { SUSPENSE } from "../SUSPENSE"
33
import { EMPTY_VALUE } from "../internal/empty-value"
4-
import { state, StateObservable } from "@josepot/rxjs-state"
4+
import { state, StateObservable } from "@rxstate/core"
55
import { useStateObservable } from "../useStateObservable"
66

77
/**

packages/core/src/bind/connectObservable.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import { EMPTY_VALUE } from "../internal/empty-value"
22
import { Observable } from "rxjs"
33
import { useStateObservable } from "../useStateObservable"
4-
import { state } from "@josepot/rxjs-state"
4+
import { state } from "@rxstate/core"
55

66
/**
77
* Accepts: An Observable.

packages/core/src/bind/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import { SUSPENSE } from "../SUSPENSE"
33
import connectFactoryObservable from "./connectFactoryObservable"
44
import connectObservable from "./connectObservable"
55
import { EMPTY_VALUE } from "../internal/empty-value"
6-
import { StateObservable, DefaultedStateObservable } from "@josepot/rxjs-state"
6+
import { StateObservable, DefaultedStateObservable } from "@rxstate/core"
77

88
/**
99
* Binds an observable to React

packages/core/src/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
export * from "@josepot/rxjs-state"
1+
export * from "@rxstate/core"
22
export { shareLatest } from "./shareLatest"
33
export { useStateObservable } from "./useStateObservable"
44
export { bind } from "./bind"

packages/core/src/useStateObservable.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { useRef, useState } from "react"
22
import { SUSPENSE, filterOutSuspense } from "./SUSPENSE"
3-
import { DefaultedStateObservable, StateObservable } from "@josepot/rxjs-state"
3+
import { DefaultedStateObservable, StateObservable } from "@rxstate/core"
44
import { EMPTY_VALUE } from "./internal/empty-value"
55
import useSyncExternalStore from "./internal/useSyncExternalStore"
66
import { useSubscription } from "./Subscribe"

yarn.lock

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1133,11 +1133,6 @@
11331133
"@types/yargs" "^16.0.0"
11341134
chalk "^4.0.0"
11351135

1136-
"@josepot/rxjs-state@^0.1.0":
1137-
version "0.1.0"
1138-
resolved "https://registry.yarnpkg.com/@josepot/rxjs-state/-/rxjs-state-0.1.0.tgz#a7ab4e8954d03cd381db12d1227cdbfc3139a1a8"
1139-
integrity sha512-GwzRTntu+zS36qJXNz5awkTKWaSdAnnSljVe3iAkPcdAOdUb2U7WC6F6FgNWsQNLuNy5UWWZgCsPxOpYeubQoA==
1140-
11411136
"@jridgewell/resolve-uri@^3.0.3":
11421137
version "3.0.5"
11431138
resolved "https://registry.yarnpkg.com/@jridgewell/resolve-uri/-/resolve-uri-3.0.5.tgz#68eb521368db76d040a6315cdb24bf2483037b9c"
@@ -1156,6 +1151,11 @@
11561151
"@jridgewell/resolve-uri" "^3.0.3"
11571152
"@jridgewell/sourcemap-codec" "^1.4.10"
11581153

1154+
"@rxstate/core@^0.0.1":
1155+
version "0.0.1"
1156+
resolved "https://registry.yarnpkg.com/@rxstate/core/-/core-0.0.1.tgz#899c8c863b1c251368cde9b23bcc79a10da87a70"
1157+
integrity sha512-be8446G5eapl6X8IAuYvvYY78CnyuXX7pASAYG2Ww95hCbqfNLSYXqknvWeUJ4ovO63l5xdM29ct0uUysKDyog==
1158+
11591159
"@sinonjs/commons@^1.7.0":
11601160
version "1.8.3"
11611161
resolved "https://registry.yarnpkg.com/@sinonjs/commons/-/commons-1.8.3.tgz#3802ddd21a50a949b6721ddd72da36e67e7f1b2d"

0 commit comments

Comments
 (0)