Closed renovate[bot] closed 1 month ago
Renovate failed to update an artifact related to this branch. You probably do not want to merge this PR as-is.
♻ Renovate will retry this branch, including artifacts, only when one of the following happens:
The artifact failure details are included below:
/opt/containerbase/tools/corepack/0.28.0/18.14.2/node_modules/corepack/dist/lib/corepack.cjs:23250
const isURL = URL.canParse(range);
^
TypeError: URL.canParse is not a function
at parseSpec (/opt/containerbase/tools/corepack/0.28.0/18.14.2/node_modules/corepack/dist/lib/corepack.cjs:23250:21)
at loadSpec (/opt/containerbase/tools/corepack/0.28.0/18.14.2/node_modules/corepack/dist/lib/corepack.cjs:23313:11)
at async Engine.findProjectSpec (/opt/containerbase/tools/corepack/0.28.0/18.14.2/node_modules/corepack/dist/lib/corepack.cjs:23487:22)
at async Engine.executePackageManagerRequest (/opt/containerbase/tools/corepack/0.28.0/18.14.2/node_modules/corepack/dist/lib/corepack.cjs:23539:24)
at async Object.runMain (/opt/containerbase/tools/corepack/0.28.0/18.14.2/node_modules/corepack/dist/lib/corepack.cjs:24232:5)
Node.js v18.14.2
Renovate failed to update an artifact related to this branch. You probably do not want to merge this PR as-is.
♻ Renovate will retry this branch, including artifacts, only when one of the following happens:
The artifact failure details are included below:
/opt/containerbase/tools/corepack/0.28.1/18.14.2/node_modules/corepack/dist/lib/corepack.cjs:23253
const isURL = URL.canParse(range);
^
TypeError: URL.canParse is not a function
at parseSpec (/opt/containerbase/tools/corepack/0.28.1/18.14.2/node_modules/corepack/dist/lib/corepack.cjs:23253:21)
at loadSpec (/opt/containerbase/tools/corepack/0.28.1/18.14.2/node_modules/corepack/dist/lib/corepack.cjs:23316:11)
at async Engine.findProjectSpec (/opt/containerbase/tools/corepack/0.28.1/18.14.2/node_modules/corepack/dist/lib/corepack.cjs:23490:22)
at async Engine.executePackageManagerRequest (/opt/containerbase/tools/corepack/0.28.1/18.14.2/node_modules/corepack/dist/lib/corepack.cjs:23542:24)
at async Object.runMain (/opt/containerbase/tools/corepack/0.28.1/18.14.2/node_modules/corepack/dist/lib/corepack.cjs:24235:5)
Node.js v18.14.2
This PR contains the following updates:
^5.7.2
->^6.5.5
Release Notes
ember-intl/ember-intl (ember-intl)
### [`v6.5.5`](https://togithub.com/ember-intl/ember-intl/releases/tag/v6.5.5): Added @babel/core as a dependency (required by ember-cli-babel@v8) [Compare Source](https://togithub.com/ember-intl/ember-intl/compare/v6.5.4...v6.5.5) Thanks to [@mkszepp](https://togithub.com/mkszepp). (The patch can also be found in `v7.0.0-beta.5`.) ### [`v6.5.4`](https://togithub.com/ember-intl/ember-intl/releases/tag/v6.5.4): Removed broccoli-merge-files (security patch) [Compare Source](https://togithub.com/ember-intl/ember-intl/compare/v6.5.3...v6.5.4) Thanks to [@LucasHill](https://togithub.com/LucasHill) for removing the dependency. (The patch can also be found in `v7.0.0-beta.3`.) ### [`v6.5.3`](https://togithub.com/ember-intl/ember-intl/releases/tag/v6.5.3): Fixed a memory leak introduced in v6.3.0. Ensured that registerDestructor is called when helpers are destroyed. [Compare Source](https://togithub.com/ember-intl/ember-intl/compare/v6.5.2...v6.5.3) > \[!IMPORTANT] > If your `ember-intl` is currently between versions `6.3.0` and `6.5.2`, please update it to `6.5.3` or higher. Thanks to [@johanrd](https://togithub.com/johanrd) for investigating the issue and providing the fix quickly. ### [`v6.5.2`](https://togithub.com/ember-intl/ember-intl/releases/tag/v6.5.2): Updated ember-cli-typescript to v5.3.0. Deprecated `ember g translation`. [Compare Source](https://togithub.com/ember-intl/ember-intl/compare/v6.5.1...v6.5.2) Updating `ember-cli-typescript` will help remove warnings that `ember-intl` (along with other addons) might have produced. ```sh WARNING: ember-cli-typescript requires ember-cli-babel ^7.17.0, but you have version 8.0.0 installed; your TypeScript files may not be transpiled correctly ``` > \[!IMPORTANT] > The blueprint files, which make `ember g translationExample:
```diff - import { render, settled } from '@ember/test-helpers'; + import { render } from '@ember/test-helpers'; import { hbs } from 'ember-cli-htmlbars'; import { setLocale, setupIntl } from 'ember-intl/test-support'; import { setupRenderingTest } from 'ember-qunit'; import { module, test } from 'qunit'; module('Integration | Component | hello', function (hooks) { setupRenderingTest(hooks); setupIntl(hooks); test('it renders', async function (assert) { await render(hbs`setLocale()
Example:
```diff - import { render, settled } from '@ember/test-helpers'; + import { render } from '@ember/test-helpers'; import { hbs } from 'ember-cli-htmlbars'; import { addTranslations, setupIntl, t } from 'ember-intl/test-support'; import { setupRenderingTest } from 'ember-qunit'; import { module, test } from 'qunit'; module('Integration | Component | lazy-hello', function (hooks) { setupRenderingTest(hooks); setupIntl(hooks); test('it renders', async function (assert) { await render(hbs`addTranslations()
Before: A classic component with macros
```ts /* eslint-disable @typescript-eslint/no-unsafe-declaration-merging, ember/no-classic-classes, ember/no-classic-components, ember/no-computed-properties-in-native-classes, import/export */ import Component from '@ember/component'; import type { Registry as Services } from '@ember/service'; import { intl, raw, t } from 'ember-intl/macros'; export default class MyComponent extends Component { tagName = ''; @intl('fruits', function (_intl: Services['intl']) { // @ts-expect-error: 'this' implicitly has type 'any' because it does not have a type annotation. return _intl.formatList(this.fruits); }) declare outputForIntl: string; @t('hello.message', { name: 'name', }) declare outputForT: string; @t('hello.message', { name: raw('name'), }) declare outputForTWithRaw: string; } ```After: A Glimmer component with getters
```ts import { inject as service, type Registry as Services } from '@ember/service'; import Component from '@glimmer/component'; export default class MyComponent extends Component { @service declare intl: Services['intl']; get outputForIntl(): string { return this.intl.formatList(this.args.fruits); } get outputForT(): string { return this.intl.t('hello.message', { name: this.args.name, }); } get outputForTWithRaw(): string { return this.intl.t('hello.message', { name: 'name', }); } } ```Example:
```diff import type { TOC } from '@ember/component/template-only'; - import t from 'ember-intl/helpers/t'; + import { t } from 'ember-intl'; interface HelloSignature { Args: { name: string; }; } const HelloComponent: TOCt()
Example of a migration
```ts /* addon/helpers/legacy-format-money.ts */ import BaseHelper from 'ember-intl/helpers/-format-base'; import { legacyFormatMoney } from '../utils/index'; // eslint-disable-next-line @typescript-eslint/ban-ts-comment // @ts-ignore: Type 'typeof AbstractHelper' is not a constructor function type. export default class LegacyFormatMoneyHelper extends BaseHelper { format(money, options): string { // eslint-disable-next-line @typescript-eslint/ban-ts-comment // @ts-ignore: Property 'intl' does not exist on type 'LegacyFormatMoneyHelper' return legacyFormatMoney(this.intl, money, options); } } ``` ```ts /* addon/helpers/legacy-format-money.ts */ import Helper from '@ember/component/helper'; import { inject as service } from '@ember/service'; import type { IntlService } from 'ember-intl'; import { legacyFormatMoney } from '../utils/index'; export default class LegacyFormatMoneyHelper extends Helper { @service declare intl: IntlService; constructor() { // eslint-disable-next-line prefer-rest-params super(...arguments); // @ts-expect-error: Property 'onLocaleChanged' is private and only accessible within class 'IntlService'. this.intl.onLocaleChanged(this.recompute, this); } compute([money], options): string { return legacyFormatMoney(this.intl, money, options); } } ```Sample patch file for
```diff diff --git a/addon/-private/formatters/format-message.ts b/addon/-private/formatters/format-message.ts --- a/addon/-private/formatters/format-message.ts +++ b/addon/-private/formatters/format-message.ts @@ -12,7 +12,7 @@ import type { PrimitiveType } from 'intl-messageformat'; import Formatter from './-base'; const { Handlebars: { - // @ts-expect-error Upstream types are incomplete. + // @ts-ignore: Upstream types are incomplete. Utils: { escapeExpression }, }, } = Ember; @@ -35,12 +35,13 @@ function escapeOptionsember-intl@6.1.1
Configuration
📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR has been generated by Mend Renovate. View repository job log here.