@cedarjs/web 4.2.0 → 4.2.1-next.258

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cedarjs/web",
3
- "version": "4.2.0",
3
+ "version": "4.2.1-next.258",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "git+https://github.com/cedarjs/cedar.git",
@@ -83,9 +83,6 @@
83
83
  "require": "./dist/cjs/graphql.js",
84
84
  "import": "./dist/graphql.js"
85
85
  },
86
- "./webpackEntry": {
87
- "default": "./dist/entry/index.js"
88
- },
89
86
  "./toast": {
90
87
  "import": {
91
88
  "types": "./dist/toast/index.d.ts",
@@ -127,8 +124,7 @@
127
124
  "files": [
128
125
  "dist",
129
126
  "apollo",
130
- "toast",
131
- "src/entry"
127
+ "toast"
132
128
  ],
133
129
  "scripts": {
134
130
  "build": "tsx ./build.ts && yarn build:types",
@@ -144,7 +140,6 @@
144
140
  },
145
141
  "dependencies": {
146
142
  "@apollo/client": "3.14.1",
147
- "@cedarjs/auth": "4.2.0",
148
143
  "@cedarjs/server-store": "4.2.0",
149
144
  "@dr.pogodin/react-helmet": "2.0.4",
150
145
  "@whatwg-node/fetch": "0.10.13",
@@ -159,11 +154,12 @@
159
154
  },
160
155
  "devDependencies": {
161
156
  "@apollo/client-react-streaming": "0.12.3",
162
- "@arethetypeswrong/cli": "0.18.2",
163
- "@babel/cli": "7.28.6",
157
+ "@arethetypeswrong/cli": "0.18.4",
158
+ "@babel/cli": "7.29.7",
164
159
  "@babel/core": "^7.26.10",
165
- "@babel/plugin-transform-runtime": "7.29.0",
166
- "@babel/runtime": "7.29.2",
160
+ "@babel/plugin-transform-runtime": "7.29.7",
161
+ "@babel/runtime": "7.29.7",
162
+ "@cedarjs/auth": "4.2.0",
167
163
  "@cedarjs/framework-tools": "4.2.0",
168
164
  "@cedarjs/internal": "4.2.0",
169
165
  "@rollup/plugin-babel": "6.1.0",
@@ -174,15 +170,16 @@
174
170
  "@types/react-dom": "^18.2.19",
175
171
  "concurrently": "9.2.1",
176
172
  "nodemon": "3.1.14",
177
- "publint": "0.3.20",
173
+ "publint": "0.3.21",
178
174
  "react": "18.3.1",
179
175
  "react-dom": "18.3.1",
180
176
  "tstyche": "5.0.2",
181
- "tsx": "4.21.0",
177
+ "tsx": "4.22.4",
182
178
  "typescript": "5.9.3",
183
- "vitest": "3.2.4"
179
+ "vitest": "3.2.6"
184
180
  },
185
181
  "peerDependencies": {
182
+ "@cedarjs/auth": "4.2.0",
186
183
  "react": "18.3.1",
187
184
  "react-dom": "18.3.1"
188
185
  },
@@ -1,38 +0,0 @@
1
- "use strict";
2
- var __create = Object.create;
3
- var __defProp = Object.defineProperty;
4
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
5
- var __getOwnPropNames = Object.getOwnPropertyNames;
6
- var __getProtoOf = Object.getPrototypeOf;
7
- var __hasOwnProp = Object.prototype.hasOwnProperty;
8
- var __copyProps = (to, from, except, desc) => {
9
- if (from && typeof from === "object" || typeof from === "function") {
10
- for (let key of __getOwnPropNames(from))
11
- if (!__hasOwnProp.call(to, key) && key !== except)
12
- __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
13
- }
14
- return to;
15
- };
16
- var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
17
- // If the importer is in node compatibility mode or this is not an ESM
18
- // file that has been converted to a CommonJS file using a Babel-
19
- // compatible transform (i.e. "__esModule" has not been set), then set
20
- // "default" to the CommonJS "module.exports" for node compatibility.
21
- isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
22
- mod
23
- ));
24
- var import_client = require("react-dom/client");
25
- var import_redwood_app_root = __toESM(require("~redwood-app-root"), 1);
26
- var import_redwood_app_routes = __toESM(require("~redwood-app-routes"), 1);
27
- const redwoodAppElement = document.getElementById("redwood-app");
28
- if (redwoodAppElement.children?.length > 0) {
29
- (0, import_client.hydrateRoot)(
30
- redwoodAppElement,
31
- /* @__PURE__ */ React.createElement(import_redwood_app_root.default, null, /* @__PURE__ */ React.createElement(import_redwood_app_routes.default, null))
32
- );
33
- } else {
34
- const root = (0, import_client.createRoot)(redwoodAppElement);
35
- root.render(
36
- /* @__PURE__ */ React.createElement(import_redwood_app_root.default, null, /* @__PURE__ */ React.createElement(import_redwood_app_routes.default, null))
37
- );
38
- }
@@ -1 +0,0 @@
1
- export {}
@@ -1,15 +0,0 @@
1
- import { hydrateRoot, createRoot } from "react-dom/client";
2
- import App from "~redwood-app-root";
3
- import Routes from "~redwood-app-routes";
4
- const redwoodAppElement = document.getElementById("redwood-app");
5
- if (redwoodAppElement.children?.length > 0) {
6
- hydrateRoot(
7
- redwoodAppElement,
8
- /* @__PURE__ */ React.createElement(App, null, /* @__PURE__ */ React.createElement(Routes, null))
9
- );
10
- } else {
11
- const root = createRoot(redwoodAppElement);
12
- root.render(
13
- /* @__PURE__ */ React.createElement(App, null, /* @__PURE__ */ React.createElement(Routes, null))
14
- );
15
- }
@@ -1,27 +0,0 @@
1
- import { hydrateRoot, createRoot } from 'react-dom/client'
2
-
3
- import App from '~redwood-app-root'
4
- import Routes from '~redwood-app-routes'
5
- /**
6
- * When `#redwood-app` isn't empty then it's very likely that you're using
7
- * prerendering. So React attaches event listeners to the existing markup
8
- * rather than replacing it.
9
- * https://react.dev/reference/react-dom/client/hydrateRoot
10
- */
11
- const redwoodAppElement = document.getElementById('redwood-app')
12
-
13
- if (redwoodAppElement.children?.length > 0) {
14
- hydrateRoot(
15
- redwoodAppElement,
16
- <App>
17
- <Routes />
18
- </App>,
19
- )
20
- } else {
21
- const root = createRoot(redwoodAppElement)
22
- root.render(
23
- <App>
24
- <Routes />
25
- </App>,
26
- )
27
- }