renovate[bot]
76e8cbe46b
Update dependency react-router to v7.5.0 ( #22819 )
...
This PR contains the following updates:
| Package | Change | Age | Adoption | Passing | Confidence |
|---|---|---|---|---|---|
| [react-router](https://redirect.github.com/remix-run/react-router )
([source](https://redirect.github.com/remix-run/react-router/tree/HEAD/packages/react-router ))
| [`7.4.1` ->
`7.5.0`](https://renovatebot.com/diffs/npm/react-router/7.4.1/7.5.0 ) |
[](https://docs.renovatebot.com/merge-confidence/ )
|
[](https://docs.renovatebot.com/merge-confidence/ )
|
[](https://docs.renovatebot.com/merge-confidence/ )
|
[](https://docs.renovatebot.com/merge-confidence/ )
|
---
### Release Notes
<details>
<summary>remix-run/react-router (react-router)</summary>
###
[`v7.5.0`](https://redirect.github.com/remix-run/react-router/blob/HEAD/packages/react-router/CHANGELOG.md#750 )
##### Minor Changes
- Add granular object-based API for `route.lazy` to support lazy loading
of individual route properties, for example:
([#​13294](https://redirect.github.com/remix-run/react-router/pull/13294 ))
```ts
createBrowserRouter([
{
path: "/show/:showId",
lazy: {
loader: async () => (await import("./show.loader.js")).loader,
action: async () => (await import("./show.action.js")).action,
Component: async () => (await import("./show.component.js")).Component,
},
},
]);
```
**Breaking change for `route.unstable_lazyMiddleware` consumers**
The `route.unstable_lazyMiddleware` property is no longer supported. If
you want to lazily load middleware, you must use the new object-based
`route.lazy` API with `route.lazy.unstable_middleware`, for example:
```ts
createBrowserRouter([
{
path: "/show/:showId",
lazy: {
unstable_middleware: async () =>
(await import("./show.middleware.js")).middleware,
// etc.
},
},
]);
```
##### Patch Changes
- Introduce `unstable_subResourceIntegrity` future flag that enables
generation of an importmap with integrity for the scripts that will be
loaded by the browser.
([#​13163](https://redirect.github.com/remix-run/react-router/pull/13163 ))
</details>
---
### Configuration
📅 **Schedule**: Branch creation - At any time (no schedule defined),
Automerge - "* 17-23 * * 5,* * * * 0,6,* 0-12 * * 1" (UTC).
🚦 **Automerge**: Enabled.
♻ **Rebasing**: Never, or you tick the rebase/retry checkbox.
🔕 **Ignore**: Close this PR and you won't be reminded about this update
again.
---
- [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check
this box
---
This PR was generated by [Mend Renovate](https://mend.io/renovate/ ).
View the [repository job
log](https://developer.mend.io/github/TryGhost/Ghost ).
<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzOS4yMjcuMyIsInVwZGF0ZWRJblZlciI6IjM5LjIyNy4zIiwidGFyZ2V0QnJhbmNoIjoibWFpbiIsImxhYmVscyI6W119-->
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-04-04 19:10:11 +00:00
renovate[bot]
addcbf181d
Update sentry-javascript monorepo to v7.120.3 ( #21610 )
...
This PR contains the following updates:
| Package | Change | Age | Adoption | Passing | Confidence |
|---|---|---|---|---|---|
|
[@sentry/ember](https://redirect.github.com/getsentry/sentry-javascript/tree/master/packages/ember )
([source](https://redirect.github.com/getsentry/sentry-javascript )) |
[`7.119.2` ->
`7.120.3`](https://renovatebot.com/diffs/npm/@sentry%2fember/7.119.2/7.120.3 )
|
[](https://docs.renovatebot.com/merge-confidence/ )
|
[](https://docs.renovatebot.com/merge-confidence/ )
|
[](https://docs.renovatebot.com/merge-confidence/ )
|
[](https://docs.renovatebot.com/merge-confidence/ )
|
|
[@sentry/node](https://redirect.github.com/getsentry/sentry-javascript/tree/master/packages/node )
([source](https://redirect.github.com/getsentry/sentry-javascript )) |
[`7.119.2` ->
`7.120.3`](https://renovatebot.com/diffs/npm/@sentry%2fnode/7.119.2/7.120.3 )
|
[](https://docs.renovatebot.com/merge-confidence/ )
|
[](https://docs.renovatebot.com/merge-confidence/ )
|
[](https://docs.renovatebot.com/merge-confidence/ )
|
[](https://docs.renovatebot.com/merge-confidence/ )
|
|
[@sentry/react](https://redirect.github.com/getsentry/sentry-javascript/tree/master/packages/react )
([source](https://redirect.github.com/getsentry/sentry-javascript )) |
[`7.119.2` ->
`7.120.3`](https://renovatebot.com/diffs/npm/@sentry%2freact/7.119.2/7.120.3 )
|
[](https://docs.renovatebot.com/merge-confidence/ )
|
[](https://docs.renovatebot.com/merge-confidence/ )
|
[](https://docs.renovatebot.com/merge-confidence/ )
|
[](https://docs.renovatebot.com/merge-confidence/ )
|
---
### Release Notes
<details>
<summary>getsentry/sentry-javascript (@​sentry/ember)</summary>
###
[`v7.120.3`](https://redirect.github.com/getsentry/sentry-javascript/releases/tag/7.120.3 )
[Compare
Source](https://redirect.github.com/getsentry/sentry-javascript/compare/7.120.2...7.120.3 )
- fix(v7/publish): Ensure discontinued packages are published with
`latest` tag
([#​14926](https://redirect.github.com/getsentry/sentry-javascript/issues/14926 ))
##### Bundle size 📦
| Path | Size |
|
----------------------------------------------------------------------------------
| ----------------- |
| [@​sentry/browser](https://redirect.github.com/sentry/browser )
(incl. Tracing, Replay, Feedback) - Webpack (gzipped) | 80.96 KB |
| [@​sentry/browser](https://redirect.github.com/sentry/browser )
(incl. Tracing, Replay) - Webpack (gzipped) | 71.9 KB |
| [@​sentry/browser](https://redirect.github.com/sentry/browser )
(incl. Tracing, Replay with Canvas) - Webpack (gzipped) | 76.15 KB |
| [@​sentry/browser](https://redirect.github.com/sentry/browser )
(incl. Tracing, Replay) - Webpack with treeshaking flags (gzipped) |
65.53 KB |
| [@​sentry/browser](https://redirect.github.com/sentry/browser )
(incl. Tracing) - Webpack (gzipped) | 35.78 KB |
| [@​sentry/browser](https://redirect.github.com/sentry/browser )
(incl. browserTracingIntegration) - Webpack (gzipped) | 35.67 KB |
| [@​sentry/browser](https://redirect.github.com/sentry/browser )
(incl. Feedback) - Webpack (gzipped) | 31.71 KB |
| [@​sentry/browser](https://redirect.github.com/sentry/browser )
(incl. sendFeedback) - Webpack (gzipped) | 31.73 KB |
| [@​sentry/browser](https://redirect.github.com/sentry/browser ) -
Webpack (gzipped) | 22.92 KB |
| [@​sentry/browser](https://redirect.github.com/sentry/browser )
(incl. Tracing, Replay, Feedback) - ES6 CDN Bundle (gzipped) | 79.18 KB
|
| [@​sentry/browser](https://redirect.github.com/sentry/browser )
(incl. Tracing, Replay) - ES6 CDN Bundle (gzipped) | 70.5 KB |
| [@​sentry/browser](https://redirect.github.com/sentry/browser )
(incl. Tracing) - ES6 CDN Bundle (gzipped) | 36.17 KB |
| [@​sentry/browser](https://redirect.github.com/sentry/browser ) -
ES6 CDN Bundle (gzipped) | 25.42 KB |
| [@​sentry/browser](https://redirect.github.com/sentry/browser )
(incl. Tracing, Replay) - ES6 CDN Bundle (minified & uncompressed) |
221.94 KB |
| [@​sentry/browser](https://redirect.github.com/sentry/browser )
(incl. Tracing) - ES6 CDN Bundle (minified & uncompressed) | 109.54 KB |
| [@​sentry/browser](https://redirect.github.com/sentry/browser ) -
ES6 CDN Bundle (minified & uncompressed) | 76.26 KB |
| [@​sentry/browser](https://redirect.github.com/sentry/browser )
(incl. Tracing) - ES5 CDN Bundle (gzipped) | 39.45 KB |
| [@​sentry/react](https://redirect.github.com/sentry/react )
(incl. Tracing, Replay) - Webpack (gzipped) | 72.4 KB |
| [@​sentry/react](https://redirect.github.com/sentry/react ) -
Webpack (gzipped) | 22.95 KB |
| [@​sentry/nextjs](https://redirect.github.com/sentry/nextjs )
Client (incl. Tracing, Replay) - Webpack (gzipped) | 90.16 KB |
| [@​sentry/nextjs](https://redirect.github.com/sentry/nextjs )
Client - Webpack (gzipped) | 54.28 KB |
|
[@​sentry-internal/feedback](https://redirect.github.com/sentry-internal/feedback )
- Webpack (gzipped) | 17.34 KB |
###
[`v7.120.2`](https://redirect.github.com/getsentry/sentry-javascript/releases/tag/7.120.2 )
[Compare
Source](https://redirect.github.com/getsentry/sentry-javascript/compare/7.120.1...7.120.2 )
- fix(tracing-internal): Fix case when lrp keys offset is 0
([#​14615](https://redirect.github.com/getsentry/sentry-javascript/issues/14615 ))
Work in this release contributed by
[@​LubomirIgonda1](https://redirect.github.com/LubomirIgonda1 ).
Thank you for your contribution!
#### Bundle size 📦
| Path | Size |
|
----------------------------------------------------------------------------------
| ----------------- |
| [@​sentry/browser](https://redirect.github.com/sentry/browser )
(incl. Tracing, Replay, Feedback) - Webpack (gzipped) | 80.96 KB |
| [@​sentry/browser](https://redirect.github.com/sentry/browser )
(incl. Tracing, Replay) - Webpack (gzipped) | 71.9 KB |
| [@​sentry/browser](https://redirect.github.com/sentry/browser )
(incl. Tracing, Replay with Canvas) - Webpack (gzipped) | 76.15 KB |
| [@​sentry/browser](https://redirect.github.com/sentry/browser )
(incl. Tracing, Replay) - Webpack with treeshaking flags (gzipped) |
65.52 KB |
| [@​sentry/browser](https://redirect.github.com/sentry/browser )
(incl. Tracing) - Webpack (gzipped) | 35.78 KB |
| [@​sentry/browser](https://redirect.github.com/sentry/browser )
(incl. browserTracingIntegration) - Webpack (gzipped) | 35.67 KB |
| [@​sentry/browser](https://redirect.github.com/sentry/browser )
(incl. Feedback) - Webpack (gzipped) | 31.71 KB |
| [@​sentry/browser](https://redirect.github.com/sentry/browser )
(incl. sendFeedback) - Webpack (gzipped) | 31.73 KB |
| [@​sentry/browser](https://redirect.github.com/sentry/browser ) -
Webpack (gzipped) | 22.92 KB |
| [@​sentry/browser](https://redirect.github.com/sentry/browser )
(incl. Tracing, Replay, Feedback) - ES6 CDN Bundle (gzipped) | 79.18 KB
|
| [@​sentry/browser](https://redirect.github.com/sentry/browser )
(incl. Tracing, Replay) - ES6 CDN Bundle (gzipped) | 70.5 KB |
| [@​sentry/browser](https://redirect.github.com/sentry/browser )
(incl. Tracing) - ES6 CDN Bundle (gzipped) | 36.17 KB |
| [@​sentry/browser](https://redirect.github.com/sentry/browser ) -
ES6 CDN Bundle (gzipped) | 25.42 KB |
| [@​sentry/browser](https://redirect.github.com/sentry/browser )
(incl. Tracing, Replay) - ES6 CDN Bundle (minified & uncompressed) |
221.94 KB |
| [@​sentry/browser](https://redirect.github.com/sentry/browser )
(incl. Tracing) - ES6 CDN Bundle (minified & uncompressed) | 109.54 KB |
| [@​sentry/browser](https://redirect.github.com/sentry/browser ) -
ES6 CDN Bundle (minified & uncompressed) | 76.26 KB |
| [@​sentry/browser](https://redirect.github.com/sentry/browser )
(incl. Tracing) - ES5 CDN Bundle (gzipped) | 39.45 KB |
| [@​sentry/react](https://redirect.github.com/sentry/react )
(incl. Tracing, Replay) - Webpack (gzipped) | 72.4 KB |
| [@​sentry/react](https://redirect.github.com/sentry/react ) -
Webpack (gzipped) | 22.95 KB |
| [@​sentry/nextjs](https://redirect.github.com/sentry/nextjs )
Client (incl. Tracing, Replay) - Webpack (gzipped) | 90.16 KB |
| [@​sentry/nextjs](https://redirect.github.com/sentry/nextjs )
Client - Webpack (gzipped) | 54.28 KB |
|
[@​sentry-internal/feedback](https://redirect.github.com/sentry-internal/feedback )
- Webpack (gzipped) | 17.34 KB |
###
[`v7.120.1`](https://redirect.github.com/getsentry/sentry-javascript/releases/tag/7.120.1 )
[Compare
Source](https://redirect.github.com/getsentry/sentry-javascript/compare/7.120.0...7.120.1 )
- fix(v7/cdn): Ensure `_sentryModuleMetadata` is not mangled
([#​14357](https://redirect.github.com/getsentry/sentry-javascript/issues/14357 ))
Work in this release contributed by
[@​gilisho](https://redirect.github.com/gilisho ). Thank you for
your contribution!
#### Bundle size 📦
| Path | Size |
|
----------------------------------------------------------------------------------
| ----------------- |
| [@​sentry/browser](https://redirect.github.com/sentry/browser )
(incl. Tracing, Replay, Feedback) - Webpack (gzipped) | 80.96 KB |
| [@​sentry/browser](https://redirect.github.com/sentry/browser )
(incl. Tracing, Replay) - Webpack (gzipped) | 71.9 KB |
| [@​sentry/browser](https://redirect.github.com/sentry/browser )
(incl. Tracing, Replay with Canvas) - Webpack (gzipped) | 76.14 KB |
| [@​sentry/browser](https://redirect.github.com/sentry/browser )
(incl. Tracing, Replay) - Webpack with treeshaking flags (gzipped) |
65.52 KB |
| [@​sentry/browser](https://redirect.github.com/sentry/browser )
(incl. Tracing) - Webpack (gzipped) | 35.78 KB |
| [@​sentry/browser](https://redirect.github.com/sentry/browser )
(incl. browserTracingIntegration) - Webpack (gzipped) | 35.67 KB |
| [@​sentry/browser](https://redirect.github.com/sentry/browser )
(incl. Feedback) - Webpack (gzipped) | 31.71 KB |
| [@​sentry/browser](https://redirect.github.com/sentry/browser )
(incl. sendFeedback) - Webpack (gzipped) | 31.73 KB |
| [@​sentry/browser](https://redirect.github.com/sentry/browser ) -
Webpack (gzipped) | 22.92 KB |
| [@​sentry/browser](https://redirect.github.com/sentry/browser )
(incl. Tracing, Replay, Feedback) - ES6 CDN Bundle (gzipped) | 79.18 KB
|
| [@​sentry/browser](https://redirect.github.com/sentry/browser )
(incl. Tracing, Replay) - ES6 CDN Bundle (gzipped) | 70.5 KB |
| [@​sentry/browser](https://redirect.github.com/sentry/browser )
(incl. Tracing) - ES6 CDN Bundle (gzipped) | 36.17 KB |
| [@​sentry/browser](https://redirect.github.com/sentry/browser ) -
ES6 CDN Bundle (gzipped) | 25.42 KB |
| [@​sentry/browser](https://redirect.github.com/sentry/browser )
(incl. Tracing, Replay) - ES6 CDN Bundle (minified & uncompressed) |
221.94 KB |
| [@​sentry/browser](https://redirect.github.com/sentry/browser )
(incl. Tracing) - ES6 CDN Bundle (minified & uncompressed) | 109.54 KB |
| [@​sentry/browser](https://redirect.github.com/sentry/browser ) -
ES6 CDN Bundle (minified & uncompressed) | 76.26 KB |
| [@​sentry/browser](https://redirect.github.com/sentry/browser )
(incl. Tracing) - ES5 CDN Bundle (gzipped) | 39.45 KB |
| [@​sentry/react](https://redirect.github.com/sentry/react )
(incl. Tracing, Replay) - Webpack (gzipped) | 72.4 KB |
| [@​sentry/react](https://redirect.github.com/sentry/react ) -
Webpack (gzipped) | 22.95 KB |
| [@​sentry/nextjs](https://redirect.github.com/sentry/nextjs )
Client (incl. Tracing, Replay) - Webpack (gzipped) | 90.16 KB |
| [@​sentry/nextjs](https://redirect.github.com/sentry/nextjs )
Client - Webpack (gzipped) | 54.28 KB |
|
[@​sentry-internal/feedback](https://redirect.github.com/sentry-internal/feedback )
- Webpack (gzipped) | 17.34 KB |
###
[`v7.120.0`](https://redirect.github.com/getsentry/sentry-javascript/releases/tag/7.120.0 )
[Compare
Source](https://redirect.github.com/getsentry/sentry-javascript/compare/7.119.2...7.120.0 )
- feat(v7/browser): Add moduleMetadataIntegration lazy loading support
([#​13822](https://redirect.github.com/getsentry/sentry-javascript/issues/13822 ))
Work in this release contributed by
[@​gilisho](https://redirect.github.com/gilisho ). Thank you for
your contribution!
</details>
---
### Configuration
📅 **Schedule**: Branch creation - At any time (no schedule defined),
Automerge - At any time (no schedule defined).
🚦 **Automerge**: Enabled.
♻ **Rebasing**: Never, or you tick the rebase/retry checkbox.
🔕 **Ignore**: Close this PR and you won't be reminded about these
updates again.
---
- [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check
this box
---
This PR was generated by [Mend Renovate](https://mend.io/renovate/ ).
View the [repository job
log](https://developer.mend.io/github/TryGhost/Ghost ).
<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzOS4xMS41IiwidXBkYXRlZEluVmVyIjoiMzkuMjI3LjMiLCJ0YXJnZXRCcmFuY2giOiJtYWluIiwibGFiZWxzIjpbXX0=-->
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-04-02 09:13:46 +00:00
Peter Zimon
9a9dfb152b
Added route based app structure in ActivityPub ( #22711 )
...
ref AP-1006
Up until now the ActivityPub app has had a few main routes: inbox, feed,
profile, explore, notifications. This is fine for a starter, however it
limits the overall usability by not being able to refresh or refer to
(and eventually share) dedicated posts, profiles and other specific
pages in ActivityPub. This PR is restructuring the app with the
following details:
- Adds route to all detail views such as `inbox/:postId`, `feed/:postId`
and `profile/:handle`
- Completely removes the drawer in favor of using the middle area for
posts, replies and profiles
- Restructures components for better maintainability
- Refines related visual and usability details
2025-04-01 15:12:03 +02:00
renovate[bot]
7f9c0da1f8
Update dependency react-router to v7.4.1 ( #22565 )
...
This PR contains the following updates:
| Package | Change | Age | Adoption | Passing | Confidence |
|---|---|---|---|---|---|
| [react-router](https://redirect.github.com/remix-run/react-router )
([source](https://redirect.github.com/remix-run/react-router/tree/HEAD/packages/react-router ))
| [`7.3.0` ->
`7.4.1`](https://renovatebot.com/diffs/npm/react-router/7.3.0/7.4.1 ) |
[](https://docs.renovatebot.com/merge-confidence/ )
|
[](https://docs.renovatebot.com/merge-confidence/ )
|
[](https://docs.renovatebot.com/merge-confidence/ )
|
[](https://docs.renovatebot.com/merge-confidence/ )
|
---
### Release Notes
<details>
<summary>remix-run/react-router (react-router)</summary>
###
[`v7.4.1`](https://redirect.github.com/remix-run/react-router/blob/HEAD/packages/react-router/CHANGELOG.md#741 )
[Compare
Source](https://redirect.github.com/remix-run/react-router/compare/react-router@7.4.0...react-router@7.4.1 )
##### Patch Changes
- Fix types on `unstable_MiddlewareFunction` to avoid type errors when a
middleware doesn't return a value
([#​13311](https://redirect.github.com/remix-run/react-router/pull/13311 ))
- Dedupe calls to `route.lazy` functions
([#​13260](https://redirect.github.com/remix-run/react-router/pull/13260 ))
- Add support for `route.unstable_lazyMiddleware` function to allow lazy
loading of middleware logic.
([#​13210](https://redirect.github.com/remix-run/react-router/pull/13210 ))
**Breaking change for `unstable_middleware` consumers**
The `route.unstable_middleware` property is no longer supported in the
return value from `route.lazy`. If you want to lazily load middleware,
you must use `route.unstable_lazyMiddleware`.
###
[`v7.4.0`](https://redirect.github.com/remix-run/react-router/blob/HEAD/packages/react-router/CHANGELOG.md#740 )
[Compare
Source](https://redirect.github.com/remix-run/react-router/compare/react-router@7.3.0...react-router@7.4.0 )
##### Patch Changes
- Fix root loader data on initial load redirects in SPA mode
([#​13222](https://redirect.github.com/remix-run/react-router/pull/13222 ))
- Load ancestor pathless/index routes in lazy route discovery for
upwards non-eager-discoery routing
([#​13203](https://redirect.github.com/remix-run/react-router/pull/13203 ))
- Fix `shouldRevalidate` behavior for `clientLoader`-only routes in
`ssr:true` apps
([#​13221](https://redirect.github.com/remix-run/react-router/pull/13221 ))
- UNSTABLE: Fix `RequestHandler` `loadContext` parameter type when
middleware is enabled
([#​13204](https://redirect.github.com/remix-run/react-router/pull/13204 ))
- UNSTABLE: Update `Route.unstable_MiddlewareFunction` to have a return
value of `Response | undefined` instead of `Response | void` becaue you
should not return anything if you aren't returning the `Response`
([#​13199](https://redirect.github.com/remix-run/react-router/pull/13199 ))
- UNSTABLE(BREAKING): If a middleware throws an error, ensure we only
bubble the error itself via `next()` and are no longer leaking the
`MiddlewareError` implementation detail
([#​13180](https://redirect.github.com/remix-run/react-router/pull/13180 ))
</details>
---
### Configuration
📅 **Schedule**: Branch creation - At any time (no schedule defined),
Automerge - At any time (no schedule defined).
🚦 **Automerge**: Enabled.
♻ **Rebasing**: Never, or you tick the rebase/retry checkbox.
🔕 **Ignore**: Close this PR and you won't be reminded about this update
again.
---
- [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check
this box
---
This PR was generated by [Mend Renovate](https://mend.io/renovate/ ).
View the [repository job
log](https://developer.mend.io/github/TryGhost/Ghost ).
<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzOS4yMDcuMSIsInVwZGF0ZWRJblZlciI6IjM5LjIwNy4xIiwidGFyZ2V0QnJhbmNoIjoibWFpbiIsImxhYmVscyI6W119-->
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-03-31 20:59:12 +00:00
Daniel Lockyer
de17e5546e
Updated TypeScript to v5.8.2
...
- this commit updates TypeScript to the latest version so we can
continue to get the latest and greatest improvements
- also fixes some minor TS failures arising because of new checks
2025-03-31 15:16:52 +02:00
renovate[bot]
7a2707e9e1
Update dependency eslint-plugin-react-hooks to v4.6.2 ( #22689 )
...
This PR contains the following updates:
| Package | Change | Age | Adoption | Passing | Confidence |
|---|---|---|---|---|---|
| [eslint-plugin-react-hooks](https://react.dev/ )
([source](https://redirect.github.com/facebook/react/tree/HEAD/packages/eslint-plugin-react-hooks ))
| [`4.6.0` ->
`4.6.2`](https://renovatebot.com/diffs/npm/eslint-plugin-react-hooks/4.6.0/4.6.2 )
|
[](https://docs.renovatebot.com/merge-confidence/ )
|
[](https://docs.renovatebot.com/merge-confidence/ )
|
[](https://docs.renovatebot.com/merge-confidence/ )
|
[](https://docs.renovatebot.com/merge-confidence/ )
|
---
### Release Notes
<details>
<summary>facebook/react (eslint-plugin-react-hooks)</summary>
###
[`v4.6.2`](a87edf62d7...a87edf62d7
)
[Compare
Source](a87edf62d7...a87edf62d7
)
###
[`v4.6.1`](be229c5655...a87edf62d7
)
[Compare
Source](be229c5655...a87edf62d7
)
</details>
---
### Configuration
📅 **Schedule**: Branch creation - At any time (no schedule defined),
Automerge - At any time (no schedule defined).
🚦 **Automerge**: Enabled.
♻ **Rebasing**: Never, or you tick the rebase/retry checkbox.
🔕 **Ignore**: Close this PR and you won't be reminded about this update
again.
---
- [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check
this box
---
This PR was generated by [Mend Renovate](https://mend.io/renovate/ ).
View the [repository job
log](https://developer.mend.io/github/TryGhost/Ghost ).
<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzOS4yMDcuMSIsInVwZGF0ZWRJblZlciI6IjM5LjIwNy4xIiwidGFyZ2V0QnJhbmNoIjoibWFpbiIsImxhYmVscyI6W119-->
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-03-31 10:14:45 +00:00
renovate[bot]
1383e383aa
Update dependency eslint-plugin-react-refresh to v0.4.19 ( #22690 )
...
This PR contains the following updates:
| Package | Change | Age | Adoption | Passing | Confidence |
|---|---|---|---|---|---|
|
[eslint-plugin-react-refresh](https://redirect.github.com/ArnaudBarre/eslint-plugin-react-refresh )
| [`0.4.3` ->
`0.4.19`](https://renovatebot.com/diffs/npm/eslint-plugin-react-refresh/0.4.3/0.4.19 )
|
[](https://docs.renovatebot.com/merge-confidence/ )
|
[](https://docs.renovatebot.com/merge-confidence/ )
|
[](https://docs.renovatebot.com/merge-confidence/ )
|
[](https://docs.renovatebot.com/merge-confidence/ )
|
---
### Release Notes
<details>
<summary>ArnaudBarre/eslint-plugin-react-refresh
(eslint-plugin-react-refresh)</summary>
###
[`v0.4.19`](https://redirect.github.com/ArnaudBarre/eslint-plugin-react-refresh/blob/HEAD/CHANGELOG.md#0419 )
[Compare
Source](https://redirect.github.com/ArnaudBarre/eslint-plugin-react-refresh/compare/v0.4.18...v0.4.19 )
Add name to configs for [ESLint Config
Inspector](https://redirect.github.com/eslint/config-inspector )
###
[`v0.4.18`](https://redirect.github.com/ArnaudBarre/eslint-plugin-react-refresh/blob/HEAD/CHANGELOG.md#0418 )
[Compare
Source](https://redirect.github.com/ArnaudBarre/eslint-plugin-react-refresh/compare/v0.4.17...v0.4.18 )
ESM/CJS interop is the worse that happened to this ecosystem, this is
all I have to say.
###
[`v0.4.17`](https://redirect.github.com/ArnaudBarre/eslint-plugin-react-refresh/blob/HEAD/CHANGELOG.md#0417 )
[Compare
Source](https://redirect.github.com/ArnaudBarre/eslint-plugin-react-refresh/compare/v0.4.16...v0.4.17 )
- Fix detection of local components to not generate warning on for
variable inside JSX files that follow React component naming (fixes
[#​75](https://redirect.github.com/ArnaudBarre/eslint-plugin-react-refresh/issues/75 ))
- Update types to not require extra unnecessary `.default` property
access under TS node16 module resolution (fixes
[#​70](https://redirect.github.com/ArnaudBarre/eslint-plugin-react-refresh/issues/70 ))
###
[`v0.4.16`](https://redirect.github.com/ArnaudBarre/eslint-plugin-react-refresh/blob/HEAD/CHANGELOG.md#0416 )
[Compare
Source](https://redirect.github.com/ArnaudBarre/eslint-plugin-react-refresh/compare/v0.4.15...v0.4.16 )
Fix CJS/ESM interop issue. Sorry everyone for the trouble.
###
[`v0.4.15`](https://redirect.github.com/ArnaudBarre/eslint-plugin-react-refresh/blob/HEAD/CHANGELOG.md#0415 )
[Compare
Source](https://redirect.github.com/ArnaudBarre/eslint-plugin-react-refresh/compare/v0.4.14...v0.4.15 )
##### Add support for custom HOCs
([#​60](https://redirect.github.com/ArnaudBarre/eslint-plugin-react-refresh/issues/60 ))
By default, the rule only knows that `memo` & `forwardRef` function
calls with return a React component. With this option, you can also
allow extra function names like Mobx observer to make this code valid:
```tsx
const Foo = () => <></>;
export default observer(Foo);
```
```json
{
"react-refresh/only-export-components": [
"error",
{ "customHOCs": ["observer"] }
]
}
```
Thanks [@​HorusGoul](https://redirect.github.com/HorusGoul )!
##### Add recommended config and simple types
([#​67](https://redirect.github.com/ArnaudBarre/eslint-plugin-react-refresh/issues/67 ))
You can now add the recommended config to your ESLint config like this:
```js
import reactRefresh from "eslint-plugin-react-refresh";
export default [
/* Main config */
reactRefresh.configs.recommended, // Or reactRefresh.configs.vite for Vite users
];
```
To follow ESLint recommandations, the rule is added with the `error`
severity.
Some simple types ensure that people typecheking their config won't need
`@ts-expect-error` anymore.
##### Bump ESLint peer dependency to 8.40
This was actually done by mistake in the previous release when moving
from a deprecated API to a new one.
Given that ESLint 8 is officialy end-of-life and the only report
([#​56](https://redirect.github.com/ArnaudBarre/eslint-plugin-react-refresh/issues/56 ))
didn't get likes, I'm going forward and documenting the expected minimum
version from ESLin in the package JSON so that people can get warning
from their package manager.
###
[`v0.4.14`](https://redirect.github.com/ArnaudBarre/eslint-plugin-react-refresh/blob/HEAD/CHANGELOG.md#0414 )
[Compare
Source](https://redirect.github.com/ArnaudBarre/eslint-plugin-react-refresh/compare/v0.4.13...v0.4.14 )
- Warn if a context is exported alongside a component (fixes
[#​53](https://redirect.github.com/ArnaudBarre/eslint-plugin-react-refresh/issues/53 )).
Thanks [@​IgorAufricht](https://redirect.github.com/IgorAufricht )!
###
[`v0.4.13`](https://redirect.github.com/ArnaudBarre/eslint-plugin-react-refresh/blob/HEAD/CHANGELOG.md#0413 )
[Compare
Source](https://redirect.github.com/ArnaudBarre/eslint-plugin-react-refresh/compare/v0.4.12...v0.4.13 )
- Support for `react-redux` connect (`export default
connect(mapStateToProps, mapDispatchToProps)(MyComponent)`) (fixes
[#​51](https://redirect.github.com/ArnaudBarre/eslint-plugin-react-refresh/issues/51 ))
- Support for [Arbitrary Module
Identifiers](https://devblogs.microsoft.com/typescript/announcing-typescript-5-6/#support-for-arbitrary-module-identifiers )
syntax (fixes
[#​52](https://redirect.github.com/ArnaudBarre/eslint-plugin-react-refresh/issues/52 ))
###
[`v0.4.12`](https://redirect.github.com/ArnaudBarre/eslint-plugin-react-refresh/blob/HEAD/CHANGELOG.md#0412 )
[Compare
Source](https://redirect.github.com/ArnaudBarre/eslint-plugin-react-refresh/compare/v0.4.11...v0.4.12 )
- Support type assertion on default export (fixes
[#​48](https://redirect.github.com/ArnaudBarre/eslint-plugin-react-refresh/issues/48 ))
- Add default export to fix usage with jiti (fixes
[#​50](https://redirect.github.com/ArnaudBarre/eslint-plugin-react-refresh/issues/50 ))
###
[`v0.4.11`](https://redirect.github.com/ArnaudBarre/eslint-plugin-react-refresh/blob/HEAD/CHANGELOG.md#0411 )
[Compare
Source](https://redirect.github.com/ArnaudBarre/eslint-plugin-react-refresh/compare/v0.4.10...v0.4.11 )
- Ignore type exports (ex. `export type foo = string;`) (fixes
[#​47](https://redirect.github.com/ArnaudBarre/eslint-plugin-react-refresh/issues/47 ))
###
[`v0.4.10`](https://redirect.github.com/ArnaudBarre/eslint-plugin-react-refresh/blob/HEAD/CHANGELOG.md#0410 )
[Compare
Source](https://redirect.github.com/ArnaudBarre/eslint-plugin-react-refresh/compare/v0.4.9...v0.4.10 )
- Support `function Foo() {}; export default React.memo(Foo)`
([#​46](https://redirect.github.com/ArnaudBarre/eslint-plugin-react-refresh/issues/46 ))
(thanks [@​SukkaW](https://redirect.github.com/SukkaW )!)
###
[`v0.4.9`](https://redirect.github.com/ArnaudBarre/eslint-plugin-react-refresh/blob/HEAD/CHANGELOG.md#049 )
[Compare
Source](https://redirect.github.com/ArnaudBarre/eslint-plugin-react-refresh/compare/v0.4.8...v0.4.9 )
- Support `function Foo() {}; export default memo(Foo)` (fixes
[#​44](https://redirect.github.com/ArnaudBarre/eslint-plugin-react-refresh/issues/44 ))
(thanks [@​SukkaW](https://redirect.github.com/SukkaW )!)
###
[`v0.4.8`](https://redirect.github.com/ArnaudBarre/eslint-plugin-react-refresh/blob/HEAD/CHANGELOG.md#048 )
[Compare
Source](https://redirect.github.com/ArnaudBarre/eslint-plugin-react-refresh/compare/v0.4.7...v0.4.8 )
- Support `export const foo = -1` with `allowConstantExport` (fixes
[#​43](https://redirect.github.com/ArnaudBarre/eslint-plugin-react-refresh/issues/43 ))
###
[`v0.4.7`](https://redirect.github.com/ArnaudBarre/eslint-plugin-react-refresh/blob/HEAD/CHANGELOG.md#047 )
[Compare
Source](https://redirect.github.com/ArnaudBarre/eslint-plugin-react-refresh/compare/v0.4.6...v0.4.7 )
- Support `export { Component as default }` (fixes
[#​41](https://redirect.github.com/ArnaudBarre/eslint-plugin-react-refresh/issues/41 ))
###
[`v0.4.6`](https://redirect.github.com/ArnaudBarre/eslint-plugin-react-refresh/blob/HEAD/CHANGELOG.md#046 )
[Compare
Source](https://redirect.github.com/ArnaudBarre/eslint-plugin-react-refresh/compare/v0.4.5...v0.4.6 )
- Ignore cypress test files
([#​39](https://redirect.github.com/ArnaudBarre/eslint-plugin-react-refresh/issues/39 ))
###
[`v0.4.5`](https://redirect.github.com/ArnaudBarre/eslint-plugin-react-refresh/blob/HEAD/CHANGELOG.md#045 )
[Compare
Source](https://redirect.github.com/ArnaudBarre/eslint-plugin-react-refresh/compare/v0.4.4...v0.4.5 )
- Allow `TaggedTemplateExpression` for styled components (fixes
[#​32](https://redirect.github.com/ArnaudBarre/eslint-plugin-react-refresh/issues/32 ))
###
[`v0.4.4`](https://redirect.github.com/ArnaudBarre/eslint-plugin-react-refresh/blob/HEAD/CHANGELOG.md#044 )
[Compare
Source](https://redirect.github.com/ArnaudBarre/eslint-plugin-react-refresh/compare/v0.4.3...v0.4.4 )
- Add `allowExportNames` option (fixes
[#​29](https://redirect.github.com/ArnaudBarre/eslint-plugin-react-refresh/issues/29 ))
- Support memo default export function components (fixes
[#​27](https://redirect.github.com/ArnaudBarre/eslint-plugin-react-refresh/issues/27 ))
- Warn on export expressions that are not React component (array,
object, logical expression, ...) (fixes
[#​26](https://redirect.github.com/ArnaudBarre/eslint-plugin-react-refresh/issues/26 ))
</details>
---
### Configuration
📅 **Schedule**: Branch creation - At any time (no schedule defined),
Automerge - At any time (no schedule defined).
🚦 **Automerge**: Enabled.
♻ **Rebasing**: Never, or you tick the rebase/retry checkbox.
🔕 **Ignore**: Close this PR and you won't be reminded about this update
again.
---
- [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check
this box
---
This PR was generated by [Mend Renovate](https://mend.io/renovate/ ).
View the [repository job
log](https://developer.mend.io/github/TryGhost/Ghost ).
<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzOS4yMDcuMSIsInVwZGF0ZWRJblZlciI6IjM5LjIwNy4xIiwidGFyZ2V0QnJhbmNoIjoibWFpbiIsImxhYmVscyI6W119-->
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-03-30 19:33:45 +00:00
renovate[bot]
58d530230e
Update dependency sinon to v17.0.1 ( #22691 )
...
This PR contains the following updates:
| Package | Change | Age | Adoption | Passing | Confidence |
|---|---|---|---|---|---|
| [sinon](https://sinonjs.org/ )
([source](https://redirect.github.com/sinonjs/sinon )) | [`17.0.0` ->
`17.0.1`](https://renovatebot.com/diffs/npm/sinon/17.0.0/17.0.1 ) |
[](https://docs.renovatebot.com/merge-confidence/ )
|
[](https://docs.renovatebot.com/merge-confidence/ )
|
[](https://docs.renovatebot.com/merge-confidence/ )
|
[](https://docs.renovatebot.com/merge-confidence/ )
|
---
### Release Notes
<details>
<summary>sinonjs/sinon (sinon)</summary>
###
[`v17.0.1`](https://redirect.github.com/sinonjs/sinon/blob/HEAD/CHANGES.md#1701 )
[Compare
Source](https://redirect.github.com/sinonjs/sinon/compare/v17.0.0...v17.0.1 )
-
[`5fde5aeb`](5fde5aebc7
)
fix returns does not override call through
([#​2567](https://redirect.github.com/sinonjs/sinon/issues/2567 ))
(Raz Luvaton)
-
[`b5fc3671`](b5fc3671ff
)
Documentation for assertion options for the sandbox
([#​2564](https://redirect.github.com/sinonjs/sinon/issues/2564 ))
(Carl-Erik Kopseng)
-
[`f7d180cc`](f7d180ccc1
)
fix: assertion log limit
([#​2485](https://redirect.github.com/sinonjs/sinon/issues/2485 ))
(Spencer Goossens)
-
[`4f538e3e`](4f538e3e74
)
Fix mochify breaking on node:assert
([#​2559](https://redirect.github.com/sinonjs/sinon/issues/2559 ))
(Carl-Erik Kopseng)
*Released by [Carl-Erik Kopseng](https://redirect.github.com/fatso83 ) on
2023-11-01.*
</details>
---
### Configuration
📅 **Schedule**: Branch creation - At any time (no schedule defined),
Automerge - At any time (no schedule defined).
🚦 **Automerge**: Enabled.
♻ **Rebasing**: Never, or you tick the rebase/retry checkbox.
🔕 **Ignore**: Close this PR and you won't be reminded about this update
again.
---
- [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check
this box
---
This PR was generated by [Mend Renovate](https://mend.io/renovate/ ).
View the [repository job
log](https://developer.mend.io/github/TryGhost/Ghost ).
<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzOS4yMDcuMSIsInVwZGF0ZWRJblZlciI6IjM5LjIwNy4xIiwidGFyZ2V0QnJhbmNoIjoibWFpbiIsImxhYmVscyI6W119-->
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-03-30 16:46:06 +00:00
renovate[bot]
4708da00e4
Update dependency mocha to v10.8.2 ( #22704 )
...
This PR contains the following updates:
| Package | Change | Age | Adoption | Passing | Confidence |
|---|---|---|---|---|---|
| [mocha](https://mochajs.org/ )
([source](https://redirect.github.com/mochajs/mocha )) | [`10.2.0` ->
`10.8.2`](https://renovatebot.com/diffs/npm/mocha/10.2.0/10.8.2 ) |
[](https://docs.renovatebot.com/merge-confidence/ )
|
[](https://docs.renovatebot.com/merge-confidence/ )
|
[](https://docs.renovatebot.com/merge-confidence/ )
|
[](https://docs.renovatebot.com/merge-confidence/ )
|
| [mocha](https://mochajs.org/ )
([source](https://redirect.github.com/mochajs/mocha )) | [`10.7.3` ->
`10.8.2`](https://renovatebot.com/diffs/npm/mocha/10.7.3/10.8.2 ) |
[](https://docs.renovatebot.com/merge-confidence/ )
|
[](https://docs.renovatebot.com/merge-confidence/ )
|
[](https://docs.renovatebot.com/merge-confidence/ )
|
[](https://docs.renovatebot.com/merge-confidence/ )
|
---
### Release Notes
<details>
<summary>mochajs/mocha (mocha)</summary>
###
[`v10.8.2`](https://redirect.github.com/mochajs/mocha/blob/HEAD/CHANGELOG.md#1082-2024-10-30 )
[Compare
Source](https://redirect.github.com/mochajs/mocha/compare/v10.8.1...v10.8.2 )
##### 🩹 Fixes
- support errors with circular dependencies in object values with
--parallel
([#​5212](https://redirect.github.com/mochajs/mocha/issues/5212 ))
([ba0fefe](ba0fefe10b
))
- test link in html reporter
([#​5224](https://redirect.github.com/mochajs/mocha/issues/5224 ))
([f054acc](f054acc1f6
))
##### 📚 Documentation
- indicate 'exports' interface does not work in browsers
([#​5181](https://redirect.github.com/mochajs/mocha/issues/5181 ))
([14e640e](14e640ee49
))
##### 🧹 Chores
- fix docs builds by re-adding eleventy and ignoring gitignore again
([#​5240](https://redirect.github.com/mochajs/mocha/issues/5240 ))
([881e3b0](881e3b0ca2
))
##### 🤖 Automation
- **deps:** bump the github-actions group with 1 update
([#​5132](https://redirect.github.com/mochajs/mocha/issues/5132 ))
([e536ab2](e536ab25b3
))
###
[`v10.8.1`](https://redirect.github.com/mochajs/mocha/blob/HEAD/CHANGELOG.md#1081-2024-10-29 )
[Compare
Source](https://redirect.github.com/mochajs/mocha/compare/v10.8.0...v10.8.1 )
##### 🩹 Fixes
- handle case of invalid package.json with no explicit config
([#​5198](https://redirect.github.com/mochajs/mocha/issues/5198 ))
([f72bc17](f72bc17cb4
))
- Typos on mochajs.org
([#​5237](https://redirect.github.com/mochajs/mocha/issues/5237 ))
([d8ca270](d8ca270a96
))
- use accurate test links in HTML reporter
([#​5228](https://redirect.github.com/mochajs/mocha/issues/5228 ))
([68803b6](68803b685d
))
###
[`v10.8.0`](https://redirect.github.com/mochajs/mocha/blob/HEAD/CHANGELOG.md#1080-2024-10-29 )
[Compare
Source](https://redirect.github.com/mochajs/mocha/compare/v10.7.3...v10.8.0 )
##### 🌟 Features
- highlight browser failures
([#​5222](https://redirect.github.com/mochajs/mocha/issues/5222 ))
([8ff4845](8ff48453a8
))
##### 🩹 Fixes
- remove `:is()` from `mocha.css` to support older browsers
([#​5225](https://redirect.github.com/mochajs/mocha/issues/5225 ))
([#​5227](https://redirect.github.com/mochajs/mocha/issues/5227 ))
([0a24b58](0a24b58477
))
##### 📚 Documentation
- add `SECURITY.md` pointing to Tidelift
([#​5210](https://redirect.github.com/mochajs/mocha/issues/5210 ))
([bd7e63a](bd7e63a1f6
))
- adopt Collective Funds Guidelines 0.1
([#​5199](https://redirect.github.com/mochajs/mocha/issues/5199 ))
([2b03d86](2b03d865ee
))
- update README, LICENSE and fix outdated
([#​5197](https://redirect.github.com/mochajs/mocha/issues/5197 ))
([1203e0e](1203e0ed73
))
##### 🧹 Chores
- fix npm scripts on windows
([#​5219](https://redirect.github.com/mochajs/mocha/issues/5219 ))
([1173da0](1173da0bf6
))
- remove trailing whitespace in SECURITY.md
([7563e59](7563e59ae3
))
###
[`v10.7.3`](https://redirect.github.com/mochajs/mocha/blob/HEAD/CHANGELOG.md#1073-2024-08-09 )
[Compare
Source](https://redirect.github.com/mochajs/mocha/compare/v10.7.0...v10.7.3 )
##### 🩹 Fixes
- make release-please build work
([#​5194](https://redirect.github.com/mochajs/mocha/issues/5194 ))
([afd66ef](afd66ef3df
))
###
[`v10.7.0`](https://redirect.github.com/mochajs/mocha/blob/HEAD/CHANGELOG.md#1070--2024-07-20 )
[Compare
Source](https://redirect.github.com/mochajs/mocha/compare/v10.6.1...v10.7.0 )
##### 🎉 Enhancements
- [#​4771](https://redirect.github.com/mochajs/mocha/pull/4771 )
feat: add option to not fail on failing test suite
([**@​ilgonmic**](https://redirect.github.com/ilgonmic ))
###
[`v10.6.1`](https://redirect.github.com/mochajs/mocha/blob/HEAD/CHANGELOG.md#1061--2024-07-20 )
[Compare
Source](https://redirect.github.com/mochajs/mocha/compare/v10.6.0...v10.6.1 )
##### 🐛 Fixes
- [#​3825](https://redirect.github.com/mochajs/mocha/pull/3825 )
fix: do not exit when only unref'd timer is present in test code
([**@​boneskull**](https://redirect.github.com/boneskull ))
- [#​5040](https://redirect.github.com/mochajs/mocha/pull/5040 )
fix: support canonical module
([**@​JacobLey**](https://redirect.github.com/JacobLey ))
###
[`v10.6.0`](https://redirect.github.com/mochajs/mocha/blob/HEAD/CHANGELOG.md#1060--2024-07-02 )
[Compare
Source](https://redirect.github.com/mochajs/mocha/compare/v10.5.2...v10.6.0 )
##### 🎉 Enhancements
- [#​5150](https://redirect.github.com/mochajs/mocha/pull/5150 )
feat: allow ^ versions for character encoding packages
([**@​JoshuaKGoldberg**](https://redirect.github.com/JoshuaKGoldberg ))
- [#​5151](https://redirect.github.com/mochajs/mocha/pull/5151 )
feat: allow ^ versions for file matching packages
([**@​JoshuaKGoldberg**](https://redirect.github.com/JoshuaKGoldberg ))
- [#​5152](https://redirect.github.com/mochajs/mocha/pull/5152 )
feat: allow ^ versions for yargs packages
([**@​JoshuaKGoldberg**](https://redirect.github.com/JoshuaKGoldberg ))
- [#​5153](https://redirect.github.com/mochajs/mocha/pull/5153 )
feat: allow ^ versions for data serialization packages
([**@​JoshuaKGoldberg**](https://redirect.github.com/JoshuaKGoldberg ))
- [#​5154](https://redirect.github.com/mochajs/mocha/pull/5154 )
feat: allow ^ versions for miscellaneous packages
([**@​JoshuaKGoldberg**](https://redirect.github.com/JoshuaKGoldberg ))
###
[`v10.5.2`](https://redirect.github.com/mochajs/mocha/blob/HEAD/CHANGELOG.md#1052--2024-06-25 )
[Compare
Source](https://redirect.github.com/mochajs/mocha/compare/v10.5.1...v10.5.2 )
##### 🐛 Fixes
- [#​5032](https://redirect.github.com/mochajs/mocha/pull/5032 )
fix: better tracking of seen objects in error serialization
([**@​sam-super**](https://redirect.github.com/sam-super ))
###
[`v10.5.1`](https://redirect.github.com/mochajs/mocha/blob/HEAD/CHANGELOG.md#1051--2024-06-24 )
[Compare
Source](https://redirect.github.com/mochajs/mocha/compare/v10.5.0...v10.5.1 )
##### 🐛 Fixes
- [#​5086](https://redirect.github.com/mochajs/mocha/pull/5086 )
fix: Add error handling for nonexistent file case with --file option
([**@​khoaHyh**](https://redirect.github.com/khoaHyh ))
###
[`v10.5.0`](https://redirect.github.com/mochajs/mocha/blob/HEAD/CHANGELOG.md#1050--2024-06-24 )
[Compare
Source](https://redirect.github.com/mochajs/mocha/compare/v10.4.0...v10.5.0 )
##### 🎉 Enhancements
- [#​5015](https://redirect.github.com/mochajs/mocha/pull/5015 )
feat: use \<progress> and \<svg> for browser progress indicator instead
of \<canvas>
([**@​yourWaifu**](https://redirect.github.com/yourWaifu ))
- [#​5143](https://redirect.github.com/mochajs/mocha/pull/5143 )
feat: allow using any 3.x chokidar dependencies
([**@​simhnna**](https://redirect.github.com/simhnna ))
- [#​4835](https://redirect.github.com/mochajs/mocha/pull/4835 )
feat: add MOCHA_OPTIONS env variable
([**@​icholy**](https://redirect.github.com/icholy ))
##### 🐛 Fixes
- [#​5107](https://redirect.github.com/mochajs/mocha/pull/5107 )
fix: include stack in browser uncaught error reporting
([**@​JoshuaKGoldberg**](https://redirect.github.com/JoshuaKGoldberg ))
##### 🔩 Other
- [#​5110](https://redirect.github.com/mochajs/mocha/pull/5110 )
chore: switch two-column list styles to be opt-in
([**@​marjys**](https://redirect.github.com/marjys ))
- [#​5135](https://redirect.github.com/mochajs/mocha/pull/5135 )
chore: fix some typos in comments
([**@​StevenMia**](https://redirect.github.com/StevenMia ))
- [#​5130](https://redirect.github.com/mochajs/mocha/pull/5130 )
chore: rename 'master' to 'main' in docs and tooling
([**@​JoshuaKGoldberg**](https://redirect.github.com/JoshuaKGoldberg ))
###
[`v10.4.0`](https://redirect.github.com/mochajs/mocha/blob/HEAD/CHANGELOG.md#1040--2024-03-26 )
[Compare
Source](https://redirect.github.com/mochajs/mocha/compare/v10.3.0...v10.4.0 )
##### 🎉 Enhancements
- [#​4829](https://redirect.github.com/mochajs/mocha/pull/4829 )
feat: include `.cause` stacks in the error stack traces
([**@​voxpelli**](https://redirect.github.com/voxpelli ))
- [#​4985](https://redirect.github.com/mochajs/mocha/pull/4985 )
feat: add file path to xunit reporter
([**@​bmish**](https://redirect.github.com/bmish ))
##### 🐛 Fixes
- [#​5074](https://redirect.github.com/mochajs/mocha/pull/5074 )
fix: harden error handling in `lib/cli/run.js`
([**@​stalet**](https://redirect.github.com/stalet ))
##### 🔩 Other
- [#​5077](https://redirect.github.com/mochajs/mocha/pull/5077 )
chore: add mtfoley/pr-compliance-action
([**@​JoshuaKGoldberg**](https://redirect.github.com/JoshuaKGoldberg ))
- [#​5060](https://redirect.github.com/mochajs/mocha/pull/5060 )
chore: migrate ESLint config to flat config
([**@​JoshuaKGoldberg**](https://redirect.github.com/JoshuaKGoldberg ))
- [#​5095](https://redirect.github.com/mochajs/mocha/pull/5095 )
chore: revert
[#​5069](https://redirect.github.com/mochajs/mocha/pull/5069 ) to
restore Netlify builds
([**@​voxpelli**](https://redirect.github.com/voxpelli ))
- [#​5097](https://redirect.github.com/mochajs/mocha/pull/5097 )
docs: add sponsored to sponsorship link rels
([**@​JoshuaKGoldberg**](https://redirect.github.com/JoshuaKGoldberg ))
- [#​5093](https://redirect.github.com/mochajs/mocha/pull/5093 )
chore: add 'status: in triage' label to issue templates and docs
([**@​JoshuaKGoldberg**](https://redirect.github.com/JoshuaKGoldberg ))
- [#​5083](https://redirect.github.com/mochajs/mocha/pull/5083 )
docs: fix CHANGELOG.md headings to start with a root-level h1
([**@​JoshuaKGoldberg**](https://redirect.github.com/JoshuaKGoldberg ))
- [#​5100](https://redirect.github.com/mochajs/mocha/pull/5100 )
chore: fix header generation and production build crashes
([**@​JoshuaKGoldberg**](https://redirect.github.com/JoshuaKGoldberg ))
- [#​5104](https://redirect.github.com/mochajs/mocha/pull/5104 )
chore: bump ESLint ecmaVersion to 2020
([**@​JoshuaKGoldberg**](https://redirect.github.com/JoshuaKGoldberg ))
- [#​5116](https://redirect.github.com/mochajs/mocha/pull/5116 )
fix: eleventy template builds crash with 'unexpected token at ": string,
msg..."' ([**@​LcsK**](https://redirect.github.com/LcsK ))
- [#​4869](https://redirect.github.com/mochajs/mocha/pull/4869 )
docs: fix documentation concerning glob expansion on UNIX
([**@​binki**](https://redirect.github.com/binki ))
- [#​5122](https://redirect.github.com/mochajs/mocha/pull/5122 )
test: fix xunit integration test
([**@​voxpelli**](https://redirect.github.com/voxpelli ))
- [#​5123](https://redirect.github.com/mochajs/mocha/pull/5123 )
chore: activate dependabot for workflows
([**@​voxpelli**](https://redirect.github.com/voxpelli ))
- [#​5125](https://redirect.github.com/mochajs/mocha/pull/5125 )
build(deps): bump the github-actions group with 2 updates
([**@​dependabot**](https://redirect.github.com/dependabot ))
###
[`v10.3.0`](https://redirect.github.com/mochajs/mocha/blob/HEAD/CHANGELOG.md#1030--2024-02-08 )
[Compare
Source](https://redirect.github.com/mochajs/mocha/compare/v10.2.0...v10.3.0 )
This is a stable release equivalent to
[10.30.0-prerelease](#​1030-prerelease--2024-01-18).
</details>
---
### Configuration
📅 **Schedule**: Branch creation - At any time (no schedule defined),
Automerge - At any time (no schedule defined).
🚦 **Automerge**: Enabled.
♻ **Rebasing**: Never, or you tick the rebase/retry checkbox.
🔕 **Ignore**: Close this PR and you won't be reminded about these
updates again.
---
- [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check
this box
---
This PR was generated by [Mend Renovate](https://mend.io/renovate/ ).
View the [repository job
log](https://developer.mend.io/github/TryGhost/Ghost ).
<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzOS4yMDcuMSIsInVwZGF0ZWRJblZlciI6IjM5LjIwNy4xIiwidGFyZ2V0QnJhbmNoIjoibWFpbiIsImxhYmVscyI6W119-->
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-03-29 21:44:24 +00:00
Cathy Sarisky
eb633a3181
Added Admin changes for super editors ( #22453 )
...
Ref https://github.com/TryGhost/Ghost/issues/22445
This PR has the admin section changes (and associated tests) for super
editors, including routing adjustments.
---------
Co-authored-by: Steve Larson <9larsons@gmail.com>
2025-03-13 07:38:51 -05:00
Cathy Sarisky
533bf2ee07
Added Admin Settings changes for super editor role ( #22452 )
...
ref https://github.com/TryGhost/Ghost/issues/22445
This PR contains the admin-x-settings changes needed to allow the super
editor role.
---------
Co-authored-by: Steve Larson <9larsons@gmail.com>
2025-03-12 18:50:02 +00:00
Sam Lord
8ffe64e5cf
Add "Require 2FA" in Ghost Admin settings ( #22386 )
...
ref ENG-2072
This adds the setting to make signing out also remove the `verified`
flag. This effectively ensures that 2FA is required on _every_ login,
not just once per device.
---------
Co-authored-by: Peter Zimon <peter.zimon@gmail.com>
2025-03-10 10:30:43 +00:00
renovate[bot]
542c4140ed
Update dependency react-router to v7.3.0 ( #22413 )
...
This PR contains the following updates:
| Package | Change | Age | Adoption | Passing | Confidence |
|---|---|---|---|---|---|
| [react-router](https://redirect.github.com/remix-run/react-router )
([source](https://redirect.github.com/remix-run/react-router/tree/HEAD/packages/react-router ))
| [`7.2.0` ->
`7.3.0`](https://renovatebot.com/diffs/npm/react-router/7.2.0/7.3.0 ) |
[](https://docs.renovatebot.com/merge-confidence/ )
|
[](https://docs.renovatebot.com/merge-confidence/ )
|
[](https://docs.renovatebot.com/merge-confidence/ )
|
[](https://docs.renovatebot.com/merge-confidence/ )
|
---
### Release Notes
<details>
<summary>remix-run/react-router (react-router)</summary>
###
[`v7.3.0`](https://redirect.github.com/remix-run/react-router/blob/HEAD/packages/react-router/CHANGELOG.md#730 )
##### Minor Changes
- Add `fetcherKey` as a parameter to `patchRoutesOnNavigation`
([#​13061](https://redirect.github.com/remix-run/react-router/pull/13061 ))
- In framework mode, Lazy Route Discovery will now detect manifest
version mismatches after a new deploy
- On navigations to undiscovered routes, this mismatch will trigger a
document reload of the destination path
- On `fetcher` calls to undiscovered routes, this mismatch will trigger
a document reload of the current path
##### Patch Changes
- Skip resource route flow in dev server in SPA mode
([#​13113](https://redirect.github.com/remix-run/react-router/pull/13113 ))
- Support middleware on routes (unstable)
([#​12941](https://redirect.github.com/remix-run/react-router/pull/12941 ))
Middleware is implemented behind a `future.unstable_middleware` flag. To
enable, you must enable the flag and the types in your
`react-router-config.ts` file:
```ts
import type { Config } from "@​react-router/dev/config";
import type { Future } from "react-router";
declare module "react-router" {
interface Future {
unstable_middleware: true; // 👈 Enable middleware types
}
}
export default {
future: {
unstable_middleware: true, // 👈 Enable middleware
},
} satisfies Config;
```
⚠️ Middleware is unstable and should not be adopted in production. There
is at least one known de-optimization in route module loading for
`clientMiddleware` that we will be addressing this before a stable
release.
⚠️ Enabling middleware contains a breaking change to the `context`
parameter passed to your `loader`/`action` functions - see below for
more information.
Once enabled, routes can define an array of middleware functions that
will run sequentially before route handlers run. These functions accept
the same parameters as `loader`/`action` plus an additional `next`
parameter to run the remaining data pipeline. This allows middlewares to
perform logic before and after handlers execute.
```tsx
// Framework mode
export const unstable_middleware = [serverLogger, serverAuth]; // server
export const unstable_clientMiddleware = [clientLogger]; // client
// Library mode
const routes = [
{
path: "/",
// Middlewares are client-side for library mode SPA's
unstable_middleware: [clientLogger, clientAuth],
loader: rootLoader,
Component: Root,
},
];
```
Here's a simple example of a client-side logging middleware that can be
placed on the root route:
```tsx
const clientLogger: Route.unstable_ClientMiddlewareFunction = async (
{ request },
next
) => {
let start = performance.now();
// Run the remaining middlewares and all route loaders
await next();
let duration = performance.now() - start;
console.log(`Navigated to ${request.url} (${duration}ms)`);
};
```
Note that in the above example, the `next`/`middleware` functions don't
return anything. This is by design as on the client there is no
"response" to send over the network like there would be for middlewares
running on the server. The data is all handled behind the scenes by the
stateful `router`.
For a server-side middleware, the `next` function will return the HTTP
`Response` that React Router will be sending across the wire, thus
giving you a chance to make changes as needed. You may throw a new
response to short circuit and respond immediately, or you may return a
new or altered response to override the default returned by `next()`.
```tsx
const serverLogger: Route.unstable_MiddlewareFunction = async (
{ request, params, context },
next
) => {
let start = performance.now();
// 👇 Grab the response here
let res = await next();
let duration = performance.now() - start;
console.log(`Navigated to ${request.url} (${duration}ms)`);
// 👇 And return it here (optional if you don't modify the response)
return res;
};
```
You can throw a `redirect` from a middleware to short circuit any
remaining processing:
```tsx
import { sessionContext } from "../context";
const serverAuth: Route.unstable_MiddlewareFunction = (
{ request, params, context },
next
) => {
let session = context.get(sessionContext);
let user = session.get("user");
if (!user) {
session.set("returnTo", request.url);
throw redirect("/login", 302);
}
};
```
*Note that in cases like this where you don't need to do any
post-processing you don't need to call the `next` function or return a
`Response`.*
Here's another example of using a server middleware to detect 404s and
check the CMS for a redirect:
```tsx
const redirects: Route.unstable_MiddlewareFunction = async ({
request,
next,
}) => {
// attempt to handle the request
let res = await next();
// if it's a 404, check the CMS for a redirect, do it last
// because it's expensive
if (res.status === 404) {
let cmsRedirect = await checkCMSRedirects(request.url);
if (cmsRedirect) {
throw redirect(cmsRedirect, 302);
}
}
return res;
};
```
**`context` parameter**
When middleware is enabled, your application will use a different type
of `context` parameter in your loaders and actions to provide better
type safety. Instead of `AppLoadContext`, `context` will now be an
instance of `ContextProvider` that you can use with type-safe contexts
(similar to `React.createContext`):
```ts
import { unstable_createContext } from "react-router";
import { Route } from "./+types/root";
import type { Session } from "./sessions.server";
import { getSession } from "./sessions.server";
let sessionContext = unstable_createContext<Session>();
const sessionMiddleware: Route.unstable_MiddlewareFunction = ({
context,
request,
}) => {
let session = await getSession(request);
context.set(sessionContext, session);
// ^ must be of type Session
};
// ... then in some downstream middleware
const loggerMiddleware: Route.unstable_MiddlewareFunction = ({
context,
request,
}) => {
let session = context.get(sessionContext);
// ^ typeof Session
console.log(session.get("userId"), request.method, request.url);
};
// ... or some downstream loader
export function loader({ context }: Route.LoaderArgs) {
let session = context.get(sessionContext);
let profile = await getProfile(session.get("userId"));
return { profile };
}
```
If you are using a custom server with a `getLoadContext` function, the
return value for initial context values passed from the server adapter
layer is no longer an object and should now return an
`unstable_InitialContext` (`Map<RouterContext, unknown>`):
```ts
let adapterContext = unstable_createContext<MyAdapterContext>();
function getLoadContext(req, res): unstable_InitialContext {
let map = new Map();
map.set(adapterContext, getAdapterContext(req));
return map;
}
```
- Fix types for loaderData and actionData that contained `Record`s
([#​13139](https://redirect.github.com/remix-run/react-router/pull/13139 ))
UNSTABLE(BREAKING):
`unstable_SerializesTo` added a way to register custom serialization
types in Single Fetch for other library and framework authors like
Apollo.
It was implemented with branded type whose branded property that was
made optional so that casting arbitrary values was easy:
```ts
// without the brand being marked as optional
let x1 = 42 as unknown as unstable_SerializesTo<number>;
// ^^^^^^^^^^
// with the brand being marked as optional
let x2 = 42 as unstable_SerializesTo<number>;
```
However, this broke type inference in `loaderData` and `actionData` for
any `Record` types as those would now (incorrectly) match
`unstable_SerializesTo`.
This affected all users, not just those that depended on
`unstable_SerializesTo`.
To fix this, the branded property of `unstable_SerializesTo` is marked
as required instead of optional.
For library and framework authors using `unstable_SerializesTo`, you may
need to add `as unknown` casts before casting to
`unstable_SerializesTo`.
- \[REMOVE] Remove middleware depth logic and always call middlware for
all matches
([#​13172](https://redirect.github.com/remix-run/react-router/pull/13172 ))
- Fix single fetch `_root.data` requests when a `basename` is used
([#​12898](https://redirect.github.com/remix-run/react-router/pull/12898 ))
- Add `context` support to client side data routers (unstable)
([#​12941](https://redirect.github.com/remix-run/react-router/pull/12941 ))
Your application `loader` and `action` functions on the client will now
receive a `context` parameter. This is an instance of
`unstable_RouterContextProvider` that you use with type-safe contexts
(similar to `React.createContext`) and is most useful with the
corresponding `middleware`/`clientMiddleware` API's:
```ts
import { unstable_createContext } from "react-router";
type User = {
/*...*/
};
let userContext = unstable_createContext<User>();
function sessionMiddleware({ context }) {
let user = await getUser();
context.set(userContext, user);
}
// ... then in some downstream loader
function loader({ context }) {
let user = context.get(userContext);
let profile = await getProfile(user.id);
return { profile };
}
```
Similar to server-side requests, a fresh `context` will be created per
navigation (or `fetcher` call). If you have initial data you'd like to
populate in the context for every request, you can provide an
`unstable_getContext` function at the root of your app:
- Library mode - `createBrowserRouter(routes, { unstable_getContext })`
- Framework mode - `<HydratedRouter unstable_getContext>`
This function should return an value of type `unstable_InitialContext`
which is a `Map<unstable_RouterContext, unknown>` of context's and
initial values:
```ts
const loggerContext = unstable_createContext<(...args: unknown[]) =>
void>();
function logger(...args: unknown[]) {
console.log(new Date.toISOString(), ...args);
}
function unstable_getContext() {
let map = new Map();
map.set(loggerContext, logger);
return map;
}
```
</details>
---
### Configuration
📅 **Schedule**: Branch creation - "* * * * 1-5" (UTC), Automerge - At
any time (no schedule defined).
🚦 **Automerge**: Enabled.
♻ **Rebasing**: Never, or you tick the rebase/retry checkbox.
🔕 **Ignore**: Close this PR and you won't be reminded about this update
again.
---
- [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check
this box
---
This PR was generated by [Mend Renovate](https://mend.io/renovate/ ).
View the [repository job
log](https://developer.mend.io/github/TryGhost/Ghost ).
<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzOS4xODUuNCIsInVwZGF0ZWRJblZlciI6IjM5LjE4NS40IiwidGFyZ2V0QnJhbmNoIjoibWFpbiIsImxhYmVscyI6W119-->
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-03-06 21:52:10 +00:00
Peter Zimon
c6364dd638
Added deleted post indicator to ActivityPub ( #22392 )
...
ref AP-839
- When a reply to a deleted post is opened there's no indication that
the post has been deleted
---------
Co-authored-by: Michael Barrett <mike@ghost.org>
2025-03-06 08:52:12 +00:00
Peter Zimon
7f3f7ace66
Added ActivityPub soft feature flags ( #22361 )
...
ref AP-832
- In order to be able to ship small, in progress ActivityPub related
features without exposing them to the public, we need a lightweight and
fast feature flag subsystem. The current alpha feature flag system is
too big for some of the tasks we're working on.
2025-03-04 16:02:12 +00:00
Peter Zimon
e972ee0bf4
Updated router in ActivityPub ( #22360 )
...
ref AP-830
- In live environment the router rendered an empty component when
navigating to `/activitypub/` instead of redirecting to
`/activitypub/inbox`.
2025-03-04 14:29:03 +00:00
Peter Zimon
ec46fa112d
Integrating React Router in ActivityPub ( #22234 )
...
ref AP-701
- ATM we're using our in-house routing solution in ActivityPub. On the
mid/long term (ie. Public Beta / GA) it's beneficial to switch to an
existing third-party solution which handles certain use cases that we'd
need out of the box. One of the most popular of these tools is React
Router, for which we've already put together a spike in the Posts app
prototype. This PR is replacing our in-house router with React Router
for ActivityPub and all new React apps.
2025-02-24 13:20:23 +01:00
renovate[bot]
467e31c084
Update dependency react-router to v7.2.0 ( #22098 )
...
This PR contains the following updates:
| Package | Change | Age | Adoption | Passing | Confidence |
|---|---|---|---|---|---|
| [react-router](https://redirect.github.com/remix-run/react-router )
([source](https://redirect.github.com/remix-run/react-router/tree/HEAD/packages/react-router ))
| [`7.1.4` ->
`7.2.0`](https://renovatebot.com/diffs/npm/react-router/7.1.4/7.2.0 ) |
[](https://docs.renovatebot.com/merge-confidence/ )
|
[](https://docs.renovatebot.com/merge-confidence/ )
|
[](https://docs.renovatebot.com/merge-confidence/ )
|
[](https://docs.renovatebot.com/merge-confidence/ )
|
---
### Release Notes
<details>
<summary>remix-run/react-router (react-router)</summary>
###
[`v7.2.0`](https://redirect.github.com/remix-run/react-router/blob/HEAD/packages/react-router/CHANGELOG.md#720 )
[Compare
Source](https://redirect.github.com/remix-run/react-router/compare/react-router@7.1.5...react-router@7.2.0 )
##### Minor Changes
- New type-safe `href` utility that guarantees links point to actual
paths in your app
([#​13012](https://redirect.github.com/remix-run/react-router/pull/13012 ))
```tsx
import { href } from "react-router";
export default function Component() {
const link = href("/blog/:slug", { slug: "my-first-post" });
return (
<main>
<Link to={href("/products/:id", { id: "asdf" })} />
<NavLink to={href("/:lang?/about", { lang: "en" })} />
</main>
);
}
```
##### Patch Changes
- Fix typegen for repeated params
([#​13012](https://redirect.github.com/remix-run/react-router/pull/13012 ))
In React Router, path parameters are keyed by their name.
So for a path pattern like `/a/:id/b/:id?/c/:id`, the last `:id` will
set the value for `id` in `useParams` and the `params` prop.
For example, `/a/1/b/2/c/3` will result in the value `{ id: 3 }` at
runtime.
Previously, generated types for params incorrectly modeled repeated
params with an array.
So `/a/1/b/2/c/3` generated a type like `{ id: [1,2,3] }`.
To be consistent with runtime behavior, the generated types now
correctly model the "last one wins" semantics of path parameters.
So `/a/1/b/2/c/3` now generates a type like `{ id: 3 }`.
- Don't apply Single Fetch revalidation de-optimization when in SPA mode
since there is no server HTTP request
([#​12948](https://redirect.github.com/remix-run/react-router/pull/12948 ))
- Properly handle revalidations to across a prerender/SPA boundary
([#​13021](https://redirect.github.com/remix-run/react-router/pull/13021 ))
- In "hybrid" applications where some routes are pre-rendered and some
are served from a SPA fallback, we need to avoid making `.data` requests
if the path wasn't pre-rendered because the request will 404
- We don't know all the pre-rendered paths client-side, however:
- All `loader` data in `ssr:false` mode is static because it's generated
at build time
- A route must use a `clientLoader` to do anything dynamic
- Therefore, if a route only has a `loader` and not a `clientLoader`, we
disable revalidation by default because there is no new data to retrieve
- We short circuit and skip single fetch `.data` request logic if there
are no server loaders with `shouldLoad=true` in our single fetch
`dataStrategy`
- This ensures that the route doesn't cause a `.data` request that would
404 after a submission
- Error at build time in `ssr:false` + `prerender` apps for the edge
case scenario of:
([#​13021](https://redirect.github.com/remix-run/react-router/pull/13021 ))
- A parent route has only a `loader` (does not have a `clientLoader`)
- The parent route is pre-rendered
- The parent route has children routes which are not prerendered
- This means that when the child paths are loaded via the SPA fallback,
the parent won't have any `loaderData` because there is no server on
which to run the `loader`
- This can be resolved by either adding a parent `clientLoader` or
pre-rendering the child paths
- If you add a `clientLoader`, calling the `serverLoader()` on
non-prerendered paths will throw a 404
- Add unstable support for splitting route modules in framework mode via
`future.unstable_splitRouteModules`
([#​11871](https://redirect.github.com/remix-run/react-router/pull/11871 ))
- Add `unstable_SerializesTo` brand type for library authors to register
types serializable by React Router's streaming format (`turbo-stream`)
([`ab5b05b02`](ab5b05b02f
))
- Align dev server behavior with static file server behavior when
`ssr:false` is set
([#​12948](https://redirect.github.com/remix-run/react-router/pull/12948 ))
- When no `prerender` config exists, only SSR down to the root
`HydrateFallback` (SPA Mode)
- When a `prerender` config exists but the current path is not
prerendered, only SSR down to the root `HydrateFallback` (SPA Fallback)
- Return a 404 on `.data` requests to non-pre-rendered paths
- Improve prefetch performance of CSS side effects in framework mode
([#​12889](https://redirect.github.com/remix-run/react-router/pull/12889 ))
- Disable Lazy Route Discovery for all `ssr:false` apps and not just
"SPA Mode" because there is no runtime server to serve the
search-param-configured `__manifest` requests
([#​12894](https://redirect.github.com/remix-run/react-router/pull/12894 ))
- We previously only disabled this for "SPA Mode" which is `ssr:false`
and no `prerender` config but we realized it should apply to all
`ssr:false` apps, including those prerendering multiple pages
- In those `prerender` scenarios we would prerender the `/__manifest`
file assuming the static file server would serve it but that makes some
unneccesary assumptions about the static file server behaviors
- Properly handle interrupted manifest requests in lazy route discovery
([#​12915](https://redirect.github.com/remix-run/react-router/pull/12915 ))
###
[`v7.1.5`](https://redirect.github.com/remix-run/react-router/blob/HEAD/packages/react-router/CHANGELOG.md#715 )
[Compare
Source](https://redirect.github.com/remix-run/react-router/compare/react-router@7.1.4...react-router@7.1.5 )
##### Patch Changes
- Fix regression introduced in `7.1.4` via
[#​12800](https://redirect.github.com/remix-run/react-router/pull/12800 )
that caused issues navigating to hash routes inside splat routes for
applications using Lazy Route Discovery (`patchRoutesOnNavigation`)
([#​12927](https://redirect.github.com/remix-run/react-router/pull/12927 ))
</details>
---
### Configuration
📅 **Schedule**: Branch creation - "* * * * 1-5" (UTC), Automerge - At
any time (no schedule defined).
🚦 **Automerge**: Enabled.
♻ **Rebasing**: Never, or you tick the rebase/retry checkbox.
🔕 **Ignore**: Close this PR and you won't be reminded about this update
again.
---
- [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check
this box
---
This PR was generated by [Mend Renovate](https://mend.io/renovate/ ).
View the [repository job
log](https://developer.mend.io/github/TryGhost/Ghost ).
<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzOS4xNDUuMCIsInVwZGF0ZWRJblZlciI6IjM5LjE3Ni4yIiwidGFyZ2V0QnJhbmNoIjoibWFpbiIsImxhYmVscyI6W119-->
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-02-20 16:20:16 +00:00
Chris Raible
376b9209c3
Added ability to disable Newsletter clicks
toggle in settings ( #22090 )
...
ref
https://linear.app/ghost/issue/ENG-1974/create-config-option-to-forcibly-disable-email-track-clicks
- With the ability to override a setting via configuration, we also need
to disable the setting's toggle in the UI to signal to the user that it
cannot be changed.
- This commit sets `disabled: true` on the `Newsletter clicks` toggle if
`is_read_only` is set to `true` on the `email_track_clicks` setting
returned from the API, and establishes a pattern that we can use for
other settings in the future, if desired.
2025-01-30 17:06:17 -08:00
renovate[bot]
6e6d6d2230
Update dependency react-router to v7.1.4 ( #22086 )
...
This PR contains the following updates:
| Package | Change | Age | Adoption | Passing | Confidence |
|---|---|---|---|---|---|
| [react-router](https://redirect.github.com/remix-run/react-router )
([source](https://redirect.github.com/remix-run/react-router/tree/HEAD/packages/react-router ))
| [`7.1.3` ->
`7.1.4`](https://renovatebot.com/diffs/npm/react-router/7.1.3/7.1.4 ) |
[](https://docs.renovatebot.com/merge-confidence/ )
|
[](https://docs.renovatebot.com/merge-confidence/ )
|
[](https://docs.renovatebot.com/merge-confidence/ )
|
[](https://docs.renovatebot.com/merge-confidence/ )
|
---
### Release Notes
<details>
<summary>remix-run/react-router (react-router)</summary>
###
[`v7.1.4`](https://redirect.github.com/remix-run/react-router/blob/HEAD/packages/react-router/CHANGELOG.md#714 )
[Compare
Source](https://redirect.github.com/remix-run/react-router/compare/react-router@7.1.3...react-router@7.1.4 )
##### Patch Changes
- Internal reorg to clean up some duplicated route module types
([#​12799](https://redirect.github.com/remix-run/react-router/pull/12799 ))
- Properly handle status codes that cannot have a body in single fetch
responses (204, etc.)
([#​12760](https://redirect.github.com/remix-run/react-router/pull/12760 ))
- Stop erroring on resource routes that return raw strings/objects and
instead serialize them as `text/plain` or `application/json` responses
([#​12848](https://redirect.github.com/remix-run/react-router/pull/12848 ))
- This only applies when accessed as a resource route without the
`.data` extension
- When accessed from a Single Fetch `.data` request, they will still be
encoded via `turbo-stream`
- REMOVE: limit matchRoutes optimization to client side
([#​12882](https://redirect.github.com/remix-run/react-router/pull/12882 ))
- Optimize Lazy Route Discovery path discovery to favor a single
`querySelectorAll` call at the `body` level instead of many calls at the
sub-tree level
([#​12731](https://redirect.github.com/remix-run/react-router/pull/12731 ))
- - Properly bubble headers as `errorHeaders` when throwing a `data()`
result
([#​12846](https://redirect.github.com/remix-run/react-router/pull/12846 ))
- Avoid duplication of `Set-Cookie` headers could be duplicated if also
returned from `headers`
- Optimize route matching by skipping redundant `matchRoutes` calls when
possible
([#​12800](https://redirect.github.com/remix-run/react-router/pull/12800 ))
</details>
---
### Configuration
📅 **Schedule**: Branch creation - "* * * * 1-5" (UTC), Automerge - At
any time (no schedule defined).
🚦 **Automerge**: Enabled.
♻ **Rebasing**: Never, or you tick the rebase/retry checkbox.
🔕 **Ignore**: Close this PR and you won't be reminded about this update
again.
---
- [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check
this box
---
This PR was generated by [Mend Renovate](https://mend.io/renovate/ ).
View the [repository job
log](https://developer.mend.io/github/TryGhost/Ghost ).
<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzOS4xNDUuMCIsInVwZGF0ZWRJblZlciI6IjM5LjE0NS4wIiwidGFyZ2V0QnJhbmNoIjoibWFpbiIsImxhYmVscyI6W119-->
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-01-30 17:55:28 +00:00
renovate[bot]
e7336585d0
Pin dependencies
2025-01-29 12:19:43 +01:00
Peter Zimon
19d9c3e3e2
Post analytics router update ( #22050 )
...
ref https://linear.app/ghost/issue/DES-1082/router-prototype
This task is about testing, figuring out pros and cons of React Router
compared to our current (custom) router, and what effort and risks are
involved in migrating to it.
2025-01-23 16:48:29 +01:00
Michael Barrett
20a1b64a15
Handle null values for post content & excerpt in admin-x-activitypub ( #21989 )
...
Handle null values for post content & excerpt in admin-x-activitypub
refs [TryGhost/ActivityPub#245 ](https://github.com/TryGhost/ActivityPub/pull/245 )
In [TryGhost/ActivityPub#245 ](https://github.com/TryGhost/ActivityPub/pull/245 ) we changed the service to allow for `null` values for the `content` & `excerpt` field. This means we could potentially be passing `null` values to `stripHtml` which would cause the app to crash. This commit ensures we always pass a string to `stripHtml` as well as updating the types to reflect what the value can be
2025-01-09 15:32:06 +00:00
Sag
e67e2411f2
✨ Added option to disable free signups ( #21862 )
...
ref https://linear.app/ghost/issue/ENG-1235
- problem: today, when a publisher removes the "free" tier from the
Portal settings, it doesn't disable free signups entirely. It removes
the free tier from the Portal UI, but free signup is still possible via
other avenues (signup form in themes, embeddable signup form on another
site, direct API call). This creates confusion/frustration for
publishers who thought they disabled free signups, but are still getting
unwanted free signups (spam). There is no way to disable free signups
entirely.
- solution: introduced a new "paid-members only" subscription access
setting, which blocks all free signups at the API level. If chosen, the
free tier is hidden in Portal and all free signup are blocked at the API
level with a readable error message (`This site only accepts paid
members.`)

2024-12-20 02:43:48 +08:00
Peter Zimon
252918b70c
Adding Posts analytics React app ( #21878 )
...
ref https://linear.app/ghost/issue/DES-1021/create-posts-app
Part of establishing React patterns in Ghost is to build a well-defined
and fairly self-encapsulated app through which we can test assumptions
and define best practices. Our guinea pig is Post analytics for this
purpose. This PR creates a new React app (posts) using Shade (the new
design system).
2024-12-19 12:01:08 +01:00
Sodbileg Gansukh
65bec88187
Added 403 errors to the error handler ( #21898 )
...
ref ENG-745
- added permission related errors to list of error types to be handled
- previously, generic error messages were displayed when permission
errors are thrown
- this would make it possible to display the actual message returned
from the API in toasts
2024-12-17 18:21:48 +08:00
Peter Zimon
fbbf34e1d0
Added Shade fundamentals ( #21812 )
...
ref
https://linear.app/ghost/issue/DES-1020/create-new-react-app-for-shade
Shade is our new design system that follows React best practices and
leverages third-party libraries extensively. It's built on ShadCN/UI
which is one of the most popular React UI libraries today. This commit
adds an (almost) empty React app, set up to be the a starting point of
Shade.
2024-12-11 15:55:58 +01:00
Sodbileg Gansukh
ea0e598bf2
Added custom fonts feature check ( #21738 )
...
ref DES-1011
- previously, we were hiding the old font settings from the official themes without checking if they support the custom fonts or not
- now we use the gscan warning info to check this — only when there's support, we hide the settings which means users with the older version will get the old settings back
- also added two new tests for this procedure
2024-12-04 13:42:44 +08:00
Djordje Vlaisavljevic
550a52598c
Fixed WordPress article feature image not showing ( #21779 )
...
ref https://linear.app/ghost/issue/AP-619/feature-images-from-wordpress-are-[object-object]
- WordPress puts the feature image into an `image` object, rather than putting the URL directly into an `image` string. We now properly render this.
2024-12-02 15:50:27 +00:00
Sodbileg Gansukh
1f501c1e58
Added author name as an additional check for official themes ( #21665 )
...
ref DES-982
- we're hiding font-related theme settings from official themes to make room for the new custom font settings
- this adds author name as an additional check on top of the existing ones (theme name and corresponding setting keys)
2024-11-21 12:04:24 +08:00
Djordje Vlaisavljevic
3709a4811e
Improved ActivityPub drawer view UI ( #21521 )
...
ref https://linear.app/ghost/issue/AP-507/inbox-view-missing-min-width-for-inbox-card , https://linear.app/ghost/issue/AP-562/remove-unused-viewfollowersmodal-and-viewfollowingmodal-files , https://linear.app/ghost/issue/AP-559/add-post-stats-and-buttons-to-articles-in-drawer-view , https://linear.app/ghost/issue/AP-468/drawer-visual-refinements , https://linear.app/ghost/issue/AP-558/add-actor-info-to-articles-in-drawer-view , https://linear.app/ghost/issue/AP-573/add-anchor-link-to-replies-in-the-drawer
- Made `Articles` in drawer view wider for better reading experience
- Added `Actor` info to `Articles` in drawer view for more context about who posted it
- Added `Like` and `Reply` buttons and counters to `Articles` in drawer view
- Clicking on a Reply notification or Reply icon in the drawer view now scrolls you directly to replies
- Removed modals we’re no longer using
- Updated `RoutingProvider` so it can work without any modals passed to
it
2024-11-07 15:59:29 +00:00
Ronald Langeveld
1c95acfd57
Fixed flaky Admin X design tests ( #21426 )
...
ref ONC-478
- Admin X design tests became flaky largely due to the implementation of
a debounce.
- Initially running a `waitForTimeout` helped to give the environment
enough time to ensure that the specific requests are made, however it
proved to be unpredictable across CI and locally.
- We then replaced `waitForTimeout` in with `waitForRequest` to ensure
tests reliably wait for specific requests.
- Updated logic to check `x-ghost-preview` headers directly, ensuring
the correct response headers are captured and tested against
- Improved stability by using request interception and matching,
preventing debounce issues in the tests.
2024-10-28 17:25:05 +09:00
Aileen Booker
c1ce322e86
Custom fonts ( #21337 )
...
- Adding custom fonts for themes behind a feature flag
- Introduces new `@tryghost/custom-fonts` module to manage custom fonts
- UI updates for Branding and Theme settings
---------
Co-authored-by: Fabien O'Carroll <fabien@allou.is>
Co-authored-by: Sodbileg Gansukh <sodbileg.gansukh@gmail.com>
Co-authored-by: Peter Zimon <peter.zimon@gmail.com>
Co-authored-by: Sanne de Vries <sannedv@protonmail.com>
Co-authored-by: Daniël van der Winden <danielvanderwinden@ghost.org>
2024-10-24 07:43:08 -04:00
renovate[bot]
b70bb13fb4
Update sentry-javascript monorepo to v7.119.2
2024-10-15 15:57:58 +02:00
Steve Larson
2157cbfc20
🌐 Updated packages for improved i18n support ( #21218 )
...
no ref
We've shipped quite a few updates to our i18n package these past couple
weeks and are due for an update to the consuming packages. Special
thanks to our community contributors for the translations, and in
particular to @cathysarisky for their continued effort!
2024-10-03 22:27:16 +00:00
Michael Barrett
8fa9fb9c25
Updated search to be dynamic in admin-x-activitypub app ( #21099 )
...
refs
[AP-352](https://linear.app/tryghost/issue/AP-352/search-for-mastodon-usernames-in-ghost-admin )
Updated the search functionality in the admin-x-activitypub app to be
dynamic and utilise the search API endpoint provided by the activitypub
service
---------
Co-authored-by: Djordje Vlaisavljevic <dzvlais@gmail.com>
2024-09-30 11:32:05 +01:00
renovate[bot]
c96744156e
Update dependency @playwright/test to v1.46.1 ( #20866 )
2024-09-06 10:35:50 -07:00
Chris Raible
07932325f4
Added type checks to admin-x-design-system unit tests ( #20863 )
...
no issue
- Previously we weren't running the type checks in the
`admin-x-design-system` in CI, because we only run `yarn test:unit` in
CI. This adds the typechecks to the `yarn test:unit` command so CI will
fail if the type checks fail.
2024-09-05 16:15:15 -07:00
Daniel Lockyer
33dd6b6b49
Removed concurrently from building apps
...
ref https://linear.app/tryghost/issue/DEV-20/faster-builds
- we added concurrently because, in theory, it should make builds faster
by utilizing more cores
- however, when combined with Nx, it seems that we are trying to exceed
the number of cores, which actually makes individual builds slower
- I've removed concurrently from the apps, which should improve the
build time significantly
2024-09-02 12:06:27 +02:00
renovate[bot]
91e8aa1271
Update dependency jsdom to v24.1.3
2024-08-26 09:44:19 +02:00
Kevin Ansfield
27123844dc
Added donation notification toggle to user settings
...
closes https://linear.app/tryghost/issue/PLG-155
- added checkbox when "stripe enabled" check is true
2024-08-20 16:00:32 +01:00
renovate[bot]
dc7abe4712
Update sentry-javascript monorepo to v7.119.0
2024-08-15 15:11:53 +02:00
renovate[bot]
eb7024da34
Update testing-library monorepo
2024-08-07 09:59:15 +02:00
Fabien 'egg' O'Carroll
978ccc8483
Updated types for attributedTo
property of Objects ( #20715 )
...
ref https://github.com/TryGhost/Ghost/commit/5376bd52c7afb91b
This should have been included in the referenced commit
2024-08-05 11:20:34 +00:00
Djordje Vlaisavljevic
bbec5c0ba6
Added support for displaying different types of Mastodon notes ( #20684 )
...
- Added logic for displaying different attachments for Mastodon Notes
(images, audio, video)
- Centered the feed on the screen for better focus and made the Feed
layout the default one
- Moved Following and Followers counters to the new “Profile” tab
---------
Co-authored-by: Fabien O'Carroll <fabien@allou.is>
2024-07-30 10:40:10 +01:00
renovate[bot]
cbd994d033
Update dependency jsdom to v24.1.1
2024-07-22 09:10:23 +02:00
Sag
a8533c9dc9
Cleaned up "Embeddable signup form" GA feature flag ( #20577 )
...
no issue
- "Embeddable signup form" feature was released in Ghost
[v5.51.0](https://github.com/TryGhost/Ghost/releases/tag/v5.51.0 )
(commit: 5e7edb9
)
- [Project
details](https://www.notion.so/ghost/Embeddable-signup-forms-1632735f1f894d01be491aeffb48bd45?pvs=4 )
2024-07-10 10:46:04 +00:00
Sag
5dfee47fca
🐛 Fixed default recipients setting not showing label filters ( #20480 )
...
fixes https://linear.app/tryghost/issue/SLO-171
- problem: when the Default Recipient setting is set to "Specific
people" and is filtered by a label, we were not able to render the label
correctly
- cause: during the rendering, we look for labels by `id`, but they're
stored by `slug` in the database setting
`editor_default_email_recipients_filter`
- solution: allow to look by the relevant key, by introducing a
programmatic `key` to search for
Before the fix:
https://github.com/TryGhost/Ghost/assets/6225080/aed5fc31-6409-4986-aafe-557073c7f355
After the fix:
https://github.com/TryGhost/Ghost/assets/6225080/f35b2607-5f22-42be-b1bb-92f35ccc9ab7
2024-06-27 17:47:26 +02:00
Fabien 'egg' O'Carroll
0cf3d4d3d5
Updated ActivityPub API root path ( #20471 )
...
ref https://linear.app/tryghost/issue/MOM-201
We will be proxying to `/.ghost/activitypub` rather than just
`/activitypub`
2024-06-27 11:27:25 +07:00
Fabien O'Carroll
b81839f2fe
Updated ActivityPub Admin X to work with Fedify API
2024-06-24 18:07:09 +01:00