Badge
Badge is used to display numeric status data.Generally available
The new badge appearances are stable and ready for adoption. Visual updates are currently behind the platform-dst-lozenge-tag-badge-visual-uplifts feature flag.
21.2.2
Patch Changes
- Updated dependencies
21.2.1
Patch Changes
- Updated dependencies
21.2.0
Minor Changes
bd2c5b0112185, (opens new window) - Remove stale API report artifacts from published Platform packages.
Patch Changes
- Updated dependencies
21.1.0
Minor Changes
-
d82e6f76528ab, (opens new window) - Add direct subpath package exports as part of the linking-platform, search, media, and design-system barrel-removal (de-barrel) migration.These packages now expose their individual modules via explicit
package.jsonexportssubpaths so that consumers can import directly from the leaf module (e.g.@atlaskit/pkg/thing) instead of the package barrel/index. This adds new public entry points without changing or removing any existing exports, so it is a backwards-compatible additive change.No runtime behaviour changes; this is an API-surface (entry-point) addition to support tree-shaking and to unblock removal of the barrel index files.
Patch Changes
- Updated dependencies
21.0.2
Patch Changes
230c4758ef988, (opens new window) - wrap workbench examples
21.0.1
Patch Changes
ccc623d0a1e25, (opens new window) - Experimental React 19 peer dependency support. This patch widens the peer range; CI coverage is partial.
21.0.0
Major Changes
-
48e7d03469b80, (opens new window) - Apply Volt entry-point and barrel-removal standards across these design-system packages. Publicexportsnow resolve directly to./src/*implementations instead of intermediate./src/entry-points/*re-exports, root barrels and remaining entry-point shims are marked deprecated in favour of per-export subpaths, and a few new subpaths are added (@atlaskit/badge/badge-new,@atlaskit/tile/tile-skeleton,@atlaskit/popper/main,@atlaskit/section-message/message,@atlaskit/section-message/message-action).Why this is breaking
Subpaths and the package root can now resolve to the same module instance. Consumers that deep-imported
entry-points/*, orjest.mock()'d a specific subpath may need updates.@atlaskit/image's root export now points at./src/ui/image/index.tsx.@atlaskit/checkbox/checkboxnow exports a namedCheckboxfrom the implementation module (default export retained for backwards compatibility).Migration
Prefer published subpaths over the package root:
import { Checkbox } from '@atlaskit/checkbox/checkbox'; import TextField from '@atlaskit/textfield/text-field'; import Popup from '@atlaskit/popup/popup'; import SectionMessage from '@atlaskit/section-message/message'; import EmptyState from '@atlaskit/empty-state/empty-state';If you imported through internal entry-point modules, switch to the public subpath:
-import Checkbox from '@atlaskit/checkbox/entry-points/checkbox'; +import { Checkbox } from '@atlaskit/checkbox/checkbox';
Patch Changes
- Updated dependencies
20.0.0
Major Changes
-
ca3de4beeea48, (opens new window) - Apply Volt entry-point and multi-export standards viavolt-migrate-package. This is a major change to@atlaskit/badge: the packageexportsmap has been restructured so every public subpath now resolves directly to its./src/*implementation instead of going through an intermediate./src/entry-points/*re-export. No public subpaths were removed.Why this is breaking
Because each subpath now points straight at its implementation module, a subpath and the package root can resolve to the same module instance. Consumers that deep-import the internal
entry-points/*files, or thatjest.mock()a specific subpath, may observe changed resolution/behaviour and need updating.Migration — public imports are unchanged
Importing the published subpaths (or the package root) continues to work as before:
// Still valid — no change required import Badge from '@atlaskit/badge/badge';If you were reaching into the internal entry-point modules, switch to the public subpath:
-import Badge from '@atlaskit/badge/entry-points/badge'; +import Badge from '@atlaskit/badge/badge';Before / after
exportsmap"exports": { ".": "./src/index.tsx", - "./badge": "./src/entry-points/badge.tsx", + "./badge": "./src/badge.tsx", "./new": "./src/entry-points/new.tsx", - "./types": "./src/entry-points/types.tsx", + "./types": "./src/types.tsx", }
Patch Changes
- Updated dependencies
19.1.3
Patch Changes
- Updated dependencies
19.1.2
Patch Changes
- Updated dependencies
19.1.1
Patch Changes
- Updated dependencies
19.1.0
Minor Changes
-
cd097a2111788, (opens new window) - Republish packages depending on@atlaskit/react-compiler-gatingso their published dependency reference is updated to the renamed@atlaskit/react-compiler-gatingscope.The earlier rename of
@atlassian/react-compiler-gatingto@atlaskit/react-compiler-gatingonly bumped the renamed package itself, so dependent packages were never republished and their published versions still referenced the old@atlassian/react-compiler-gatingname, which is not available in the public npm registry. This minor bump republishes all affected packages with the corrected dependency.
Patch Changes
- Updated dependencies
19.0.2
Patch Changes
e13ee97cc69a4, (opens new window) - Fixed the legacy-appearance fallback for thedangerBoldBadge appearance to map toimportantinstead ofremoved. When theplatform-dst-lozenge-tag-badge-visual-upliftsfeature gate is off,dangerBoldnow falls back to the same legacy appearance the existing red danger Badge has always used, preserving the previous visual look for consumers that haven't migrated yet.
19.0.1
Patch Changes
ee28cf33718b0, (opens new window) - Add @atlaskit/react-compiler-gating as a runtime dependency to enable React Compiler platform gating.- Updated dependencies
19.0.0
Major Changes
-
f2dc9097319f0, (opens new window) - ### Dropped support for legacy Typescript 4 types. Typescript 5 is now the new minimum.Removes the
typesVersionsproperty anddist/types-ts4.5directory from the dist.Types are now exclusively via the
"types": "dist/types/index.d.ts"property.- "typesVersions": { - ">=4.5 <4.9": { - "*": [ - "dist/types-ts4.5/*", - "dist/types-ts4.5/index.d.ts" - ] - } - },
Patch Changes
- Updated dependencies
18.7.1
Patch Changes
5dd8cc218e393, (opens new window) - Release packages affected by an issue blocking you from installing <@compiled>/react due to a yarn patch.
18.7.0
Minor Changes
-
bb9a7cf0620fa, (opens new window) - Added 5 new bold semantic Badge appearances behind theplatform-dst-lozenge-tag-badge-visual-upliftsfeature gate:successBold,dangerBold,warningBold,informationBold, anddiscoveryBold.These bold appearances use the new
color.background.<semantic>.subtletokens (introduced in@atlaskit/tokens@13.2.0) as the background and pair withcolor.text.<semantic>.boldertext for stronger visual prominence than the existing subtle semantic appearances. The legacyappearanceMappingandappearanceMappingToOldhelpers route the new appearances correctly when the feature gate is off.
Patch Changes
- Updated dependencies
18.6.0
Minor Changes
7d6e9b5e6e7c6, (opens new window) - Autofix: add explicit package exports (barrel removal)
18.5.0
Minor Changes
-
52b7aa6b3d721, (opens new window) - Added a new/newentrypoint for@atlaskit/lozenge,@atlaskit/badge, and@atlaskit/tag. These entrypoints export the new visual refresh components directly, bypassing theplatform-dst-lozenge-tag-badge-visual-upliftsfeature flag. This is intended for products that don't have Statsig integrated and cannot evaluate the feature flag.New entrypoints:
import Lozenge from '@atlaskit/lozenge/new'import Badge from '@atlaskit/badge/new'import Tag from '@atlaskit/tag/new'
Note: Do not use the
/newentrypoint if your app can evaluate theplatform-dst-lozenge-tag-badge-visual-upliftsfeature flag. These entrypoints will be removed after the visual uplift rollout is complete, which will require updating import paths back to the default entrypoint.
18.4.6
Patch Changes
- Updated dependencies
18.4.5
Patch Changes
ddd049a745d38, (opens new window) - Internal change to how legacy colors are applied. No visual changes.
18.4.4
Patch Changes
- Updated dependencies
18.4.3
Patch Changes
02483200273ec, (opens new window) - Enrol all Design System UI packages into the React Compiler with platform gating via isReactCompilerActivePlatform.- Updated dependencies
18.4.2
Patch Changes
22bf79dbdcdca, (opens new window) - Internal changes to remove unnecessary token fallbacks and imports from@atlaskit/theme
18.4.1
Patch Changes
5db9e3f21a52f, (opens new window) - Internal refactoring- Updated dependencies
18.4.0
Minor Changes
6d33a20db82a1, (opens new window) - [ux] Changed the badge background to use subtler semantic tokens (the new badge is still behind a feature flag platform-dst-lozenge-tag-badge-visual-uplifts).
18.3.4
Patch Changes
- Updated dependencies
18.3.3
Patch Changes
- Updated dependencies
18.3.2
Patch Changes
703d32b94540e, (opens new window) - Tidy up rolled out flag to handle negative numbers.- Updated dependencies
18.3.1
Patch Changes
- Updated dependencies
18.3.0
Minor Changes
7fe3ef93439b5, (opens new window) - [ux] Adds new badge UI uplifts behind a feature flag.
18.2.4
Patch Changes
- Updated dependencies
18.2.3
Patch Changes
- Updated dependencies
18.2.2
Patch Changes
- Updated dependencies
18.2.1
Patch Changes
- Updated dependencies
18.2.0
Minor Changes
2f3c3d27e42b2, (opens new window) - [ux] Updates badge styles to reflect our new visual design language. These changes were previously behind a feature flag and are now fully rolled out.
18.1.6
Patch Changes
74c2f420ee49b, (opens new window) - Internal changes to how border radius is applied.
18.1.5
Patch Changes
3b5b4a919aaaf, (opens new window) - Internal changes to how border radius is applied.- Updated dependencies
18.1.4
Patch Changes
- Updated dependencies
18.1.3
Patch Changes
- Updated dependencies
18.1.2
Patch Changes
- #155802, (opens new window)
08019848e3eab, (opens new window) - Refreshed "issue" terminology. - Updated dependencies
18.1.1
Patch Changes
- #129972, (opens new window)
b2d69a39e6687, (opens new window) - Update@compiled/reactdependency for improved type checking support. - Updated dependencies
18.1.0
Minor Changes
- #117557, (opens new window)
c76a9ef9c9363, (opens new window) - [ux] Add Support for showing negative numbers in Badge Component for Custom Number fields with max prop supported
18.0.0
Major Changes
-
#117363, (opens new window)
10a0f7f6c2027, (opens new window) - This package'speerDependencieshave been adjusted forreactand/orreact-domto 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, (opens new window)
Patch Changes
- Updated dependencies
17.2.0
Minor Changes
- #116138, (opens new window)
b50c5d5d65ae2, (opens new window) - Bump to the latest version of @compiled/react
Patch Changes
- Updated dependencies
17.1.2
Patch Changes
- #111665, (opens new window)
5d898c3d9c9dc, (opens new window) - Remove old codemods and update dependencies.
17.1.1
Patch Changes
- Updated dependencies
17.1.0
Minor Changes
- #109060, (opens new window)
4660ec858a305, (opens new window) - UpdateReactfrom v16 to v18
Patch Changes
- Updated dependencies
17.0.2
Patch Changes
- #104100, (opens new window)
2b1fcf6b76f75, (opens new window) - Update dependencies and remove unused exports.
17.0.1
Patch Changes
- #103261, (opens new window)
313a78293b12a, (opens new window) - Internal patch for testId. Fixes data-testId warning. No functionality change. - Updated dependencies
17.0.0
Major Changes
-
#102595, (opens new window)
d7f60cd2fb693, (opens new window) - Migrated from@emotion/reactto@compiled/reactin order to improve performance, align with the rest of the Atlaskit techstack, and support React 18 Streaming SSR.Please note, in order to use this version of
@atlaskit/badge, you will need to ensure that your bundler is configured to handle.cssimports correctly. Most bundlers come with built-in support for.cssimports, so you may not need to do anything. If you are using a different bundler, please refer to the documentation for that bundler to understand how to handle.cssimports.
16.4.4
Patch Changes
- Updated dependencies
16.4.3
Patch Changes
- #165531, (opens new window)
57f451bda8919, (opens new window) - Adds side-effect config to support Compiled css extraction in third-party apps
16.4.2
Patch Changes
- Updated dependencies
16.4.1
Patch Changes
- Updated dependencies
16.4.0
Minor Changes
-
#127511, (opens new window)
db30e29344013, (opens new window) - Widening range ofreactandreact-dompeer dependencies from^16.8.0 || ^17.0.0 || ~18.2.0to the wider range of ``^16.8.0 || ^17.0.0 || ^18.0.0` (where applicable).This change has been done to enable usage of
react@18.3as well as to have a consistent peer dependency range forreactandreact-domfor/platformpackages.
Patch Changes
- Updated dependencies
16.3.2
Patch Changes
- Updated dependencies
16.3.1
Patch Changes
- Updated dependencies
16.3.0
Minor Changes
- #116976, (opens new window)
055c56ce4412b, (opens new window) - [ux] DSP-19189 We are testing a new visual appearance behind a feature flag. If successful it will be released at a later date.
16.2.3
Patch Changes
- Updated dependencies
16.2.2
Patch Changes
- Updated dependencies
16.2.1
Patch Changes
- Updated dependencies
16.2.0
Minor Changes
- #111696, (opens new window)
20c2d58f6f8a9, (opens new window) - Explicitly set jsxRuntime to classic via pragma comments in order to avoid issues where jsxRuntime is implicitly set to automatic. - #111623, (opens new window)
0392b6e4d865a, (opens new window) - Setsflex-shrink: 0on Badge to avoid it spanning multiple lines when in flex containers that aren't wide enough.
Patch Changes
- Updated dependencies
16.1.2
Patch Changes
- Updated dependencies
16.1.1
Patch Changes
- Updated dependencies
16.1.0
Minor Changes
- #94806, (opens new window)
6f40240a7290, (opens new window) - Removed feature flag from previous release, keeping the newer changes.
16.0.0
Major Changes
-
#88033, (opens new window)
8c3fac87dcc9, (opens new window) - Badge now sets specific font size, line height, font style, and font family properties under the hood. If you previously had Badge wrapped with elements like<em>or<strong>that specify font style or font weight properties, there will be a visual difference as these styles are overriden within Badge. Avoid wrapping Badge in elements that modify text properties.If you need to preserve these styles, wrap the children of Badge instead, for example:
<Badge><em>1</em></Badge>. Please note however this is not fully supported and will not work with themaxprop.
15.3.0
Minor Changes
- #87252, (opens new window)
eef585934a84, (opens new window) - Add support for React 18 in non-strict mode.
Patch Changes
- Updated dependencies
15.2.7
Patch Changes
- #83116, (opens new window)
8d4e99057fe0, (opens new window) - Upgrade Typescript from4.9.5to5.4.2
15.2.6
Patch Changes
- Updated dependencies
15.2.5
Patch Changes
- #81805, (opens new window)
36d7e564977a, (opens new window) - Explicitly coerce value ingetSafeValueutility function to improve compatibility with TypeScript 5
15.2.4
Patch Changes
- Updated dependencies
15.2.3
Patch Changes
- Updated dependencies
15.2.2
Patch Changes
- Updated dependencies
15.2.1
Patch Changes
- #60167, (opens new window)
ae0930df4bfa, (opens new window) - Renamed supportReact18 to runReact18
15.2.0
Minor Changes
- #57070, (opens new window)
42ba4ac39529, (opens new window) - Badge now uses height: min-content so it doesn't stretch when directly used as a flex / grid item.
15.1.16
Patch Changes
- #41725, (opens new window)
8d838ab41ed, (opens new window) - Removed all remaining legacy theming logic from Badge, IconObject, Lozenge and SectionMessage. This only affects the examples and some tests in each component. No internal component logic contained legacy theming.
15.1.15
Patch Changes
- Updated dependencies
15.1.14
Patch Changes
- #37533, (opens new window)
1ed303de3e8, (opens new window) - Updated dependencies - #37419, (opens new window)
95401cac781, (opens new window) - Internal change to component composition. There is no expected change.
15.1.13
Patch Changes
- #36754, (opens new window)
4ae083a7e66, (opens new window) - Use@af/accessibility-testingfor default jest-axe config and jest-axe import in accessibility testing.
15.1.12
Patch Changes
- #36412, (opens new window)
7e4085cd951, (opens new window) - Allow caret version range in @atlaskit/primitives dependency.
15.1.11
Patch Changes
- Updated dependencies
15.1.10
Patch Changes
- Updated dependencies
15.1.9
Patch Changes
- Updated dependencies
15.1.8
Patch Changes
- #35712, (opens new window)
5af07899f5b, (opens new window) - Loosens types to better reflectxcssAPI. - Updated dependencies
15.1.7
Patch Changes
- Updated dependencies
15.1.6
Patch Changes
- #35337, (opens new window)
529814693a1, (opens new window) - Pin version of @atlaskit/primitives so it resolves to correct version
15.1.5
Patch Changes
- #33833, (opens new window)
b8b41649492, (opens new window) - Update how certain background colors are referenced by name. Internal changes only. - Updated dependencies
15.1.4
Patch Changes
- #34922, (opens new window)
779727e307a, (opens new window) - Internal change only. Replace all instances of Box with stable @atlaskit/primitives version.
15.1.3
Patch Changes
- #34124, (opens new window)
77766ad157d, (opens new window) - Enrol packages to push-model consumption in Jira.
15.1.2
Patch Changes
- #33793, (opens new window)
9d00501a414, (opens new window) - Ensure legacy types are published for TS 4.5-4.8
15.1.1
Patch Changes
- #33649, (opens new window)
41fae2c6f68, (opens new window) - Upgrade Typescript from4.5.5to4.9.5
15.1.0
Minor Changes
- #33258, (opens new window)
56507598609, (opens new window) - Skip minor dependency bump
Patch Changes
- Updated dependencies
15.0.23
Patch Changes
- #27891, (opens new window)
a7f643a0ee7, (opens new window) - Updated badge line-height to use design system values, removed block padding. There are no visual or behaviour changes. eadbf13d8c0, (opens new window) - Updated usages ofText,Box,Stack, andInlineprimitives to reflect their updated APIs. There are no visual or behaviour changes.- Updated dependencies
15.0.22
Patch Changes
- #25860, (opens new window)
936d6bccf4f, (opens new window) - Update to emotion v11. No expected behaviour change. e35fc41dc33, (opens new window) - Internal change to use updated primtive spacing prop values. No expected behaviour change.- Updated dependencies
15.0.21
Patch Changes
- #26488, (opens new window)
bc989043572, (opens new window) - Internal changes to apply spacing tokens. This should be a no-op change.
15.0.20
Patch Changes
- #24874, (opens new window)
8cc2f888c83, (opens new window) - Upgrade Typescript from4.3.5to4.5.5
15.0.19
Patch Changes
- #24991, (opens new window)
342ab3bc77e, (opens new window) - Update ds-explorations dependency to support previous patch
15.0.18
Patch Changes
- #24929, (opens new window)
57adb9bb931, (opens new window) - Fixes an issue with '@atlaskit/badge' text color for certain appearances.
15.0.17
Patch Changes
- #24916, (opens new window)
fe54d8f1aec, (opens new window) - Update ds-explorations dependency. No change in behaviour.
15.0.16
Patch Changes
- #24004, (opens new window)
06fd023cd85, (opens new window) - Minor internal change to how text is displayed. No change to consumers. 52809e4839b, (opens new window) - Allow makers to disable max value formatting in the Badge component- Updated dependencies
15.0.15
Patch Changes
- #24492, (opens new window)
8d4228767b0, (opens new window) - Upgrade Typescript from4.2.4to4.3.5.
15.0.14
Patch Changes
- #23381, (opens new window)
899199caabb, (opens new window) - Internal changes to the way styles are applied. There should be no noticeable changes to consumers. 8067cc918d9, (opens new window) - Update implementation to match changes made to Text primitiveea36ea17c4e, (opens new window) - Text now supports text-align and it's used for Badge to retain existing visuals- Updated dependencies
15.0.13
Patch Changes
- Updated dependencies
15.0.12
Patch Changes
- #20650, (opens new window)
cb2392f6d33, (opens new window) - Upgrade to TypeScript 4.2.4
15.0.11
Patch Changes
- Updated dependencies
15.0.10
Patch Changes
- Updated dependencies
15.0.9
Patch Changes
- Updated dependencies
15.0.8
Patch Changes
- #16752, (opens new window)
19d72473dfb, (opens new window) - Updates usage of deprecated token names so they're aligned with the latest naming conventions. No UI or visual changes - Updated dependencies
15.0.7
Patch Changes
- Updated dependencies
15.0.6
Patch Changes
- #15998, (opens new window)
f460cc7c411, (opens new window) - Builds for this package now pass through a tokens babel plugin, removing runtime invocations of the tokens() function and improving bundle size. - Updated dependencies
15.0.5
Patch Changes
- Updated dependencies
15.0.4
Patch Changes
- Updated dependencies
15.0.3
Patch Changes
- Updated dependencies
15.0.2
Patch Changes
- Updated dependencies
15.0.1
Patch Changes
- Updated dependencies
15.0.0
Major Changes
-
#12837, (opens new window)
942dd25df09, (opens new window) - In this version we made Badge dramatically faster and lighter.-
General performance improvements.
-
We are now exporting a new
styleprop which you can use to pass a custombackgroundColorandcolor. -
You can now pass
ReactNodeinstead ofstringas children; however, Badge should only be used in cases where you want to represent a number. If the value isnumber, we will use existing formatting based on themaxprop, otherwise the value will get rendered as it is. -
[BREAKING] We have removed the deprecated
themeprop. Please use a combination ofappearanceandstyleprop for custom theming.
Before:
import Badge from '@atlaskit/badge'; type GetThemeTokensFn<ThemeTokens, ThemeProps> = (props: ThemeProps) => ThemeTokens; function themeGetterFunction<ThemeTokens, ThemeProps>( getTokens: GetThemeTokensFn<ThemeTokens, ThemeProps>, themeProps: ThemeProps, ): ThemeTokens { const defaultTokens = getTokens(themeProps); if (themeProps.appearance === 'removed') { return { ...defaultTokens, textColor: 'grey', }; } return defaultTokens; } <Badge appearance="removed" theme={themeGetterFunction}> {10} </Badge>;After:
import Badge, { BadgeProps } from '@atlaskit/badge'; function getStyle(appearance: BadgeProps['appearance']) { if (appearance === 'removed') { return { color: 'grey', }; } return undefined; } const appearance = 'removed'; <Badge appearance={appearance} style={getStyle(appearance)}> {10} </Badge>;- [BREAKING] We have removed
ContainerandFormatcomponents. Please use a combination ofstyleandReactNodetypechildrenprop for customization.
Before:
import { Container, Format } from '@atlaskit/badge'; <Container backgroundColor="red" textColor="blue"> <em> <Format>{10}</Format> </em> </Container>;After:
import Badge from '@atlaskit/badge'; <Badge style={{ backgroundColor: 'red', color: 'blue' }}> <em> {10} </em> </Badge> // or if you are passing `max` prop so that formatting logic should work <em> <Badge style={{ backgroundColor: 'red', color: 'blue' }} max={5}> {10} </Badge> </em>- [BREAKING] We have removed the support of
appearanceprop object value. Please usestyleprop for customization.
Before:
import Badge from '@atlaskit/badge'; <Badge appearance={{ backgroundColor: 'red', textColor: 'blue' }}>{10}</Badge>;After:
import Badge from '@atlaskit/badge'; <Badge style={{ backgroundColor: 'red', color: 'blue' }}>{10}</Badge>;Running the codemod cli
To run the codemod: You first need to have the latest version installed
yarn upgrade @atlaskit/badge@^15.0.0Once upgraded, use
@atlaskit/codemod-clivianpx:npx @atlaskit/codemod-cli --parser babel --extensions ts,tsx,js [relativePath]The CLI will show a list of components and versions so select
@atlaskit/badge@^15.0.0and you will automatically be upgraded.What will be changed:
- It will move
backgroundColorandtextColorfromappearanceprop (if object is passed asappearanceprop value) tostyleprop.
Run
npx @atlaskit/codemod-cli -hfor more details on usage.For Atlassians, refer to the documentation, (opens new window) for more details on the codemod CLI.
-
Minor Changes
0ced21f8470, (opens new window) - [ux] Colors are now sourced through tokens.
Patch Changes
- Updated dependencies
14.3.2
Patch Changes
- #12880, (opens new window)
378d1cef00f, (opens new window) - Bump@atlaskit/themeto version^11.3.0.
14.3.1
Patch Changes
- #12328, (opens new window)
9c98e8227f6, (opens new window) - Internal refactor for style declarations.
14.3.0
Minor Changes
- #11649, (opens new window)
ed3b6be05af, (opens new window) - - Expose 2 new entry points: badge and types- Internal refactoring
Patch Changes
75b394efe89, (opens new window) - Added the design-system tech stacks to the package.json and fixed linting errors, also disabled some linting rules to prevent breaking changese3205bce20d, (opens new window) - Internal change (migrated from styled-components to emotion)
14.2.1
Patch Changes
- #12167, (opens new window)
d6f7ff383cf, (opens new window) - Updates to development dependencystorybook-addon-performance
14.2.0
Minor Changes
- #12170, (opens new window)
f6b951a51f2, (opens new window) - Removes usage of styled-components in favour of standardising on emotion
14.1.1
Patch Changes
- #11113, (opens new window)
b71c7c1e132, (opens new window) - Added thedesign-systemtech stacks to thepackage.json
14.1.0
Minor Changes
- #7170, (opens new window)
4f9e6e2db5, (opens new window) - These packages now have defined entry points -- this means that you cannot access internal files in the packages that are not meant to be public. Sub-components in these packages have been explicitly defined, aiding tree-shaking and reducing bundle size.
14.0.7
Patch Changes
- #5857, (opens new window)
d3265f19be, (opens new window) - Transpile packages using babel rather than tsc
14.0.6
Patch Changes
- #5497, (opens new window)
5f58283e1f, (opens new window) - Export types using Typescript's new "export type" syntax to satisfy Typescript's --isolatedModules compiler option. This requires version 3.8 of Typescript, read more about how we handle Typescript versions here: https://atlaskit.atlassian.com/get-started, (opens new window) Also addtypescripttodevDependenciesto denote version that the package was built with.
14.0.5
Patch Changes
- Updated dependencies
14.0.4
Patch Changes
- #4707, (opens new window)
6360c46009, (opens new window) - Reenable integration tests for Edge browser
14.0.3
Patch Changes
-
#3885, (opens new window)
6c525a8229, (opens new window) - Upgraded to TypeScript 3.9.6 and tslib to 2.0.0Since tslib is a dependency for all our packages we recommend that products also follow this tslib upgrade to prevent duplicates of tslib being bundled.
14.0.2
Patch Changes
- #3293, (opens new window)
954cc87b62, (opens new window) - The readme and package information has been updated to point to the new design system website.
14.0.1
Patch Changes
- #3428, (opens new window)
db053b24d8, (opens new window) - Update all the theme imports to be tree-shakable
14.0.0
Major Changes
- #3335, (opens new window)
87f4720f27, (opens new window) - Officially dropping IE11 support, from this version onwards there are no warranties of the package working in IE11. For more information see: https://community.developer.atlassian.com/t/atlaskit-to-drop-support-for-internet-explorer-11-from-1st-july-2020/39534, (opens new window)
Patch Changes
- Updated dependencies
13.1.10
Patch Changes
- #2866, (opens new window)
54a9514fcf, (opens new window) - Build and supporting files will no longer be published to npm
13.1.9
Patch Changes
- Updated dependencies
13.1.8
Patch Changes
-
[patch]093fdc91b1, (opens new window):
Change imports to comply with Atlassian conventions- Updated dependencies fd41d77c29, (opens new window):
- @atlaskit/webdriver-runner@0.3.4
13.1.7
Patch Changes
- Updated dependencies 66dcced7a0, (opens new window):
- Updated dependencies 64fb94fb1e, (opens new window):
- Updated dependencies eea5e9bd8c, (opens new window):
- Updated dependencies 109c1a2c0a, (opens new window):
- Updated dependencies
c57bb32f6d, (opens new window):
- @atlaskit/docs@8.4.0
- @atlaskit/webdriver-runner@0.3.0
13.1.6
Patch Changes
- Updated dependencies
e3f01787dd, (opens new window):
- @atlaskit/webdriver-runner@0.2.0
13.1.5
Patch Changes
-
[patch]6548261c9a, (opens new window):
Remove namespace imports from React, ReactDom, and PropTypes- Updated dependencies 6548261c9a, (opens new window):
- @atlaskit/docs@8.3.2
- @atlaskit/visual-regression@0.1.9
- @atlaskit/theme@9.5.1
13.1.4
Patch Changes
-
[patch]4a223473c5, (opens new window):
Removes babel/runtime from dependencies. Users should see a smaller bundlesize as a result- Updated dependencies 82747f2922, (opens new window):
- @atlaskit/theme@9.5.0
13.1.3
Patch Changes
-
[patch]557a8e2451, (opens new window):
Rebuilds package to fix typescript typing error.
13.1.2
Patch Changes
-
[patch]35d2229b2a, (opens new window):
Adding missing license to packages and update to Copyright 2019 Atlassian Pty Ltd.
13.1.1
Patch Changes
-
[patch]a2d0043716, (opens new window):
Updated version of analytics-next to fix potential incompatibilities with TS 3.6
13.1.0
Minor Changes
-
[minor]a97f1c5b5e, (opens new window):
Adding an optional prop
testIdthat will set the attribute valuedata-testid. It will help products to write better integration and end to end tests.
13.0.0
Major Changes
-
[major]6410edd029, (opens new window):
Deprecated props,
valueandonValueUpdatedhave been removed from the Badge component. Please use the children prop instead.
12.1.0
Minor Changes
-
[minor]c6efb2f5b6, (opens new window):
Prefix the legacy lifecycle methods with UNSAFE_* to avoid warning in React 16.9+
More information about the deprecation of lifecycles methods can be found here: https://reactjs.org/blog/2018/03/29/react-v-16-3.html#component-lifecycle-changes, (opens new window)
12.0.8
Patch Changes
-
[patch]097b696613, (opens new window):
Components now depend on TS 3.6 internally, in order to fix an issue with TS resolving non-relative imports as relative imports
12.0.7
Patch Changes
-
[patch]ecca4d1dbb, (opens new window):
Upgraded Typescript to 3.3.x
12.0.6
Patch Changes
-
[patch]708028db86, (opens new window):
Change all the imports to theme in Core to use multi entry points
12.0.5
Patch Changes
-
[patch]de35ce8c67, (opens new window):
Updates component maintainers
12.0.4
Patch Changes
-
[patch]bbff8a7d87, (opens new window):
Fixes bug, missing version.json file
12.0.3
Patch Changes
-
[patch]18dfac7332, (opens new window):
In this PR, we are:
- Re-introducing dist build folders
- Adding back cjs
- Replacing es5 by cjs and es2015 by esm
- Creating folders at the root for entry-points
- Removing the generation of the entry-points at the root Please see this ticket, (opens new window) or this page, (opens new window) for further details
12.0.2
Patch Changes
-
[patch]d0db01b410, (opens new window):
TypeScript users of withAnalyticsEvents and withAnalyticsContext are now required to provide props as a generic type. This is so that TypeScript can correctly calculate the props and defaultProps of the returned component.
Before:
withAnalyticsEvents()(Button) as ComponentClass<Props>;After:
withAnalyticsEvents<Props>()(Button);
12.0.1
Patch Changes
-
[patch]29a1f158c1, (opens new window):
Use default react import in typescript files.
12.0.0
- [major]7c17b35107, (opens new window):
- Updates react and react-dom peer dependencies to react@^16.8.0 and react-dom@^16.8.0. To use this package, please ensure you use at least this version of react and react-dom.
11.0.3
- [patch]50e8c82ec4, (opens new window):
- index.ts is now ignored when published to npm to avoid ambiguity between ts and js files
11.0.2
- [patch]0a4ccaafae, (opens new window):
- Bump tslib
11.0.1
- Updated dependencies
9c0b4744be, (opens new window):
- @atlaskit/docs@7.0.3
- @atlaskit/theme@8.1.7
11.0.0
- [major]c95557e3ff, (opens new window):
- Drops flow support.
- Badge has been internally converted to TypeScript.
- Typescript consumers will get static type safety.
- No API or behavioural changes.
10.0.1
- [patch]98e11001ff, (opens new window):
- Removes duplicate babel-runtime dependency
10.0.0
-
[major]76299208e6, (opens new window):
- Drop ES5 from all the flow modules
Dropping CJS support in all @atlaskit packages
As a breaking change, all @atlaskit packages will be dropping cjs distributions and will only distribute esm. This means all distributed code will be transpiled, but will still contain
importandexportdeclarations.The major reason for doing this is to allow us to support multiple entry points in packages, e.g:
import colors from `@atlaskit/theme/colors`;Previously this was sort of possible for consumers by doing something like:
import colors from `@atlaskit/theme/dist/esm/colors`;This has a couple of issues. 1, it treats the file system as API making internal refactors harder, we have to worry about how consumers might be using things that aren't actually supposed to be used. 2. We are unable to do this internally in @atlaskit packages. This leads to lots of packages bundling all of theme, just to use a single color, especially in situations where tree shaking fails.
To support being able to use multiple entrypoints internally, we unfortunately cannot have multiple distributions as they would need to have very different imports from of their own internal dependencies.
ES Modules are widely supported by all modern bundlers and can be worked around in node environments.
We may choose to revisit this solution in the future if we find any unintended condequences, but we see this as a pretty sane path forward which should lead to some major bundle size decreases, saner API's and simpler package architecture.
Please reach out to #fabric-build (if in Atlassian) or create an issue in Design System Support, (opens new window) (for external) if you have any questions or queries about this.
9.2.2
- Updated dependencies 58b84fa, (opens new window):
- @atlaskit/theme@7.0.1
- @atlaskit/docs@6.0.0
9.2.1
- [patch]d13242d, (opens new window):
- Change API to experimental theming API to namespace component themes into separate contexts and make theming simpler. Update all dependant components.
9.2.0
- [minor] Allow badge to accept strings, so custom number formats can be easily passed in cc0a1de, (opens new window)
9.1.5
- [patch] Adds missing implicit @babel/runtime dependency b71751b, (opens new window)
9.1.4
- [patch] Adds sideEffects: false to allow proper tree shaking b5d6d04, (opens new window)
9.1.2
- [patch] Fix broken type export a203203, (opens new window)
9.1.1
- [patch] Remove export from * to fix the cjs export b12f7e6, (opens new window)
9.1.0
- [minor] Update badge to the new theming API. Rework experimental theming API. df22ad8, (opens new window)
- [patch] Updated dependencies
df22ad8, (opens new window)
- @atlaskit/theme@6.0.0
- @atlaskit/docs@5.0.6
9.0.4
- [patch] update the dependency of react-dom to 16.4.2 due to vulnerability in previous versions read https://reactjs.org/blog/2018/08/01/react-v-16-4-2.html, (opens new window) for details a4bd557, (opens new window)
- [none] Updated dependencies
a4bd557, (opens new window)
- @atlaskit/theme@5.1.3
9.0.3
- [patch] Updated dependencies
acd86a1, (opens new window)
- @atlaskit/theme@5.1.2
- @atlaskit/docs@5.0.2
9.0.2
- [patch] Add a SSR test for every package, add react-dom and build-utils in devDependencies 7e331b5, (opens new window)
- [none] Updated dependencies
7e331b5, (opens new window)
- @atlaskit/theme@5.1.1
9.0.1
- [patch] Move analytics tests and replace elements to core 49d4ab4, (opens new window)
- [none] Updated dependencies
49d4ab4, (opens new window)
- @atlaskit/docs@5.0.1
9.0.0
- [major] Updates to React ^16.4.0 7edb866, (opens new window)
- [major] Updated dependencies
563a7eb, (opens new window)
- @atlaskit/theme@5.0.0
- @atlaskit/docs@5.0.0
- [major] Updated dependencies
7edb866, (opens new window)
- @atlaskit/theme@5.0.0
- @atlaskit/docs@5.0.0
8.1.0
- [minor] Create a Container and Format export so that you can compose custom badges together. ac1b819, (opens new window)
8.0.3
- [patch] Update changelogs to remove duplicate cc58e17, (opens new window)
- [none] Updated dependencies
cc58e17, (opens new window)
- @atlaskit/theme@4.0.3
- @atlaskit/docs@4.1.1
8.0.2
- [none] Updated dependencies
9d20f54, (opens new window)
- @atlaskit/docs@4.1.0
- @atlaskit/theme@4.0.2
8.0.1
- [patch] Update readme's 223cd67, (opens new window)
- [patch] Updated dependencies
223cd67, (opens new window)
- @atlaskit/theme@4.0.1
- @atlaskit/docs@4.0.1
8.0.0
- [major] makes styled-components a peer dependency and upgrades version range from 1.4.6 - 3 to ^3.2.6 1e80619, (opens new window)
- [patch] Updated dependencies
1e80619, (opens new window)
- @atlaskit/theme@4.0.0
- @atlaskit/docs@4.0.0
7.1.3
- [patch] Update color pairing for Badge 168773b, (opens new window)
7.1.2
- [patch] Updated dependencies
d662caa, (opens new window)
- @atlaskit/theme@3.2.2
- @atlaskit/docs@3.0.4
7.1.0
- [minor] Added ability to specify an object as the badge appearance. Added an Appearance export to theme so that we can use strings and objects for appearance theming." 6e89615, (opens new window)
7.0.0
- [major] Bump to React 16.3. 4251858, (opens new window)
6.3.1
- [patch] Re-releasing due to potentially broken babel release 9ed0bba, (opens new window)
6.3.0
- [minor] Update styled-components dependency to support versions 1.4.6 - 3 ceccf30, (opens new window)
6.2.2
- [patch] updated the repository url to https://bitbucket.org/atlassian/atlaskit-mk-2, (opens new window) 1e57e5a, (opens new window)
6.2.1
- [patch] Packages Flow types for elements components 3111e74, (opens new window)
6.2.0
- [minor] Add React 16 support. 12ea6e4, (opens new window)
6.1.0 (2017-08-24)
- feature; remove util-shared-styles as a dependency (52a0a63, (opens new window))
- feature; adjust dark mode colors to spec 1.2, add primaryInveted appearance (9c79e7b, (opens new window))
6.0.0 (2017-08-11)
- bug fix; fix the theme-dependency (db90333, (opens new window))
- bug fix; reimplement appearance prop validation for badges (25dabe3, (opens new window))
- breaking; affects internal styled-components implementation (d14522a, (opens new window))
- breaking; implement dark mode theme (d14522a, (opens new window))
5.0.0 (2017-08-11)
- bug fix; reimplement appearance prop validation for badges (25dabe3, (opens new window))
- breaking; affects internal styled-components implementation (d14522a, (opens new window))
- breaking; implement dark mode theme (d14522a, (opens new window))
4.5.2 (2017-07-27)
- fix; rename jsnext:main to jsnext:experimental:main temporarily (c7508e0, (opens new window))
4.5.1 (2017-07-25)
- fix; use class transform in loose mode in babel to improve load performance in apps (fde719a, (opens new window))
4.2.0 (2017-07-17)
- fix; rerelease, failed prepublish scripts (5fd82f8, (opens new window))
4.2.0 (2017-07-17)
- feature; added ES module builds to dist and add jsnext:main to most ADG packages (ea76507, (opens new window))
4.1.0 (2017-07-06)
- feature; reducing the contrast of white on blue for global nav (ff89e2b, (opens new window))
4.0.5 (2017-05-26)
- fix; add prop-types as a dependency to avoid React 15.x warnings (92598eb, (opens new window))
4.0.3 (2017-05-10)
- fix; testing releasing more than 5 packages at a time (e69b832, (opens new window))
- fix; update dependencies (0c92fef, (opens new window))
4.0.2 (2017-04-27)
- fix; update legal copy to be more clear. Not all modules include ADG license. (f3a945e, (opens new window))
4.0.1 (2017-04-26)
- fix; update legal copy and fix broken links for component README on npm. New contribution and (0b3e454, (opens new window))
4.0.0 (2017-04-12)
- null align component with new conventions (726dc9b, (opens new window))
- breaking; removed TypeScript
- ISSUES CLOSED: AK-2084
3.0.2 (2017-04-11)
- fix; update badge stories to fix proptype bug (0fa922f, (opens new window))
3.0.1 (2017-04-10)
- fix; simplify the Badge component, fixes tests and docs (07946a1, (opens new window))
3.0.0 (2017-03-29)
- feature; update badge to use new guidelines, and readme story (fe7bd5a, (opens new window))
- breaking; remove APPEARANCE_ENUM and THEME_ENUM from exports
- ISSUES CLOSED: AK-1534
2.0.0 (2017-03-27)
- null refactor the badge component to use styled-components (70aa262, (opens new window))
- breaking; badges now require peerDep styled-components
- ISSUES CLOSED: AK-1943
1.2.3 (2017-03-23)
- fix; Empty commit to release the component (49c08ee, (opens new window))
- null refactor the badge component to use styled-components (a5c8722, (opens new window))
- breaking; badges now require peerDep styled-components
- ISSUES CLOSED: AK-1943
1.2.1 (2017-03-21)
- fix; maintainers for all the packages were added (261d00a, (opens new window))
1.1.0 (2017-03-15)
- feature; added application links to media-card and restructured (618650e, (opens new window))
- feature; added typescript definition file to badges (a067336, (opens new window))
1.0.3 (2017-02-16)
- fix; refactor stories to use // rather than http:// (a0826cf, (opens new window))
1.0.2 (2017-02-10)
- fix; Dummy commit to release components to registry (5bac43b, (opens new window))
1.0.1 (2017-02-06)
- fix; Bumps dependencies to used scoped packages (f41dbfc, (opens new window))