@percy/core
Advanced tools
Comparing version 1.10.3 to 1.10.4
@@ -31,5 +31,2 @@ // Common config options used in Percy commands | ||
type: 'string' | ||
}, | ||
devicePixelRatio: { | ||
type: 'integer' | ||
} | ||
@@ -133,2 +130,5 @@ } | ||
}, | ||
devicePixelRatio: { | ||
type: 'integer' | ||
}, | ||
concurrency: { | ||
@@ -185,5 +185,2 @@ type: 'integer', | ||
}, | ||
devicePixelRatio: { | ||
$ref: '/config/snapshot#/properties/devicePixelRatio' | ||
}, | ||
discovery: { | ||
@@ -210,2 +207,5 @@ type: 'object', | ||
$ref: '/config/discovery#/properties/userAgent' | ||
}, | ||
devicePixelRatio: { | ||
$ref: '/config/discovery#/properties/devicePixelRatio' | ||
} | ||
@@ -492,15 +492,7 @@ } | ||
} else { | ||
let notice = { | ||
util.deprecate('snapshot.devicePixelRatio', { | ||
map: 'discovery.devicePixelRatio', | ||
type: 'config', | ||
until: '1.0.0' | ||
}; // snapshot discovery options have moved | ||
util.deprecate('snapshot.authorization', { | ||
map: 'discovery.authorization', | ||
...notice | ||
until: '2.0.0' | ||
}); | ||
util.deprecate('snapshot.requestHeaders', { | ||
map: 'discovery.requestHeaders', | ||
...notice | ||
}); | ||
} | ||
@@ -510,21 +502,9 @@ } // Snapshot option migrate function | ||
export function snapshotMigration(config, util, root = '') { | ||
let notice = { | ||
// discovery options have moved | ||
util.deprecate(`${root}.devicePixelRatio`, { | ||
map: `${root}.discovery.devicePixelRatio`, | ||
type: 'snapshot', | ||
until: '1.0.0', | ||
until: '2.0.0', | ||
warn: true | ||
}; // discovery options have moved | ||
util.deprecate(`${root}.authorization`, { | ||
map: `${root}.discovery.authorization`, | ||
...notice | ||
}); | ||
util.deprecate(`${root}.requestHeaders`, { | ||
map: `${root}.discovery.requestHeaders`, | ||
...notice | ||
}); // snapshots option was renamed | ||
util.deprecate(`${root}.snapshots`, { | ||
map: `${root}.additionalSnapshots`, | ||
...notice | ||
}); | ||
} // Snapshot list options migrate function | ||
@@ -540,15 +520,5 @@ | ||
} | ||
} // overrides option was renamed | ||
} // migrate options | ||
let notice = { | ||
type: 'snapshot', | ||
until: '1.0.0', | ||
warn: true | ||
}; | ||
util.deprecate('overrides', { | ||
map: 'options', | ||
...notice | ||
}); // migrate options | ||
if (Array.isArray(config.options)) { | ||
@@ -555,0 +525,0 @@ for (let i in config.options) { |
@@ -407,7 +407,7 @@ import logger from '@percy/logger'; | ||
if (snapshot.devicePixelRatio) { | ||
if (snapshot.discovery.devicePixelRatio) { | ||
// wait for any existing pending resource requests first | ||
yield waitForDiscoveryNetworkIdle(page, snapshot.discovery); | ||
yield* triggerResourceRequests(page, snapshot, { | ||
deviceScaleFactor: snapshot.devicePixelRatio, | ||
deviceScaleFactor: snapshot.discovery.devicePixelRatio, | ||
mobile: true | ||
@@ -414,0 +414,0 @@ }); |
{ | ||
"name": "@percy/core", | ||
"version": "1.10.3", | ||
"version": "1.10.4", | ||
"license": "MIT", | ||
@@ -42,6 +42,6 @@ "repository": { | ||
"dependencies": { | ||
"@percy/client": "1.10.3", | ||
"@percy/config": "1.10.3", | ||
"@percy/dom": "1.10.3", | ||
"@percy/logger": "1.10.3", | ||
"@percy/client": "1.10.4", | ||
"@percy/config": "1.10.4", | ||
"@percy/dom": "1.10.4", | ||
"@percy/logger": "1.10.4", | ||
"content-disposition": "^0.5.4", | ||
@@ -57,3 +57,3 @@ "cross-spawn": "^7.0.3", | ||
}, | ||
"gitHead": "a9858d20a9b9708da0464c0617b32b2ee1c97433" | ||
"gitHead": "16a9a410bfcb8eab51b86a08cff12d8d35e4747e" | ||
} |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
149589
3284
+ Added@percy/client@1.10.4(transitive)
+ Added@percy/config@1.10.4(transitive)
+ Added@percy/dom@1.10.4(transitive)
+ Added@percy/env@1.10.4(transitive)
+ Added@percy/logger@1.10.4(transitive)
- Removed@percy/client@1.10.3(transitive)
- Removed@percy/config@1.10.3(transitive)
- Removed@percy/dom@1.10.3(transitive)
- Removed@percy/env@1.10.3(transitive)
- Removed@percy/logger@1.10.3(transitive)
Updated@percy/client@1.10.4
Updated@percy/config@1.10.4
Updated@percy/dom@1.10.4
Updated@percy/logger@1.10.4