@atlaskit/teams-client 4.29.0 → 4.29.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,12 @@
1
1
  # @atlaskit/teams-client
2
2
 
3
+ ## 4.29.1
4
+
5
+ ### Patch Changes
6
+
7
+ - [`8dadb76e44cfb`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/8dadb76e44cfb) -
8
+ Clean up enable_x_query_context_header
9
+
3
10
  ## 4.29.0
4
11
 
5
12
  ### Minor Changes
@@ -52,7 +52,7 @@ var TeamsUFOExperience = exports.TeamsUFOExperience = /*#__PURE__*/function (_UF
52
52
  return _superPropGet(TeamsUFOExperience, "failure", this, 3)([{
53
53
  metadata: {
54
54
  error: (0, _utils.createErrorMetadata)(error),
55
- packageVersion: "4.28.0",
55
+ packageVersion: "0.0.0-development",
56
56
  packageName: "@atlaskit/teams-client"
57
57
  }
58
58
  }]);
@@ -60,7 +60,7 @@ var TeamsUFOExperience = exports.TeamsUFOExperience = /*#__PURE__*/function (_UF
60
60
  return _superPropGet(TeamsUFOExperience, "failure", this, 3)([{
61
61
  metadata: {
62
62
  error: 'unknown error',
63
- packageVersion: "4.28.0",
63
+ packageVersion: "0.0.0-development",
64
64
  packageName: "@atlaskit/teams-client"
65
65
  }
66
66
  }]);
@@ -4,13 +4,12 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
  exports.createQueryContextHeaders = createQueryContextHeaders;
7
- var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
8
7
  /**
9
- * Creates headers object with X-Query-Context header if cloudId is provided and feature flag is enabled.
8
+ * Creates headers object with X-Query-Context header if cloudId is provided.
10
9
  * Use this for AGG client makeGraphQLRequest calls.
11
10
  */
12
11
  function createQueryContextHeaders(cloudId) {
13
- if (!cloudId || !(0, _platformFeatureFlags.fg)('enable_x_query_context_header')) {
12
+ if (!cloudId) {
14
13
  return undefined;
15
14
  }
16
15
  return {
@@ -13,7 +13,6 @@ var _createClass2 = _interopRequireDefault(require("@babel/runtime/helpers/creat
13
13
  var _possibleConstructorReturn2 = _interopRequireDefault(require("@babel/runtime/helpers/possibleConstructorReturn"));
14
14
  var _getPrototypeOf2 = _interopRequireDefault(require("@babel/runtime/helpers/getPrototypeOf"));
15
15
  var _inherits2 = _interopRequireDefault(require("@babel/runtime/helpers/inherits"));
16
- var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
17
16
  var _error = require("../../common/utils/error");
18
17
  var _baseClient = require("../base-client");
19
18
  var _utils = require("./utils");
@@ -37,12 +36,12 @@ var BaseGraphQlClient = exports.BaseGraphQlClient = /*#__PURE__*/function (_Base
37
36
  }
38
37
 
39
38
  /**
40
- * Creates query context headers if cloudId is available and feature flag is enabled.
39
+ * Creates query context headers if cloudId is available.
41
40
  */
42
41
  }, {
43
42
  key: "createQueryContextHeaders",
44
43
  value: function createQueryContextHeaders(cloudId) {
45
- if (!cloudId || !(0, _platformFeatureFlags.fg)('enable_x_query_context_header')) {
44
+ if (!cloudId) {
46
45
  return undefined;
47
46
  }
48
47
  return {
@@ -36,7 +36,7 @@ function getSentryConfig(options) {
36
36
  return _objectSpread(_objectSpread(_objectSpread({}, otherOptions), DEFAULT_SENTRY_CONFIG), {}, {
37
37
  // Standalone __VERSION__ is set from `bin/set-release-version.sh`
38
38
  // when building to deploy to production
39
- release: "".concat("@atlaskit/teams-client", "@").concat("4.28.0") ||
39
+ release: "".concat("@atlaskit/teams-client", "@").concat("0.0.0-development") ||
40
40
  // @ts-ignore Jira - window.BUILD_KEY
41
41
  window.BUILD_KEY || ( // @ts-ignore Confluence - window.__buildInfo
42
42
  (_window$__buildInfo = window.__buildInfo) === null || _window$__buildInfo === void 0 ? void 0 : _window$__buildInfo.FRONTEND_VERSION) || '---',
@@ -27,7 +27,7 @@ export class TeamsUFOExperience extends UFOExperience {
27
27
  return super.failure({
28
28
  metadata: {
29
29
  error: createErrorMetadata(error),
30
- packageVersion: "4.28.0",
30
+ packageVersion: "0.0.0-development",
31
31
  packageName: "@atlaskit/teams-client"
32
32
  }
33
33
  });
@@ -35,7 +35,7 @@ export class TeamsUFOExperience extends UFOExperience {
35
35
  return super.failure({
36
36
  metadata: {
37
37
  error: 'unknown error',
38
- packageVersion: "4.28.0",
38
+ packageVersion: "0.0.0-development",
39
39
  packageName: "@atlaskit/teams-client"
40
40
  }
41
41
  });
@@ -1,11 +1,9 @@
1
- import { fg } from '@atlaskit/platform-feature-flags';
2
-
3
1
  /**
4
- * Creates headers object with X-Query-Context header if cloudId is provided and feature flag is enabled.
2
+ * Creates headers object with X-Query-Context header if cloudId is provided.
5
3
  * Use this for AGG client makeGraphQLRequest calls.
6
4
  */
7
5
  export function createQueryContextHeaders(cloudId) {
8
- if (!cloudId || !fg('enable_x_query_context_header')) {
6
+ if (!cloudId) {
9
7
  return undefined;
10
8
  }
11
9
  return {
@@ -1,4 +1,3 @@
1
- import { fg } from '@atlaskit/platform-feature-flags';
2
1
  import { DefaultError, GraphQLError } from '../../common/utils/error';
3
2
  import { BaseClient } from '../base-client';
4
3
  import { handleGraphQLRequest } from './utils';
@@ -12,10 +11,10 @@ export class BaseGraphQlClient extends BaseClient {
12
11
  }
13
12
 
14
13
  /**
15
- * Creates query context headers if cloudId is available and feature flag is enabled.
14
+ * Creates query context headers if cloudId is available.
16
15
  */
17
16
  createQueryContextHeaders(cloudId) {
18
- if (!cloudId || !fg('enable_x_query_context_header')) {
17
+ if (!cloudId) {
19
18
  return undefined;
20
19
  }
21
20
  return {
@@ -28,7 +28,7 @@ export function getSentryConfig(options) {
28
28
  ...DEFAULT_SENTRY_CONFIG,
29
29
  // Standalone __VERSION__ is set from `bin/set-release-version.sh`
30
30
  // when building to deploy to production
31
- release: `${"@atlaskit/teams-client"}@${"4.28.0"}` ||
31
+ release: `${"@atlaskit/teams-client"}@${"0.0.0-development"}` ||
32
32
  // @ts-ignore Jira - window.BUILD_KEY
33
33
  window.BUILD_KEY || ( // @ts-ignore Confluence - window.__buildInfo
34
34
  (_window$__buildInfo = window.__buildInfo) === null || _window$__buildInfo === void 0 ? void 0 : _window$__buildInfo.FRONTEND_VERSION) || '---',
@@ -45,7 +45,7 @@ export var TeamsUFOExperience = /*#__PURE__*/function (_UFOExperience) {
45
45
  return _superPropGet(TeamsUFOExperience, "failure", this, 3)([{
46
46
  metadata: {
47
47
  error: createErrorMetadata(error),
48
- packageVersion: "4.28.0",
48
+ packageVersion: "0.0.0-development",
49
49
  packageName: "@atlaskit/teams-client"
50
50
  }
51
51
  }]);
@@ -53,7 +53,7 @@ export var TeamsUFOExperience = /*#__PURE__*/function (_UFOExperience) {
53
53
  return _superPropGet(TeamsUFOExperience, "failure", this, 3)([{
54
54
  metadata: {
55
55
  error: 'unknown error',
56
- packageVersion: "4.28.0",
56
+ packageVersion: "0.0.0-development",
57
57
  packageName: "@atlaskit/teams-client"
58
58
  }
59
59
  }]);
@@ -1,11 +1,9 @@
1
- import { fg } from '@atlaskit/platform-feature-flags';
2
-
3
1
  /**
4
- * Creates headers object with X-Query-Context header if cloudId is provided and feature flag is enabled.
2
+ * Creates headers object with X-Query-Context header if cloudId is provided.
5
3
  * Use this for AGG client makeGraphQLRequest calls.
6
4
  */
7
5
  export function createQueryContextHeaders(cloudId) {
8
- if (!cloudId || !fg('enable_x_query_context_header')) {
6
+ if (!cloudId) {
9
7
  return undefined;
10
8
  }
11
9
  return {
@@ -10,7 +10,6 @@ function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbol
10
10
  function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
11
11
  function _callSuper(t, o, e) { return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e)); }
12
12
  function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
13
- import { fg } from '@atlaskit/platform-feature-flags';
14
13
  import { DefaultError, GraphQLError } from '../../common/utils/error';
15
14
  import { BaseClient } from '../base-client';
16
15
  import { handleGraphQLRequest } from './utils';
@@ -30,12 +29,12 @@ export var BaseGraphQlClient = /*#__PURE__*/function (_BaseClient) {
30
29
  }
31
30
 
32
31
  /**
33
- * Creates query context headers if cloudId is available and feature flag is enabled.
32
+ * Creates query context headers if cloudId is available.
34
33
  */
35
34
  }, {
36
35
  key: "createQueryContextHeaders",
37
36
  value: function createQueryContextHeaders(cloudId) {
38
- if (!cloudId || !fg('enable_x_query_context_header')) {
37
+ if (!cloudId) {
39
38
  return undefined;
40
39
  }
41
40
  return {
@@ -29,7 +29,7 @@ export function getSentryConfig(options) {
29
29
  return _objectSpread(_objectSpread(_objectSpread({}, otherOptions), DEFAULT_SENTRY_CONFIG), {}, {
30
30
  // Standalone __VERSION__ is set from `bin/set-release-version.sh`
31
31
  // when building to deploy to production
32
- release: "".concat("@atlaskit/teams-client", "@").concat("4.28.0") ||
32
+ release: "".concat("@atlaskit/teams-client", "@").concat("0.0.0-development") ||
33
33
  // @ts-ignore Jira - window.BUILD_KEY
34
34
  window.BUILD_KEY || ( // @ts-ignore Confluence - window.__buildInfo
35
35
  (_window$__buildInfo = window.__buildInfo) === null || _window$__buildInfo === void 0 ? void 0 : _window$__buildInfo.FRONTEND_VERSION) || '---',
@@ -1,5 +1,5 @@
1
1
  /**
2
- * Creates headers object with X-Query-Context header if cloudId is provided and feature flag is enabled.
2
+ * Creates headers object with X-Query-Context header if cloudId is provided.
3
3
  * Use this for AGG client makeGraphQLRequest calls.
4
4
  */
5
5
  export declare function createQueryContextHeaders(cloudId?: string): Record<string, string> | undefined;
@@ -5,7 +5,7 @@ export declare class BaseGraphQlClient extends BaseClient {
5
5
  constructor(serviceUrl: string, config: ClientConfig);
6
6
  setServiceUrl(serviceUrl: string): void;
7
7
  /**
8
- * Creates query context headers if cloudId is available and feature flag is enabled.
8
+ * Creates query context headers if cloudId is available.
9
9
  */
10
10
  private createQueryContextHeaders;
11
11
  makeGraphQLRequest<Key extends string, Data = unknown, Variables = unknown>(body: Body<Variables>, options?: Options): Promise<ResultResponse<Key, Data>>;
@@ -1,5 +1,5 @@
1
1
  /**
2
- * Creates headers object with X-Query-Context header if cloudId is provided and feature flag is enabled.
2
+ * Creates headers object with X-Query-Context header if cloudId is provided.
3
3
  * Use this for AGG client makeGraphQLRequest calls.
4
4
  */
5
5
  export declare function createQueryContextHeaders(cloudId?: string): Record<string, string> | undefined;
@@ -5,7 +5,7 @@ export declare class BaseGraphQlClient extends BaseClient {
5
5
  constructor(serviceUrl: string, config: ClientConfig);
6
6
  setServiceUrl(serviceUrl: string): void;
7
7
  /**
8
- * Creates query context headers if cloudId is available and feature flag is enabled.
8
+ * Creates query context headers if cloudId is available.
9
9
  */
10
10
  private createQueryContextHeaders;
11
11
  makeGraphQLRequest<Key extends string, Data = unknown, Variables = unknown>(body: Body<Variables>, options?: Options): Promise<ResultResponse<Key, Data>>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/teams-client",
3
- "version": "4.29.0",
3
+ "version": "4.29.1",
4
4
  "description": "A client to retrieve team related data",
5
5
  "author": "Atlassian Pty Ltd",
6
6
  "license": "Apache-2.0",
@@ -100,9 +100,6 @@
100
100
  },
101
101
  "legion-enable-archive-teams": {
102
102
  "type": "boolean"
103
- },
104
- "enable_x_query_context_header": {
105
- "type": "boolean"
106
103
  }
107
104
  }
108
105
  }