Skip to content

Commit 45b36e0

Browse files
dbajpeyigithub-actions[bot]
authored andcommitted
Release build 8.1.0 [ci release]
1 parent 5cbfbe2 commit 45b36e0

File tree

65 files changed

+286
-335
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

65 files changed

+286
-335
lines changed

.github/scripts/diff-directories.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ function upperCaseFirstLetter(string) {
2626
return string.charAt(0).toUpperCase() + string.slice(1);
2727
}
2828

29-
function displayDiffs(dir1Files, dir2Files, isOpen) {
29+
function displayDiffs(dir1Files, dir2Files) {
3030
const rollupGrouping = {};
3131
/**
3232
* Rolls up multiple files with the same diff into a single entry
@@ -79,13 +79,13 @@ function displayDiffs(dir1Files, dir2Files, isOpen) {
7979
}
8080
}
8181
outString += '\n\n' + rollup.string;
82-
return renderDetails(title, outString, isOpen);
82+
return renderDetails(title, outString);
8383
})
8484
.join('\n');
8585
return outString;
8686
}
8787

88-
function renderDetails(section, text, isOpen) {
88+
function renderDetails(section, text) {
8989
if (section === 'dist') {
9090
section = 'apple';
9191
}
@@ -120,5 +120,5 @@ sortFiles(readFilesRecursively(dir1 + sourcesOutput), 'dir1');
120120
sortFiles(readFilesRecursively(dir2 + sourcesOutput), 'dir2');
121121

122122
// console.log(Object.keys(files))
123-
const fileOut = displayDiffs(sections.dir1, sections.dir2, true);
123+
const fileOut = displayDiffs(sections.dir1, sections.dir2);
124124
console.log(fileOut);

CHANGELOG.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
- support noUnusedParameters (#1579)

Sources/ContentScopeScripts/dist/contentScope.js

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -988,7 +988,7 @@
988988
return isPlatformSpecificFeature(feature) ? !args.site.enabledFeatures.includes(feature) : args.site.isBroken || args.site.allowlisted || !args.site.enabledFeatures.includes(feature);
989989
}
990990
function camelcase(dashCaseText) {
991-
return dashCaseText.replace(/-(.)/g, (match, letter) => {
991+
return dashCaseText.replace(/-(.)/g, (_, letter) => {
992992
return letter.toUpperCase();
993993
});
994994
}
@@ -1488,7 +1488,7 @@
14881488
};
14891489
const proxyHandler = {};
14901490
if (fullOptions.allowConstructorCall) {
1491-
proxyHandler.apply = function(target, thisArg, argumentsList) {
1491+
proxyHandler.apply = function(target, _thisArg, argumentsList) {
14921492
return Reflect.construct(target, argumentsList, target);
14931493
};
14941494
}
@@ -3138,7 +3138,7 @@
31383138
const configSetting = this.getFeatureSetting(attrName);
31393139
return processAttr(configSetting, defaultValue);
31403140
}
3141-
init(args) {
3141+
init(_args2) {
31423142
}
31433143
callInit(args) {
31443144
const mark = this.monitor.mark(this.name + "CallInit");
@@ -3151,7 +3151,7 @@
31513151
this.args = args;
31523152
this.platform = args.platform;
31533153
}
3154-
load(args) {
3154+
load(_args2) {
31553155
}
31563156
/**
31573157
* This is a wrapper around `this.messaging.notify` that applies the
@@ -3227,7 +3227,7 @@
32273227
if (typeof descriptorProp === "function") {
32283228
const addDebugFlag = this.addDebugFlag.bind(this);
32293229
const wrapper = new Proxy2(descriptorProp, {
3230-
apply(target, thisArg, argumentsList) {
3230+
apply(_, thisArg, argumentsList) {
32313231
addDebugFlag();
32323232
return Reflect2.apply(descriptorProp, thisArg, argumentsList);
32333233
}
@@ -3670,7 +3670,7 @@
36703670
enumerable: true
36713671
});
36723672
this.defineProperty(window.safari.pushNotification, "requestPermission", {
3673-
value: (name, domain, options, callback) => {
3673+
value: (_name, _domain, _options, callback) => {
36743674
if (typeof callback === "function") {
36753675
callback(new SafariRemoteNotificationPermission());
36763676
return;

Sources/ContentScopeScripts/dist/contentScopeIsolated.js

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1649,7 +1649,7 @@
16491649
return isPlatformSpecificFeature(feature) ? !args.site.enabledFeatures.includes(feature) : args.site.isBroken || args.site.allowlisted || !args.site.enabledFeatures.includes(feature);
16501650
}
16511651
function camelcase(dashCaseText) {
1652-
return dashCaseText.replace(/-(.)/g, (match, letter) => {
1652+
return dashCaseText.replace(/-(.)/g, (_, letter) => {
16531653
return letter.toUpperCase();
16541654
});
16551655
}
@@ -2043,7 +2043,7 @@
20432043
};
20442044
const proxyHandler = {};
20452045
if (fullOptions.allowConstructorCall) {
2046-
proxyHandler.apply = function(target, thisArg, argumentsList) {
2046+
proxyHandler.apply = function(target, _thisArg, argumentsList) {
20472047
return Reflect.construct(target, argumentsList, target);
20482048
};
20492049
}
@@ -3693,7 +3693,7 @@
36933693
const configSetting = this.getFeatureSetting(attrName);
36943694
return processAttr(configSetting, defaultValue);
36953695
}
3696-
init(args) {
3696+
init(_args2) {
36973697
}
36983698
callInit(args) {
36993699
const mark = this.monitor.mark(this.name + "CallInit");
@@ -3706,7 +3706,7 @@
37063706
this.args = args;
37073707
this.platform = args.platform;
37083708
}
3709-
load(args) {
3709+
load(_args2) {
37103710
}
37113711
/**
37123712
* This is a wrapper around `this.messaging.notify` that applies the
@@ -3782,7 +3782,7 @@
37823782
if (typeof descriptorProp === "function") {
37833783
const addDebugFlag = this.addDebugFlag.bind(this);
37843784
const wrapper = new Proxy2(descriptorProp, {
3785-
apply(target, thisArg, argumentsList) {
3785+
apply(_, thisArg, argumentsList) {
37863786
addDebugFlag();
37873787
return Reflect2.apply(descriptorProp, thisArg, argumentsList);
37883788
}
@@ -6937,7 +6937,7 @@
69376937
["defaultIfEmpty", (value, argument) => value || argument || ""],
69386938
[
69396939
"ageRange",
6940-
(value, argument, action) => {
6940+
(value, _, action) => {
69416941
if (!action.ageRange) return value;
69426942
const ageNumber = Number(value);
69436943
const ageRange = action.ageRange.find((range) => {
@@ -6959,7 +6959,7 @@
69596959
return pathname.split("/").filter(Boolean).map((segment) => processTemplateStringWithUserData(segment, action, userData)).join("/");
69606960
}
69616961
function processTemplateStringWithUserData(input, action, userData) {
6962-
return String(input).replace(/\$%7B(.+?)%7D|\$\{(.+?)}/g, (match, encodedValue, plainValue) => {
6962+
return String(input).replace(/\$%7B(.+?)%7D|\$\{(.+?)}/g, (_, encodedValue, plainValue) => {
69636963
const comparison = encodedValue ?? plainValue;
69646964
const [dataKey, ...transforms] = comparison.split(/\||%7C/);
69656965
const data2 = userData[dataKey];
@@ -7417,7 +7417,7 @@
74177417
}
74187418
return {
74197419
results: profilesElementList.map((element) => {
7420-
const elementFactory = (key, value) => {
7420+
const elementFactory = (_, value) => {
74217421
return value?.findElements ? cleanArray(getElements(element, value.selector)) : cleanArray(getElement(element, value.selector) || getElementMatches(element, value.selector));
74227422
};
74237423
const scrapedData = createProfile(elementFactory, action.profile);
@@ -11450,7 +11450,7 @@
1145011450
console.log("[isolated]", ...args);
1145111451
}
1145211452
}
11453-
load(args) {
11453+
load(_args2) {
1145411454
}
1145511455
};
1145611456
var message_bridge_default = MessageBridge;

Sources/ContentScopeScripts/dist/pages/duckplayer/dist/index.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -837,10 +837,10 @@
837837
};
838838

839839
// ../messaging/lib/typed-messages.js
840-
function createTypedMessages(base, messaging2) {
840+
function createTypedMessages(_base, _messaging) {
841841
const asAny = (
842842
/** @type {any} */
843-
messaging2
843+
_messaging
844844
);
845845
return (
846846
/** @type {BaseClass} */
@@ -3164,10 +3164,10 @@
31643164
// pages/duckplayer/app/features/iframe.js
31653165
var IframeFeature = class {
31663166
/**
3167-
* @param {HTMLIFrameElement} iframe
3167+
* @param {HTMLIFrameElement} _iframe
31683168
* @returns {(() => void) | null}
31693169
*/
3170-
iframeDidLoad(iframe) {
3170+
iframeDidLoad(_iframe) {
31713171
return () => {
31723172
console.log("teardown");
31733173
};

Sources/ContentScopeScripts/dist/pages/duckplayer/index.html

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1972,10 +1972,10 @@
19721972
};
19731973

19741974
// ../messaging/lib/typed-messages.js
1975-
function createTypedMessages(base, messaging2) {
1975+
function createTypedMessages(_base, _messaging) {
19761976
const asAny = (
19771977
/** @type {any} */
1978-
messaging2
1978+
_messaging
19791979
);
19801980
return (
19811981
/** @type {BaseClass} */
@@ -4299,10 +4299,10 @@
42994299
// pages/duckplayer/app/features/iframe.js
43004300
var IframeFeature = class {
43014301
/**
4302-
* @param {HTMLIFrameElement} iframe
4302+
* @param {HTMLIFrameElement} _iframe
43034303
* @returns {(() => void) | null}
43044304
*/
4305-
iframeDidLoad(iframe) {
4305+
iframeDidLoad(_iframe) {
43064306
return () => {
43074307
console.log("teardown");
43084308
};

Sources/ContentScopeScripts/dist/pages/history/dist/index.js

Lines changed: 11 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -1126,10 +1126,10 @@
11261126
};
11271127

11281128
// ../messaging/lib/typed-messages.js
1129-
function createTypedMessages(base, messaging2) {
1129+
function createTypedMessages(_base, _messaging) {
11301130
const asAny = (
11311131
/** @type {any} */
1132-
messaging2
1132+
_messaging
11331133
);
11341134
return (
11351135
/** @type {BaseClass} */
@@ -2528,7 +2528,7 @@
25282528
);
25292529
var QueryDispatch = J(
25302530
/** @type {(a: Action) => void} */
2531-
(action) => {
2531+
(_5) => {
25322532
throw new Error("missing QueryDispatch");
25332533
}
25342534
);
@@ -3462,7 +3462,7 @@
34623462
// pages/history/app/global/Providers/SelectionProvider.js
34633463
var SelectionDispatchContext = J(
34643464
/** @type {(a: Action) => void} */
3465-
(a4) => {
3465+
(_5) => {
34663466
}
34673467
);
34683468
var SelectionStateContext = J(
@@ -4088,7 +4088,7 @@
40884088

40894089
// pages/history/app/components/VirtualizedList.js
40904090
function VirtualizedList({ items, heights, overscan, scrollingElement, onChange, renderItem }) {
4091-
const { start, end } = useVisibleRows(items, heights, scrollingElement, onChange, overscan);
4091+
const { start, end } = useVisibleRows(items, heights, scrollingElement, overscan);
40924092
const subset = items.slice(start, end + 1);
40934093
y2(() => {
40944094
onChange?.(end);
@@ -4108,7 +4108,7 @@
41084108
}));
41094109
}
41104110
var VisibleItems = M2(VirtualizedList);
4111-
function useVisibleRows(rows, heights, scrollerSelector, onChange, overscan = 5) {
4111+
function useVisibleRows(rows, heights, scrollerSelector, overscan = 5) {
41124112
const [{ start, end }, setVisibleRange] = h2({ start: 0, end: 1 });
41134113
const mainScrollerRef = A2(
41144114
/** @type {Element|null} */
@@ -4287,7 +4287,7 @@
42874287
};
42884288

42894289
// pages/new-tab/app/types.js
4290-
function useTypedTranslationWith(context) {
4290+
function useTypedTranslationWith(_context) {
42914291
return {
42924292
/** @type {any} */
42934293
t: x2(TranslationContext).t
@@ -4353,21 +4353,10 @@
43534353
historyServiceDispatch({ kind: "delete-range", value: range });
43544354
}
43554355
return /* @__PURE__ */ g("div", { class: Sidebar_default.stack }, /* @__PURE__ */ g("h1", { class: Sidebar_default.pageTitle }, t4("page_title")), /* @__PURE__ */ g("nav", { class: Sidebar_default.nav }, ranges.value.map((range) => {
4356-
return /* @__PURE__ */ g(
4357-
Item3,
4358-
{
4359-
key: range.id,
4360-
onClick,
4361-
onDelete,
4362-
current,
4363-
range: range.id,
4364-
count: range.count,
4365-
ranges
4366-
}
4367-
);
4356+
return /* @__PURE__ */ g(Item3, { key: range.id, onClick, onDelete, current, range: range.id, count: range.count });
43684357
})));
43694358
}
4370-
function Item3({ current, range, onClick, onDelete, ranges, count }) {
4359+
function Item3({ current, range, onClick, onDelete, count }) {
43714360
const { t: t4 } = useTypedTranslation();
43724361
const { buttonLabel, linkLabel } = labels(range, t4);
43734362
const classNames = useComputed(() => {
@@ -4389,9 +4378,9 @@
43894378
},
43904379
/* @__PURE__ */ g("span", { className: Sidebar_default.icon }, /* @__PURE__ */ g("img", { src: iconMap[range] })),
43914380
titleMap[range](t4)
4392-
), /* @__PURE__ */ g(DeleteAllButton, { onClick: onDelete, ariaLabel: buttonLabel, range, ranges, count }));
4381+
), /* @__PURE__ */ g(DeleteAllButton, { onClick: onDelete, ariaLabel: buttonLabel, range, count }));
43934382
}
4394-
function DeleteAllButton({ range, ranges, onClick, ariaLabel, count }) {
4383+
function DeleteAllButton({ range, onClick, ariaLabel, count }) {
43954384
const { t: t4 } = useTypedTranslationWith(
43964385
/** @type {json} */
43974386
{}

0 commit comments

Comments
 (0)