Media core
It holds shared code between MediaComponents like models, providers, interfaces and utilities
yarn add @atlaskit/media-core
35.0.0
Major Changes
-
#117363
10a0f7f6c2027
- This package'speerDependencies
have been adjusted forreact
and/orreact-dom
to reflect the status of only supporting React 18 going forward. No explicit breaking change to React support has been made in this release, but this is to signify going forward, breaking changes for React 16 or React 17 may come via non-major semver releases.Please refer this community post for more details: https://community.developer.atlassian.com/t/rfc-78-dropping-support-for-react-16-and-rendering-in-a-react-18-concurrent-root-in-jira-and-confluence/87026
Media Core is a singleton package
Having multiple versions of Media Core installed can result in potential issues, such as media preview failures.
You must ensure that your application dependencies only resolve to a unique package version, if you are:
- A platform consumer — i.e. you are using Media Core directly in a npm package, for instance in a monorepo. Define Media Core in your package.json file as a
peerDependency
anddevDependency
(for local testing). - A product consumer — i.e. you are working directly into your application. Define Media Core in your package.json file as a direct dependency.
If you have any questions or need assistance in consuming this package correctly, please reach out to the #help-media-platform channel.
Internal Media Use Only
Media Core is intended for internal use by the Media Platform and as a transitive dependency of a media package within your product.
Direct use of this component is not supported.
Consider using one of these packages instead:
Note: This component is designed for internal Atlassian development.
External contributors will be able to use this component but will not be able to submit issues.
RxJS compatibility
Media Core currently requires rxjs@^5.5.0 as peer dependency.
This package is required by other Media Components, and should not be used directly.
It holds shared code between Media Components, such as:
- models
- providers
- interfaces