Skip to content

Commit

Permalink
Update Eslint packages (#40527)
Browse files Browse the repository at this point in the history
* Update Eslint packages
* Apparently some incidental dep update added a new TS error. Fix it.

---------

Co-authored-by: Renovate Bot <bot@renovateapp.com>
Co-authored-by: Brad Jorsch <brad.jorsch@automattic.com>

Committed via a GitHub action: https://github.com/Automattic/jetpack/actions/runs/12241481163

Upstream-Ref: Automattic/jetpack@aa292b9
  • Loading branch information
anomiex authored and matticbot committed Dec 9, 2024
1 parent 5939742 commit 28d9d92
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 5 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,10 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/)
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [0.25.2-alpha] - unreleased

This is an alpha version! The changes listed here are not final.

## [0.25.1] - 2024-12-09
### Changed
- AI Assistant: Add disclaimer to image generation modals [#40397]
Expand Down Expand Up @@ -476,6 +480,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- AI Client: stop using smart document visibility handling on the fetchEventSource library, so it does not restart the completion when changing tabs. [#32004]
- Updated package dependencies. [#31468] [#31659] [#31785]

[0.25.2-alpha]: https://github.com/Automattic/jetpack-ai-client/compare/v0.25.1...v0.25.2-alpha
[0.25.1]: https://github.com/Automattic/jetpack-ai-client/compare/v0.25.0...v0.25.1
[0.25.0]: https://github.com/Automattic/jetpack-ai-client/compare/v0.24.3...v0.25.0
[0.24.3]: https://github.com/Automattic/jetpack-ai-client/compare/v0.24.2...v0.24.3
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
/// <reference types="react" resolution-mode="require"/>
declare const useFairUsageNoticeMessage: () => import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>>;
import { type Element } from '@wordpress/element';
declare const useFairUsageNoticeMessage: () => Element;
export default useFairUsageNoticeMessage;
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"private": false,
"name": "@automattic/jetpack-ai-client",
"version": "0.25.1",
"version": "0.25.2-alpha",
"description": "A JS client for consuming Jetpack AI services",
"homepage": "https://github.com/Automattic/jetpack/tree/HEAD/projects/js-packages/ai-client/#readme",
"bugs": {
Expand Down
4 changes: 2 additions & 2 deletions src/logo-generator/hooks/use-fair-usage-notice-message.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { useSelect } from '@wordpress/data';
import { createInterpolateElement } from '@wordpress/element';
import { createInterpolateElement, type Element } from '@wordpress/element';
import { __, sprintf } from '@wordpress/i18n';
import getRedirectUrl from '../../../../components/tools/jp-redirect/index.js';
/**
Expand All @@ -11,7 +11,7 @@ import { STORE_NAME } from '../store/index.js';
*/
import type { Selectors } from '../store/types.js';

const useFairUsageNoticeMessage = () => {
const useFairUsageNoticeMessage = (): Element => {
const { usagePeriod } = useSelect( select => {
const selectors: Selectors = select( STORE_NAME );
return {
Expand Down

0 comments on commit 28d9d92

Please sign in to comment.