@atlaskit/anonymous-assets 0.0.19 → 1.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,26 @@
1
1
  # @atlassian/anonymous-assets
2
2
 
3
+ ## 1.0.0
4
+
5
+ ### Major Changes
6
+
7
+ - [`deb3d6a6498e8`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/deb3d6a6498e8) -
8
+ Removed `react-intl-next` alias and replaced all usages with `react-intl` directly.
9
+
10
+ What changed: The `react-intl-next` npm alias (which resolved to `react-intl@^5`) has been
11
+ removed. All imports now reference `react-intl` directly, and `peerDependencies` have been updated
12
+ to `"^5.25.1 || ^6.0.0 || ^7.0.0"`.
13
+
14
+ How consumer should update their code: Ensure `react-intl` is installed at a version satisfying
15
+ `^5.25.1 || ^6.0.0 || ^7.0.0`. If your application was using `react-intl-next` as an npm alias, it
16
+ can be safely removed. Replace any remaining `react-intl-next` imports with `react-intl`.
17
+
18
+ ## 0.0.20
19
+
20
+ ### Patch Changes
21
+
22
+ - Updated dependencies
23
+
3
24
  ## 0.0.19
4
25
 
5
26
  ### Patch Changes
@@ -7,7 +7,7 @@ Object.defineProperty(exports, "__esModule", {
7
7
  exports.getIntl = void 0;
8
8
  var _regenerator = _interopRequireDefault(require("@babel/runtime/regenerator"));
9
9
  var _asyncToGenerator2 = _interopRequireDefault(require("@babel/runtime/helpers/asyncToGenerator"));
10
- var _reactIntlNext = require("react-intl-next");
10
+ var _reactIntl = require("react-intl");
11
11
  var _browserApis = require("@atlaskit/browser-apis");
12
12
  var _i18n = require("../../i18n");
13
13
  var _en = _interopRequireDefault(require("../../i18n/en"));
@@ -33,8 +33,8 @@ var getIntl = exports.getIntl = /*#__PURE__*/function () {
33
33
  return fetchMessages(key);
34
34
  case 4:
35
35
  messages = _context.sent;
36
- cache = (0, _reactIntlNext.createIntlCache)();
37
- intl = (0, _reactIntlNext.createIntl)({
36
+ cache = (0, _reactIntl.createIntlCache)();
37
+ intl = (0, _reactIntl.createIntl)({
38
38
  locale: key,
39
39
  messages: messages
40
40
  }, cache);
@@ -4,8 +4,8 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
  exports.messages = void 0;
7
- var _reactIntlNext = require("react-intl-next");
8
- var messages = exports.messages = (0, _reactIntlNext.defineMessages)({
7
+ var _reactIntl = require("react-intl");
8
+ var messages = exports.messages = (0, _reactIntl.defineMessages)({
9
9
  alligator: {
10
10
  id: 'platform.anonymous-asset-name.alligator',
11
11
  defaultMessage: 'Anonymous Alligator',
@@ -1,4 +1,4 @@
1
- import { createIntl, createIntlCache } from 'react-intl-next';
1
+ import { createIntl, createIntlCache } from 'react-intl';
2
2
  import { getDocument } from '@atlaskit/browser-apis';
3
3
  import { locales } from '../../i18n';
4
4
  import enMessages from '../../i18n/en';
@@ -1,4 +1,4 @@
1
- import { defineMessages } from 'react-intl-next';
1
+ import { defineMessages } from 'react-intl';
2
2
  export const messages = defineMessages({
3
3
  alligator: {
4
4
  id: 'platform.anonymous-asset-name.alligator',
@@ -1,6 +1,6 @@
1
1
  import _asyncToGenerator from "@babel/runtime/helpers/asyncToGenerator";
2
2
  import _regeneratorRuntime from "@babel/runtime/regenerator";
3
- import { createIntl, createIntlCache } from 'react-intl-next';
3
+ import { createIntl, createIntlCache } from 'react-intl';
4
4
  import { getDocument } from '@atlaskit/browser-apis';
5
5
  import { locales } from '../../i18n';
6
6
  import enMessages from '../../i18n/en';
@@ -1,4 +1,4 @@
1
- import { defineMessages } from 'react-intl-next';
1
+ import { defineMessages } from 'react-intl';
2
2
  export var messages = defineMessages({
3
3
  alligator: {
4
4
  id: 'platform.anonymous-asset-name.alligator',
@@ -1,4 +1,4 @@
1
- import type { MessageDescriptor } from 'react-intl-next';
1
+ import type { MessageDescriptor } from 'react-intl';
2
2
  export declare const ANONYMOUS_ASSETS: readonly [
3
3
  {
4
4
  readonly id: 'alligator';
@@ -1,2 +1,2 @@
1
- import { type IntlShape } from 'react-intl-next';
1
+ import { type IntlShape } from 'react-intl';
2
2
  export declare const getIntl: () => Promise<IntlShape>;
@@ -1,3 +1,3 @@
1
- import { type MessageDescriptor } from 'react-intl-next';
1
+ import { type MessageDescriptor } from 'react-intl';
2
2
  import type { AnonymousAssetId } from './types';
3
3
  export declare const messages: Record<AnonymousAssetId, MessageDescriptor>;
@@ -1,4 +1,4 @@
1
- import type { MessageDescriptor } from 'react-intl-next';
1
+ import type { MessageDescriptor } from 'react-intl';
2
2
  export declare const ANONYMOUS_ASSETS: readonly [
3
3
  {
4
4
  readonly id: 'alligator';
@@ -1,2 +1,2 @@
1
- import { type IntlShape } from 'react-intl-next';
1
+ import { type IntlShape } from 'react-intl';
2
2
  export declare const getIntl: () => Promise<IntlShape>;
@@ -1,3 +1,3 @@
1
- import { type MessageDescriptor } from 'react-intl-next';
1
+ import { type MessageDescriptor } from 'react-intl';
2
2
  import type { AnonymousAssetId } from './types';
3
3
  export declare const messages: Record<AnonymousAssetId, MessageDescriptor>;
package/package.json CHANGED
@@ -24,21 +24,22 @@
24
24
  "@atlaskit/afm-i18n-platform-elements-anonymous-assets": "2.7.0",
25
25
  "@atlaskit/browser-apis": "^0.0.1",
26
26
  "@atlaskit/css": "^0.19.0",
27
- "@atlaskit/primitives": "^18.1.0",
28
- "@atlaskit/tokens": "^12.0.0",
27
+ "@atlaskit/primitives": "^19.0.0",
28
+ "@atlaskit/tokens": "^13.0.0",
29
29
  "@babel/runtime": "^7.0.0",
30
- "@compiled/react": "^0.20.0",
31
- "react-intl-next": "npm:react-intl@^5.18.1"
30
+ "@compiled/react": "^0.20.0"
32
31
  },
33
32
  "peerDependencies": {
34
- "react": "^18.2.0"
33
+ "react": "^18.2.0",
34
+ "react-intl": "^5.25.1 || ^6.0.0 || ^7.0.0"
35
35
  },
36
36
  "devDependencies": {
37
37
  "@af/integration-testing": "workspace:^",
38
38
  "@af/visual-regression": "workspace:^",
39
39
  "@atlaskit/ssr": "workspace:^",
40
40
  "@testing-library/react": "^16.3.0",
41
- "react-dom": "^18.2.0"
41
+ "react-dom": "^18.2.0",
42
+ "react-intl": "^6.6.2"
42
43
  },
43
44
  "techstack": {
44
45
  "@atlassian/frontend": {
@@ -79,7 +80,7 @@
79
80
  }
80
81
  },
81
82
  "name": "@atlaskit/anonymous-assets",
82
- "version": "0.0.19",
83
+ "version": "1.0.0",
83
84
  "description": "Assets for anonymous users",
84
85
  "author": "Atlassian Pty Ltd",
85
86
  "publishConfig": {