@atlaskit/heading 1.2.0 → 1.2.1

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,11 @@
1
1
  # @atlaskit/heading
2
2
 
3
+ ## 1.2.1
4
+
5
+ ### Patch Changes
6
+
7
+ - [`e0460d5d989`](https://bitbucket.org/atlassian/atlassian-frontend/commits/e0460d5d989) - Usages of `process` are now guarded by a `typeof` check.
8
+
3
9
  ## 1.2.0
4
10
 
5
11
  ### Minor Changes
@@ -111,7 +111,7 @@ var Heading = function Heading(_ref) {
111
111
  as = _ref.as,
112
112
  _ref$color = _ref.color,
113
113
  color = _ref$color === void 0 ? 'default' : _ref$color;
114
- if (process.env.NODE_ENV !== 'production' && as && typeof as !== 'string') {
114
+ if (typeof process !== 'undefined' && process.env.NODE_ENV !== 'production' && as && typeof as !== 'string') {
115
115
  throw new Error('`as` prop should be a string.');
116
116
  }
117
117
  var hLevel = (0, _headingContext.useHeadingElement)();
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "name": "@atlaskit/heading",
3
- "version": "1.2.0",
3
+ "version": "1.2.1",
4
4
  "sideEffects": false
5
5
  }
@@ -105,7 +105,7 @@ const Heading = ({
105
105
  as,
106
106
  color = 'default'
107
107
  }) => {
108
- if (process.env.NODE_ENV !== 'production' && as && typeof as !== 'string') {
108
+ if (typeof process !== 'undefined' && process.env.NODE_ENV !== 'production' && as && typeof as !== 'string') {
109
109
  throw new Error('`as` prop should be a string.');
110
110
  }
111
111
  const hLevel = useHeadingElement();
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "name": "@atlaskit/heading",
3
- "version": "1.2.0",
3
+ "version": "1.2.1",
4
4
  "sideEffects": false
5
5
  }
@@ -105,7 +105,7 @@ var Heading = function Heading(_ref) {
105
105
  as = _ref.as,
106
106
  _ref$color = _ref.color,
107
107
  color = _ref$color === void 0 ? 'default' : _ref$color;
108
- if (process.env.NODE_ENV !== 'production' && as && typeof as !== 'string') {
108
+ if (typeof process !== 'undefined' && process.env.NODE_ENV !== 'production' && as && typeof as !== 'string') {
109
109
  throw new Error('`as` prop should be a string.');
110
110
  }
111
111
  var hLevel = useHeadingElement();
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "name": "@atlaskit/heading",
3
- "version": "1.2.0",
3
+ "version": "1.2.1",
4
4
  "sideEffects": false
5
5
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/heading",
3
- "version": "1.2.0",
3
+ "version": "1.2.1",
4
4
  "description": "A heading is a typography component used to display text in different sizes and formats.",
5
5
  "author": "Atlassian Pty Ltd",
6
6
  "license": "Apache-2.0",
@@ -37,7 +37,7 @@
37
37
  "react": "^16.8.0 || ^17.0.0 || ^18.0.0"
38
38
  },
39
39
  "devDependencies": {
40
- "@atlaskit/button": "^16.5.0",
40
+ "@atlaskit/button": "^16.6.0",
41
41
  "@atlaskit/docs": "*",
42
42
  "@atlaskit/ds-explorations": "*",
43
43
  "@atlaskit/ds-lib": "^2.0.1",