@applitools/core 4.12.0 → 4.12.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
  # Changelog
2
2
 
3
+ ## [4.12.1](https://github.com/Applitools-Dev/sdk/compare/js/core@4.12.0...js/core@4.12.1) (2024-04-11)
4
+
5
+
6
+ ### Bug Fixes
7
+
8
+ * fixed environment props in autonomous ([#2314](https://github.com/Applitools-Dev/sdk/issues/2314)) ([adfcf5b](https://github.com/Applitools-Dev/sdk/commit/adfcf5b178e92da34bea0dd87e1b736df9ae0a2b))
9
+
3
10
  ## [4.12.0](https://github.com/Applitools-Dev/sdk/compare/js/core@4.11.2...js/core@4.12.0) (2024-04-10)
4
11
 
5
12
 
@@ -46,7 +46,13 @@ function makeStartRenders({ core, logger: defaultLogger }) {
46
46
  }),
47
47
  logger,
48
48
  }),
49
- ...targets.map(target => ufgClient.getActualEnvironment({ settings: { environment: target.environment }, logger })),
49
+ ...targets.map(async (target) => {
50
+ const environment = await ufgClient.getActualEnvironment({
51
+ settings: { environment: target.environment },
52
+ logger,
53
+ });
54
+ return { ...environment, properties: target.environment.properties };
55
+ }),
50
56
  ]);
51
57
  return renders.map((render, index) => ({
52
58
  render,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@applitools/core",
3
- "version": "4.12.0",
3
+ "version": "4.12.1",
4
4
  "homepage": "https://applitools.com",
5
5
  "bugs": {
6
6
  "url": "https://github.com/applitools/eyes.sdk.javascript1/issues"
@@ -2,7 +2,7 @@ import type { Eyes as BaseEyes, ImageTarget as BaseImageTarget, OpenSettings as
2
2
  import type * as UFGCore from '../ufg/types';
3
3
  import { type Logger } from '@applitools/logger';
4
4
  import { type SpecType } from '@applitools/driver';
5
- import { type Environment as UFGEnvironment, type ActualEnvironment as UFGActualEnvironment, type RenderTarget as UFGRenderTarget, type StartedRender as UFGStartedRender } from '@applitools/ufg-client';
5
+ import { type RenderTarget as UFGRenderTarget, type StartedRender as UFGStartedRender } from '@applitools/ufg-client';
6
6
  export * from '../ufg/types';
7
7
  export interface AutonomousCore<TSpec extends SpecType> {
8
8
  readonly type: 'autonomous';
@@ -37,13 +37,13 @@ export type SnapshotSettings<TSpec extends SpecType> = UFGCore.SnapshotSettings<
37
37
  export type RenderTarget = {
38
38
  target: UFGRenderTarget;
39
39
  settings: UFGCore.SafeCheckSettings;
40
- environment: UFGEnvironment;
40
+ environment: UFGCore.RenderEnvironment;
41
41
  account: UFGCore.Account;
42
42
  };
43
43
  export type StartedRender = {
44
44
  render: UFGStartedRender;
45
45
  settings: UFGCore.SafeCheckSettings;
46
- environment: UFGActualEnvironment;
46
+ environment: UFGCore.ExactEnvironment;
47
47
  account: UFGCore.Account;
48
48
  };
49
49
  export type RenderResult = {
@@ -51,7 +51,7 @@ export type RenderResult = {
51
51
  error: string;
52
52
  target: BaseImageTarget;
53
53
  settings: BaseCheckSettings;
54
- environment: UFGActualEnvironment;
54
+ environment: UFGCore.ExactEnvironment;
55
55
  account: UFGCore.Account;
56
56
  };
57
57
  export type OpenSettings = BaseOpenSettings;