Open renovate[bot] opened 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.2/18.14.2/node_modules/corepack/dist/lib/corepack.cjs:23025
const isURL = URL.canParse(range);
^
TypeError: URL.canParse is not a function
at parseSpec (/opt/containerbase/tools/corepack/0.28.2/18.14.2/node_modules/corepack/dist/lib/corepack.cjs:23025:21)
at loadSpec (/opt/containerbase/tools/corepack/0.28.2/18.14.2/node_modules/corepack/dist/lib/corepack.cjs:23088:11)
at async Engine.findProjectSpec (/opt/containerbase/tools/corepack/0.28.2/18.14.2/node_modules/corepack/dist/lib/corepack.cjs:23262:22)
at async Engine.executePackageManagerRequest (/opt/containerbase/tools/corepack/0.28.2/18.14.2/node_modules/corepack/dist/lib/corepack.cjs:23314:24)
at async Object.runMain (/opt/containerbase/tools/corepack/0.28.2/18.14.2/node_modules/corepack/dist/lib/corepack.cjs:24007:5)
Node.js v18.14.2
This PR contains the following updates:
^5.7.2
->^7.0.3
Release Notes
ember-intl/ember-intl (ember-intl)
### [`v7.0.3`](https://togithub.com/ember-intl/ember-intl/releases/tag/v7.0.3): Refactored intl service [Compare Source](https://togithub.com/ember-intl/ember-intl/compare/v7.0.2...v7.0.3) #### What changed? - \~Updated blueprints to set `inputPath` correctly for v1 addons~ (doesn't work yet; `tests/dummy/config/ember-intl.js` should show `inputPath: 'tests/dummy/translations'`) - Refactored `exists()` and types in the `intl` service - Wrote additional tests and added `ember-lts-5.8` to `ember-try` scenarios ### [`v7.0.2`](https://togithub.com/ember-intl/ember-intl/releases/tag/v7.0.2): Made getTranslation() public and fixed a bug in setOnFormatjsError() [Compare Source](https://togithub.com/ember-intl/ember-intl/compare/v7.0.1...v7.0.2) The `intl` service's `getTranslation()` is now a public method, so that you may keep extracting a translation message's arguments as you might have done with `lookup()` in `v6`. I went with a patch release (instead of a minor), since changing `lookup()` to be a private method in `v7.0.0-beta.6` could be considered a regression. The documentations for `{{t}}` helper and `intl` service have been updated so that end-developers may know what to do when a translation has arguments with missing values. - https://ember-intl.github.io/ember-intl/versions/v7.0.2/docs/helpers/t#passing-data - https://ember-intl.github.io/ember-intl/versions/v7.0.2/docs/services/intl-part-2#gettranslation- - https://ember-intl.github.io/ember-intl/versions/v7.0.2/docs/services/intl-part-2#setonformatjserror- ### [`v7.0.1`](https://togithub.com/ember-intl/ember-intl/releases/tag/v7.0.1): Reintroduced extend to handle deeply nested translation folders [Compare Source](https://togithub.com/ember-intl/ember-intl/compare/v7.0.0...v7.0.1) `7.0.1` patches a regression introduced in `7.0.0-beta.4` (affects Ember apps that set `wrapTranslationsWithNamespace: true`; see [#1895](https://togithub.com/ember-intl/ember-intl/issues/1895)). Thanks to [@pulien](https://togithub.com/pulien) for discovering the issue and providing a reproduction project. ### [`v7.0.0`](https://togithub.com/ember-intl/ember-intl/releases/tag/v7.0.0): Beginning of the 7.x series [Compare Source](https://togithub.com/ember-intl/ember-intl/compare/v6.5.5...v7.0.0) #### Highlights - Minimized API (improved onboarding and project maintainability) - Rewrote `intl` service to provide native types (improved TS and Glint support) - Reduced package size from 133 kB to 79.5 kB (by ~40%) - Rewrote documentation (see Getting Started, Helpers, Services, and Test Helpers) - Created additional docs-apps to test `ember-intl` #### Migration guide To do an incremental update from `6.5.5`, you may install these versions in sequence: 1. `7.0.0-beta.2` 2. `7.0.0-beta.5` 3. `7.0.0-beta.6` 4. `7.0.0` To learn breaking changes, please check https://ember-intl.github.io/ember-intl/docs/migration/v7 and the release notes for each beta version. ### [`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.