From 6e4bd83a6909503c1a58d5857ebbda9bf9a42461 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bryan=20Gald=C3=A1mez?= Date: Fri, 3 Jan 2025 21:16:44 -0600 Subject: [PATCH 1/5] =?UTF-8?q?=E2=AC=86=EF=B8=8F=20Update=20deps?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- package.json | 6 +- pnpm-lock.yaml | 322 +++++++++++++++++++++++++++---------------------- surfer.json | 2 +- 3 files changed, 182 insertions(+), 148 deletions(-) diff --git a/package.json b/package.json index 399db4383..3392bc44b 100644 --- a/package.json +++ b/package.json @@ -36,8 +36,8 @@ "@zen-browser/surfer": "^1.8.5" }, "devDependencies": { - "husky": "^9.1.5", - "lint-staged": "^15.2.10", - "prettier": "^3.3.3" + "husky": "^9.1.7", + "lint-staged": "^15.3.0", + "prettier": "^3.4.2" } } diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 752288d56..ae0742e64 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -10,17 +10,17 @@ importers: dependencies: '@zen-browser/surfer': specifier: ^1.8.5 - version: 1.8.5 + version: 1.8.5(glob@7.2.3) devDependencies: husky: - specifier: ^9.1.5 - version: 9.1.5 + specifier: ^9.1.7 + version: 9.1.7 lint-staged: - specifier: ^15.2.10 - version: 15.2.10 + specifier: ^15.3.0 + version: 15.3.0 prettier: - specifier: ^3.3.3 - version: 3.3.3 + specifier: ^3.4.2 + version: 3.4.2 packages: @@ -131,8 +131,8 @@ packages: resolution: {integrity: sha512-quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ==} engines: {node: '>=8'} - ansi-regex@6.0.1: - resolution: {integrity: sha512-n5M855fKb2SsfMIiFFoVrABHJC8QtHwVx+mHWP3QcEqBHYienj5dHSgjbxtC0WEZXYt4wcD6zrQElDPhFuZgfA==} + ansi-regex@6.1.0: + resolution: {integrity: sha512-7HSX4QQb4CspciLpVFwyRe79O3xsIZDDLER21kERQ71oaPodF8jL725AgJMFAYbooIqolJoRLuM81SpeUkpkvA==} engines: {node: '>=12'} ansi-styles@4.3.0: @@ -146,8 +146,11 @@ packages: argparse@1.0.10: resolution: {integrity: sha512-o5Roy6tNG4SL/FOkCAN6RzjiakZS25RLYFrcMttJqbdd8BWrnA+fGz57iN5Pb06pvBGvl5gQ0B48dJlslXvoTg==} - async-compat@1.4.7: - resolution: {integrity: sha512-DzJRBBF6Q+AJYuAnFXflE5P0FEkJ7oKMOOR4YhzMNZsDnXOSUdCpYt+PpbCGrljempC3hujxy48rHBcBAWdr7g==} + asap@2.0.6: + resolution: {integrity: sha512-BSHWgDSAiKs50o2Re8ppvp3seVHXSRM44cdSsT9FfNEUUZLOGWVCsiWaRPWM1Znn+mqZ1OfVZ3z3DWEzSp7hRA==} + + async-compat@1.5.1: + resolution: {integrity: sha512-itH7HB0C7nzX7ynpIJYEJqpvuXmfWXXbzDrTfJOJJ3fJfgNTGgZUqKVYUT3U17zhceZiTdPdtiUQQns2F3RRCQ==} engines: {node: '>=0.8'} async-icns@1.0.2: @@ -201,12 +204,16 @@ packages: buffer@5.7.1: resolution: {integrity: sha512-EHcyIPBQ4BSGlvjB16k5KgAJ27CIsHY/2JBmCRReo48y9rQ3MaUzWX3KVlBa4U7MyX02HdVj0K7C3WaB3ju7FQ==} + call-once-fn@1.0.1: + resolution: {integrity: sha512-/MIar5BYO3zAwe0QZCFsr89R6vn6BWiS3BCG2IyCUobkY3rAKK5r+elC3TWdBQW4q6A8aNjS5CDTmtUnAIOa7g==} + engines: {node: '>=0.8'} + chalk@4.1.2: resolution: {integrity: sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==} engines: {node: '>=10'} - chalk@5.3.0: - resolution: {integrity: sha512-dLitG79d+GV1Nb/VYcCDFivJeK1hiukt9QjRNVOsUtTy1rR1YJsmpGGTZ3qJos+uw7WmWF4wUwBd9jxjocFC2w==} + chalk@5.4.1: + resolution: {integrity: sha512-zgVZuo2WcZgfUEmsn6eO3kINexW8RAE4maiQ8QNs8CtpPCSyMiYsULR3HQYkm3w8FIA3SberyMJMSldGsW+U3w==} engines: {node: ^12.17.0 || ^14.13 || >=16.0.0} chownr@1.1.4: @@ -260,21 +267,18 @@ packages: resolution: {integrity: sha512-FveZTNuGw04cxlAiWbzi6zTAL/lhehaWbTtgluJh4/E95DqMwTmha3KZN1aAWA8cFIhHzMZUvLevkw5Rqk+tSQ==} engines: {node: '>= 0.6'} - core-js-pure@3.37.1: - resolution: {integrity: sha512-J/r5JTHSmzTxbiYYrzXg9w1VpqrYt+gexenBE9pugeyhwPZTAEJddyiReJWsLO6uNQ8xJZFbod6XC7KKwatCiA==} - - core-js@3.37.1: - resolution: {integrity: sha512-Xn6qmxrQZyB0FFY8E3bgRXei3lWDJHhvI+u0q9TKIYM49G8pAr0FgnnrFRAmsbptZL1yxRADVXn+x5AGsbBfyw==} + core-js-pure@3.39.0: + resolution: {integrity: sha512-7fEcWwKI4rJinnK+wLTezeg2smbFFdSBP6E2kQZNbnzM2s1rpKQ6aaRteZSSg7FLU3P0HGGVo/gbpfanU36urg==} core-util-is@1.0.3: resolution: {integrity: sha512-ZQBvi1DcpJ4GDqanjucZ2Hj3wEO5pZDS89BWbkcrvdxksJorwUDDZamX9ldFkp9aw2lmBDLgkObEA4DWNJ9FYQ==} - cross-spawn@7.0.3: - resolution: {integrity: sha512-iRDPJKUPVEND7dHPO8rkbOnPpyDygcDFtWjpeWNCgy8WP2rXcxXL8TskReQl6OrB2G7+UJrags1q15Fudc7G6w==} + cross-spawn@7.0.6: + resolution: {integrity: sha512-uV2QOWP2nWzsy2aMp8aRibhi9dlzF5Hgh5SHaB9OiTGEyDTiJJyx0uy51QXdyWbtAHNua4XJzUKca3OzKUd3vA==} engines: {node: '>= 8'} - debug@4.3.7: - resolution: {integrity: sha512-Er2nc/H7RrMXZBFCEim6TCmMk02Z8vLC2Rbi1KEBggpo0fS6l0S1nnapwmIi3yW/+GOJap1Krg4w0Hg80oCqgQ==} + debug@4.4.0: + resolution: {integrity: sha512-6WTZ/IxCY/T6BALoZHaE4ctp9xm+Z5kY/pzYaCHRFeyVhojxlrm+46y68HA6hr0TcwEssoxNiDEUJQjfPZ/RYA==} engines: {node: '>=6.0'} peerDependencies: supports-color: '*' @@ -330,13 +334,18 @@ packages: resolution: {integrity: sha512-XYfuKMvj4O35f/pOXLObndIRvyQ+/+6AhODh+OKWj9S9498pHHn/IMszH+gt0fBCRWMNfk1ZSp5x3AifmnI2vg==} engines: {node: '>=6'} - extract-base-iterator@1.0.1: - resolution: {integrity: sha512-CbDiNxzBKMsVv/EVZnG+itxULcsRijEUm1l8cZ5S0519R77MA9jX3FOJsf+96OnxfVwUJiy1q9+pDvXarkQKHQ==} + extract-base-iterator@1.2.1: + resolution: {integrity: sha512-6paYzxwwx215Zj29ZhoCw2wnaGnU8kPPIzth0U71JwZCo9oR5sGUBWQd6Da5YIWmUZKsadCULxr2dRAzhTmKIA==} engines: {node: '>=0.8'} - fast-extract@1.1.0: - resolution: {integrity: sha512-uUN0xFXyicJXBhwP4a7IRYmLWDB8POLb1DpBy+4HyWwWcD8dzlWZCDUWXdpvjCq3ve/RWlWRIVT5ZJ4WKbIPZw==} + fast-extract@1.3.1: + resolution: {integrity: sha512-4er0iCszwwY1JX1SfYHQKuoPTmu6ISIG8W4gD8/jHkB7/Ws9i0ZNu+48BpalV+GGsushMvllTFk8txLBGbpYGg==} engines: {node: '>=0.8'} + peerDependencies: + lzma-native: '*' + peerDependenciesMeta: + lzma-native: + optional: true fifo@2.4.1: resolution: {integrity: sha512-XTbUCNmo54Jav0hcL6VxDuY4x1eCQH61HEF80C2Oww283pfjQ2C8avZeyq4v43sW2S2403kmzssE9j4lbF66Sg==} @@ -348,8 +357,8 @@ packages: flush-write-stream@2.0.0: resolution: {integrity: sha512-uXClqPxT4xW0lcdSBheb2ObVU+kuqUk3Jk64EwieirEXZx9XUrVwp/JuBfKAWaM4T5Td/VL7QLDWPXp/MvGm/g==} - follow-redirects@1.15.6: - resolution: {integrity: sha512-wWN62YITEaOpSK584EZXJafH1AGpO8RVgElfkuXbTOrPX4fIfOyEpW/CsiNd8JdYrAoOvafRTOEnvsO++qCqFA==} + follow-redirects@1.15.9: + resolution: {integrity: sha512-gew4GsXizNgdoRyqmyfMHyAmXsZDk6mHkSxZFCzW9gwlbtOW44CDtYavM+y+72qD/Vq2l550kMF52DT8fOLJqQ==} engines: {node: '>=4.0'} peerDependencies: debug: '*' @@ -375,8 +384,8 @@ packages: resolution: {integrity: sha512-DyFP3BM/3YHTQOCUL/w0OZHR0lpKeGrxotcHWcqNEdnltqFwXVfhEBQ94eIo34AfQpo0rGki4cyIiftY06h2Fg==} engines: {node: 6.* || 8.* || >= 10.*} - get-east-asian-width@1.2.0: - resolution: {integrity: sha512-2nk+7SIVb14QrgXFHcm84tD4bKQz0RxPuMT8Ag5KPOq7J5fEmAg0UbXdTOSHqNuHSU28k55qnceesxXRZGzKWA==} + get-east-asian-width@1.3.0: + resolution: {integrity: sha512-vpeMIQKxczTD/0s2CdEWHcb0eeJe6TFjxb+J5xgX7hScxqrGuyjmv4c1D4A/gelKfyox0gJJwIHF+fLjeaM8kQ==} engines: {node: '>=18'} get-stream@6.0.1: @@ -418,8 +427,8 @@ packages: resolution: {integrity: sha512-AXcZb6vzzrFAUE61HnN4mpLqd/cSIwNQjtNWR0euPm6y0iqx3G4gOXaIDdtdDwZmhwe82LA6+zinmW4UBWVePQ==} engines: {node: '>=16.17.0'} - husky@9.1.5: - resolution: {integrity: sha512-rowAVRUBfI0b4+niA4SJMhfQwc107VLkBUgEYYAOQAbqDCnra1nYh83hF/MDmhYs9t9n1E3DuKOrs2LYNC+0Ag==} + husky@9.1.7: + resolution: {integrity: sha512-5gs5ytaNjBrh5Ow3zrvdUUY+0VxIuWVL4i9irt6friV+BqdCfmV11CQTWMiBYWHbXhco+J1kHfTOUkePhCDvMA==} engines: {node: '>=18'} hasBin: true @@ -521,17 +530,17 @@ packages: lifecycle@1.0.4: resolution: {integrity: sha512-FJx0SNrM2rouctdOH4rATsHT+BvgyXX4LEQ+Yn9COQNPK3u4XAPp9qS7OKpRO22MeT39oxkjZkRcLnHxSmiduw==} - lilconfig@3.1.2: - resolution: {integrity: sha512-eop+wDAvpItUys0FWkHIKeC9ybYrTGbU41U5K7+bttZZeohvnY7M9dZ5kB21GNWiFT2q1OoPTvncPCgSOVO5ow==} + lilconfig@3.1.3: + resolution: {integrity: sha512-/vlFKAoH5Cgt3Ie+JLhRbwOsCQePABiU3tJ1egGvyQ+33R/vcwM2Zl2QR/LzjsBeItPt3oSVXapn+m4nQDvpzw==} engines: {node: '>=14'} - lint-staged@15.2.10: - resolution: {integrity: sha512-5dY5t743e1byO19P9I4b3x8HJwalIznL5E1FWYnU6OWw33KxNBSLAc6Cy7F2PsFEO8FKnLwjwm5hx7aMF0jzZg==} + lint-staged@15.3.0: + resolution: {integrity: sha512-vHFahytLoF2enJklgtOtCtIjZrKD/LoxlaUusd5nh7dWv/dkKQJY74ndFSzxCdv7g0ueGg1ORgTSt4Y9LPZn9A==} engines: {node: '>=18.12.0'} hasBin: true - listr2@8.2.4: - resolution: {integrity: sha512-opevsywziHd3zHCVQGAj8zu+Z3yHNkkoYhWIGnq54RrCVwLz0MozotJEDnKsIBLvkfLGN6BLOyAeRrYI0pKA4g==} + listr2@8.2.5: + resolution: {integrity: sha512-iyAZCeyD+c1gPyE9qpFu8af0Y+MRtmKOncdGoA2S5EY8iFq99dmmvkNnHiWo+pj0s7yH7l3KPIgee77tKpXPWQ==} engines: {node: '>=18.0.0'} lodash.compact@3.0.1: @@ -576,15 +585,12 @@ packages: mkdirp-classic@0.5.3: resolution: {integrity: sha512-gKLcREMhtuZRwRAfqP3RFW+TK4JqApVBtOIftVgjuABpAtpxhPGaDcfvbhNvD0B8iD1oUr/txX35NjcaY6Ns/A==} - mkpath@1.0.0: - resolution: {integrity: sha512-PbNHr7Y/9Y/2P5pKFv5XOGBfNQqZ+fdiHWcuf7swLACN5ZW5LU7J5tMU8LSBjpluAxAxKYGD9nnaIbdRy9+m1w==} - mock-require-lazy@1.0.1: resolution: {integrity: sha512-Sv05IW2MuG7C+gVTHirqF8cbqAM8MeMEIKU3MIQDA1pyXKnv0AGa/3l0iwXk/i+81OoFzt+iU0p8DdphV2Ejww==} engines: {node: '>=0.8'} - modern-async@1.1.4: - resolution: {integrity: sha512-jaZlzQB3W9PRF43+T144lYWb7UaTapJM6MZxNGLqpgPVal6uV4ixkR+t/1H1/7UM03jDu5BnvAYDqeawvL7kiw==} + modern-async@1.1.5: + resolution: {integrity: sha512-Yioj6tw1jvZef+bYjcZN9gMPBpVkkqGOMbQg/1U9dIqdij44mpftvNJxTf/u2Gc6oobuNGUFWNJwJwq8qEs9bw==} mount-dmg@1.0.1: resolution: {integrity: sha512-YEHSgtE1d6jIm6ht0uqo4MWQSXHvHYujgURXf+59hQDErH5bL5rv4uGwko8ejiFIeK6ySk8jBX1oX9NrlmBTCg==} @@ -601,8 +607,8 @@ packages: next-tick@1.1.0: resolution: {integrity: sha512-CXdUiJembsNjuToQvxayPZF9Vqht7hewsvy2sOWafLvi2awflj9mOC6bHIg50orX8IJvWKY9wYQ/zB2kogPslQ==} - node-abi@3.65.0: - resolution: {integrity: sha512-ThjYBfoDNr08AWx6hGaRbfPwxKV9kVzAzOzlLKbk2CuqXE2xnCh+cbAGnwM3t8Lq4v9rUB7VfondlkBckcJrVA==} + node-abi@3.71.0: + resolution: {integrity: sha512-SZ40vRiy/+wRTf21hxkkEjPJZpARzUMVcJoQse2EF8qkUWbbO2z7vd5oA/H6bVH6SZQ5STGcu0KRDS7biNRfxw==} engines: {node: '>=10'} node-addon-api@5.1.0: @@ -620,6 +626,10 @@ packages: resolution: {integrity: sha512-ppwTtiJZq0O/ai0z7yfudtBpWIoxM8yE6nHi1X47eFR2EWORqfbu6CnPlNsjeN683eT0qG6H/Pyf9fCcvjnnnQ==} engines: {node: ^12.20.0 || ^14.13.1 || >=16.0.0} + object-assign@4.1.1: + resolution: {integrity: sha512-rJgTQnkUnH1sFw8yT6VSU3zD3sWmu6sZhIseY8VX+GRu3P6F7Fu+JNDoXfklElbLJSnc3FUQHVe4cU5hj+BcUg==} + engines: {node: '>=0.10.0'} + once@1.4.0: resolution: {integrity: sha512-lNaJgI+2Q5URQBkccEKHTQOPaXdUxnZZElQTZY0MFUAuaEqe1E+Nyvgdz/aIyNi6Z9MzO5dv1H8n58/GELp3+w==} @@ -674,8 +684,8 @@ packages: engines: {node: '>=10'} hasBin: true - prettier@3.3.3: - resolution: {integrity: sha512-i2tDNA0O5IrMO757lfrdQZCc2jPNDVntV0m/+4whiDfWaTKfMNgR7Qz0NAeGz/nRqF4m5/6CLzbP4/liHt12Ew==} + prettier@3.4.2: + resolution: {integrity: sha512-e9MewbtFo+Fevyuxn/4rrcDAaq0IYxPGLvObpQjiZBMAzB9IGmzlnG9RZy3FFas+eBMu2vA0CszMeduow5dIuQ==} engines: {node: '>=14'} hasBin: true @@ -689,14 +699,14 @@ packages: resolution: {integrity: sha512-NxNv/kLguCA7p3jE8oL2aEBsrJWgAakBpgmgK6lpPWV+WuOmY6r2/zbAVnP+T8bQlA0nzHXSJSJW0Hq7ylaD2Q==} engines: {node: '>= 6'} - pump@3.0.0: - resolution: {integrity: sha512-LwZy+p3SFs1Pytd/jYct4wpv49HiYCqd9Rlc5ZVdk0V+8Yzv6jR5Blk3TRmPL1ft69TxP0IMZGJ+WPFU2BFhww==} + pump@3.0.2: + resolution: {integrity: sha512-tUPXtzlGM8FE3P0ZL6DVs/3P58k9nk8/jZeQCurTJylQA8qFYzHFfhBJkuqyE0FifOsQ0uKWekiZ5g8wtr28cw==} pumpify@2.0.1: resolution: {integrity: sha512-m7KOje7jZxrmutanlkS1daj1dS6z6BgslzOXmcSEpIlCxM3VJH7lG5QLeck/6hgF6F4crFf01UtQmNsJfweTAw==} - queue-cb@1.2.1: - resolution: {integrity: sha512-6BliHPdr+07JEc1f3WSZq1oun1okwC4g5StX+DBBIr4Xrx3a5oRLHV9fRFPH1kfOxP4o/sIsoJX3qY9JqTIORw==} + queue-cb@1.4.4: + resolution: {integrity: sha512-WHT/6s0nK/TB6/tlCi30NGNh8mQrCVmQAH5Hq/ZLaYFTjKVfsIKmfftJYAHXfGJ2FlRlVSAJjFBbSvSGJriCAw==} engines: {node: '>=0.8'} rc@1.2.8: @@ -724,10 +734,14 @@ packages: rfdc@1.4.1: resolution: {integrity: sha512-q1b3N5QkRUWUl7iyylaaj3kOpIT0N2i9MqIEQXP73GVsN9cw3fdx8X63cEmWhJGi2PPCF23Ijp7ktmd39rawIA==} - rimraf@2.7.1: - resolution: {integrity: sha512-uWjbaKIK3T1OSVptzX7Nl6PvQ3qAGtKEtVRjRuazjfL3Bx5eI409VZSqgND+4UNnmzLVdPj9FqFJNPqBZFve4w==} - deprecated: Rimraf versions prior to v4 are no longer supported + rimraf2@2.8.2: + resolution: {integrity: sha512-Bz7P3Zu6lEpek5LduIqg5A2mRu8kCllR+rGYofqq9bRRiHC9m+Py/EiINPt9iu/XOqQ//Q++XSka7EwL3K3Chw==} hasBin: true + peerDependencies: + glob: '*' + peerDependenciesMeta: + glob: + optional: true rustic@1.2.2: resolution: {integrity: sha512-aagYrcImcYj3QbaP7nirOw8/q8aULMu0LkKucP9B4WsRbXlXpk195nYAEB+uJzAcgk2pKS+yMzbAJtIoOqwZoQ==} @@ -742,8 +756,8 @@ packages: resolution: {integrity: sha512-cBznnQ9KjJqU67B52RMC65CMarK2600WFnbkcaiwWq3xy/5haFJlshgnpjovMVJ+Hff49d8GEn0b87C5pDQ10g==} hasBin: true - semver@7.6.2: - resolution: {integrity: sha512-FNAIBWCx9qcRhoHcgcJ0gvU7SN1lYU2ZXuSfl04bSC5OpvDHFyJCjdNHomPXxjQlCBU67YW64PzY7/VIEH7F2w==} + semver@7.6.3: + resolution: {integrity: sha512-oVekP1cKtI+CTDvHWYFUcMtsK/00wmAEfyqKfNdARm8u1wNVhSgaX7A8d4UuIlUI5e84iEwOhs7ZPYRmzU9U6A==} engines: {node: '>=10'} hasBin: true @@ -798,8 +812,8 @@ packages: sprintf-js@1.0.3: resolution: {integrity: sha512-D9cPgkvLlV3t3IzL0D0YLvGA9Ahk4PcvVwUbN0dSGr1aP0Nrt4AEnTUbuGvquEC0mA64Gqt1fzirlRs5ibXx8g==} - stack-base-iterator@1.1.1: - resolution: {integrity: sha512-1mNThtigubwfisTX+RwMXahSxLch7quWujkD0ef957UD/5STUrnl3TQM/Kspwqm5tokJ9eOukDUkOGroigh3Kw==} + stack-base-iterator@1.1.5: + resolution: {integrity: sha512-wFnKvg6qFFCQBvpBqa4SWnDGIVziYu8A2ATQqcvYwdi774efdRHzXarjW88vaTy2fLbuVVH0g361UfOEJHWmCA==} engines: {node: '>=0.8'} stream-shift@1.0.3: @@ -850,8 +864,8 @@ packages: tar-fs@2.1.1: resolution: {integrity: sha512-V0r2Y9scmbDRLCNex/+hYzvp/zyYjvFbHPNgVTKfQvVrb6guiE/fxP+XblDNR011utopbkex2nM4dHNV6GDsng==} - tar-iterator@1.0.1: - resolution: {integrity: sha512-RxwFVLHCrZCEHIaWUaxXG21dPlzU/POiTAMqZzaRgy/ndOP2sPnB/P2/g4yN/VwXMgFu343M5URlYbH8qg7gAA==} + tar-iterator@1.2.2: + resolution: {integrity: sha512-cFr12lmqNsIBFT++9QJSPNdOXndBU3XyWOx6UDq+2AipKA865i/RKIc+kbHv1i5Ko60+rYSI+/5PPMCQP3fP+g==} engines: {node: '>=0.8'} tar-stream-compat@2.1.5: @@ -919,13 +933,13 @@ packages: resolution: {integrity: sha512-LKYU1iAXJXUgAXn9URjiu+MWhyUXHsvfp7mcuYm9dSUKK0/CjtrUwFAxD82/mCWbtLsGjFIad0wIsod4zrTAEQ==} engines: {node: '>=0.4'} - yaml@2.5.1: - resolution: {integrity: sha512-bLQOjaX/ADgQ20isPJRvF0iRUHIxVhYvr53Of7wGcWlO2jvtUlH5m87DsmulFVxRpNLOnI4tB6p/oh8D7kpn9Q==} + yaml@2.6.1: + resolution: {integrity: sha512-7r0XPzioN/Q9kXBro/XPnA6kznR73DHq+GXh5ON7ZozRO6aMjbmiBuKste2wslTFkC5d1dw0GooOCepZXJ2SAg==} engines: {node: '>= 14'} hasBin: true - zip-iterator@1.0.1: - resolution: {integrity: sha512-0mrjvo33Z9E/7rd2iiNmEJMjbiv+/czKyTl+IOdgpY87+y9vUW+bB6HmhGU9s7G3TpWsEIID3n+7cckK3D2hwQ==} + zip-iterator@1.2.1: + resolution: {integrity: sha512-56+76FbbgsQySl8wAh9W7SCaSyzFQK3xjL1+6tzai5ER+f7mSVpU9wKgPk+N9ZJ/5xTJqg5Z2rUe9d7SxrbgFQ==} engines: {node: '>=0.8'} zip@1.2.0: @@ -1003,7 +1017,7 @@ snapshots: '@types/node@17.0.45': {} - '@zen-browser/surfer@1.8.5': + '@zen-browser/surfer@1.8.5(glob@7.2.3)': dependencies: '@resvg/resvg-js': 1.4.0 async-icns: 1.0.2 @@ -1012,23 +1026,25 @@ snapshots: cli-progress: 3.12.0 commander: 6.2.1 execa: 5.1.1 - fast-extract: 1.1.0 + fast-extract: 1.3.1(glob@7.2.3) fs-extra: 10.1.0 ini: 3.0.1 is-apple-silicon: https://codeload.github.com/trickypr/is-apple-silicon/tar.gz/5f75501a1d7566ba9f94174b6825d7bd9d302b6a kleur: 4.1.5 - modern-async: 1.1.4 + modern-async: 1.1.5 mount-dmg: 1.0.1 picomatch: 2.3.1 png-to-ico: 2.1.8 prompts: 2.4.2 rustic: 1.2.2 - semver: 7.6.2 + semver: 7.6.3 sharp: 0.30.7 tiny-glob: 0.2.9 xmlbuilder2: 3.1.1 transitivePeerDependencies: - debug + - glob + - lzma-native ansi-escapes@7.0.0: dependencies: @@ -1036,7 +1052,7 @@ snapshots: ansi-regex@5.0.1: {} - ansi-regex@6.0.1: {} + ansi-regex@6.1.0: {} ansi-styles@4.3.0: dependencies: @@ -1048,7 +1064,9 @@ snapshots: dependencies: sprintf-js: 1.0.3 - async-compat@1.4.7: + asap@2.0.6: {} + + async-compat@1.5.1: dependencies: is-error: 2.2.2 is-promise: 4.0.0 @@ -1059,11 +1077,12 @@ snapshots: axios@0.21.4: dependencies: - follow-redirects: 1.15.6 + follow-redirects: 1.15.9 transitivePeerDependencies: - debug - balanced-match@1.0.2: {} + balanced-match@1.0.2: + optional: true base64-js@0.0.2: {} @@ -1093,6 +1112,7 @@ snapshots: dependencies: balanced-match: 1.0.2 concat-map: 0.0.1 + optional: true braces@3.0.3: dependencies: @@ -1114,12 +1134,14 @@ snapshots: base64-js: 1.5.1 ieee754: 1.2.1 + call-once-fn@1.0.1: {} + chalk@4.1.2: dependencies: ansi-styles: 4.3.0 supports-color: 7.2.0 - chalk@5.3.0: {} + chalk@5.4.1: {} chownr@1.1.4: {} @@ -1160,25 +1182,24 @@ snapshots: commander@9.5.0: {} - concat-map@0.0.1: {} + concat-map@0.0.1: + optional: true content-disposition@0.5.4: dependencies: safe-buffer: 5.2.1 - core-js-pure@3.37.1: {} - - core-js@3.37.1: {} + core-js-pure@3.39.0: {} core-util-is@1.0.3: {} - cross-spawn@7.0.3: + cross-spawn@7.0.6: dependencies: path-key: 3.1.1 shebang-command: 2.0.0 which: 2.0.2 - debug@4.3.7: + debug@4.4.0: dependencies: ms: 2.1.3 @@ -1213,7 +1234,7 @@ snapshots: execa@5.1.1: dependencies: - cross-spawn: 7.0.3 + cross-spawn: 7.0.6 get-stream: 6.0.1 human-signals: 2.1.0 is-stream: 2.0.1 @@ -1225,7 +1246,7 @@ snapshots: execa@8.0.1: dependencies: - cross-spawn: 7.0.3 + cross-spawn: 7.0.6 get-stream: 8.0.1 human-signals: 5.0.0 is-stream: 3.0.0 @@ -1237,42 +1258,45 @@ snapshots: expand-template@2.0.3: {} - extract-base-iterator@1.0.1: + extract-base-iterator@1.2.1(glob@7.2.3): dependencies: - core-js: 3.37.1 fs-access-compat: 1.0.3 graceful-fs: 4.2.11 is-absolute: 1.0.0 lodash.compact: 3.0.1 - mkpath: 1.0.0 - queue-cb: 1.2.1 - rimraf: 2.7.1 - stack-base-iterator: 1.1.1 + mkdirp-classic: 0.5.3 + object-assign: 4.1.1 + queue-cb: 1.4.4 + rimraf2: 2.8.2(glob@7.2.3) + stack-base-iterator: 1.1.5 + transitivePeerDependencies: + - glob - fast-extract@1.1.0: + fast-extract@1.3.1(glob@7.2.3): dependencies: bl: 3.0.1 buffer-v6-polyfill: 1.0.5 + call-once-fn: 1.0.1 content-disposition: 0.5.4 - core-js: 3.37.1 end-of-stream: 1.4.4 flush-write-stream: 2.0.0 lodash.throttle: 4.1.1 - mkpath: 1.0.0 + mkdirp-classic: 0.5.3 mock-require-lazy: 1.0.1 next-tick: 1.1.0 - once: 1.4.0 progress-stream: 2.0.0 pumpify: 2.0.1 - queue-cb: 1.2.1 + queue-cb: 1.4.4 readable-stream: 2.3.8 require_optional: 1.0.1 - rimraf: 2.7.1 + rimraf2: 2.8.2(glob@7.2.3) signal-exit: 3.0.7 - tar-iterator: 1.0.1 + tar-iterator: 1.2.2(glob@7.2.3) temp-suffix: 0.1.1 unbzip2-stream: 1.4.3 - zip-iterator: 1.0.1 + zip-iterator: 1.2.1(glob@7.2.3) + transitivePeerDependencies: + - glob fifo@2.4.1: {} @@ -1285,7 +1309,7 @@ snapshots: inherits: 2.0.4 readable-stream: 3.6.2 - follow-redirects@1.15.6: {} + follow-redirects@1.15.9: {} fs-access-compat@1.0.3: {} @@ -1297,11 +1321,12 @@ snapshots: jsonfile: 6.1.0 universalify: 2.0.1 - fs.realpath@1.0.0: {} + fs.realpath@1.0.0: + optional: true get-caller-file@2.0.5: {} - get-east-asian-width@1.2.0: {} + get-east-asian-width@1.3.0: {} get-stream@6.0.1: {} @@ -1317,6 +1342,7 @@ snapshots: minimatch: 3.1.2 once: 1.4.0 path-is-absolute: 1.0.1 + optional: true globalyzer@0.1.0: {} @@ -1332,7 +1358,7 @@ snapshots: human-signals@5.0.0: {} - husky@9.1.5: {} + husky@9.1.7: {} ieee754@1.2.1: {} @@ -1342,6 +1368,7 @@ snapshots: dependencies: once: 1.4.0 wrappy: 1.0.2 + optional: true inherits@2.0.4: {} @@ -1366,7 +1393,7 @@ snapshots: is-fullwidth-code-point@5.0.0: dependencies: - get-east-asian-width: 1.2.0 + get-east-asian-width: 1.3.0 is-number@7.0.0: {} @@ -1407,24 +1434,24 @@ snapshots: lifecycle@1.0.4: {} - lilconfig@3.1.2: {} + lilconfig@3.1.3: {} - lint-staged@15.2.10: + lint-staged@15.3.0: dependencies: - chalk: 5.3.0 + chalk: 5.4.1 commander: 12.1.0 - debug: 4.3.7 + debug: 4.4.0 execa: 8.0.1 - lilconfig: 3.1.2 - listr2: 8.2.4 + lilconfig: 3.1.3 + listr2: 8.2.5 micromatch: 4.0.8 pidtree: 0.6.0 string-argv: 0.3.2 - yaml: 2.5.1 + yaml: 2.6.1 transitivePeerDependencies: - supports-color - listr2@8.2.4: + listr2@8.2.5: dependencies: cli-truncate: 4.0.0 colorette: 2.0.20 @@ -1463,21 +1490,20 @@ snapshots: minimatch@3.1.2: dependencies: brace-expansion: 1.1.11 + optional: true minimist@1.2.8: {} mkdirp-classic@0.5.3: {} - mkpath@1.0.0: {} - mock-require-lazy@1.0.1: dependencies: get-caller-file: 2.0.5 normalize-path: 3.0.0 - modern-async@1.1.4: + modern-async@1.1.5: dependencies: - core-js-pure: 3.37.1 + core-js-pure: 3.39.0 nanoassert: 2.0.0 mount-dmg@1.0.1: @@ -1492,9 +1518,9 @@ snapshots: next-tick@1.1.0: {} - node-abi@3.65.0: + node-abi@3.71.0: dependencies: - semver: 7.6.2 + semver: 7.6.3 node-addon-api@5.1.0: {} @@ -1508,6 +1534,8 @@ snapshots: dependencies: path-key: 4.0.0 + object-assign@4.1.1: {} + once@1.4.0: dependencies: wrappy: 1.0.2 @@ -1526,7 +1554,8 @@ snapshots: os-shim@0.1.3: {} - path-is-absolute@1.0.1: {} + path-is-absolute@1.0.1: + optional: true path-key@3.1.1: {} @@ -1552,14 +1581,14 @@ snapshots: minimist: 1.2.8 mkdirp-classic: 0.5.3 napi-build-utils: 1.0.2 - node-abi: 3.65.0 - pump: 3.0.0 + node-abi: 3.71.0 + pump: 3.0.2 rc: 1.2.8 simple-get: 4.0.1 tar-fs: 2.1.1 tunnel-agent: 0.6.0 - prettier@3.3.3: {} + prettier@3.4.2: {} process-nextick-args@2.0.1: {} @@ -1573,7 +1602,7 @@ snapshots: kleur: 3.0.3 sisteransi: 1.0.5 - pump@3.0.0: + pump@3.0.2: dependencies: end-of-stream: 1.4.4 once: 1.4.0 @@ -1582,9 +1611,9 @@ snapshots: dependencies: duplexify: 4.1.3 inherits: 2.0.4 - pump: 3.0.0 + pump: 3.0.2 - queue-cb@1.2.1: {} + queue-cb@1.4.4: {} rc@1.2.8: dependencies: @@ -1623,8 +1652,8 @@ snapshots: rfdc@1.4.1: {} - rimraf@2.7.1: - dependencies: + rimraf2@2.8.2(glob@7.2.3): + optionalDependencies: glob: 7.2.3 rustic@1.2.2: {} @@ -1635,7 +1664,7 @@ snapshots: semver@5.7.2: {} - semver@7.6.2: {} + semver@7.6.3: {} sharp@0.30.7: dependencies: @@ -1643,7 +1672,7 @@ snapshots: detect-libc: 2.0.3 node-addon-api: 5.1.0 prebuild-install: 7.1.2 - semver: 7.6.2 + semver: 7.6.3 simple-get: 4.0.1 tar-fs: 2.1.1 tunnel-agent: 0.6.0 @@ -1692,11 +1721,12 @@ snapshots: sprintf-js@1.0.3: {} - stack-base-iterator@1.1.1: + stack-base-iterator@1.1.5: dependencies: - async-compat: 1.4.7 + asap: 2.0.6 + async-compat: 1.5.1 + call-once-fn: 1.0.1 fifo: 2.4.1 - once: 1.4.0 stream-shift@1.0.3: {} @@ -1711,7 +1741,7 @@ snapshots: string-width@7.2.0: dependencies: emoji-regex: 10.4.0 - get-east-asian-width: 1.2.0 + get-east-asian-width: 1.3.0 strip-ansi: 7.1.0 string_decoder@1.1.1: @@ -1728,7 +1758,7 @@ snapshots: strip-ansi@7.1.0: dependencies: - ansi-regex: 6.0.1 + ansi-regex: 6.1.0 strip-final-newline@2.0.0: {} @@ -1744,21 +1774,23 @@ snapshots: dependencies: chownr: 1.1.4 mkdirp-classic: 0.5.3 - pump: 3.0.0 + pump: 3.0.2 tar-stream: 2.2.0 - tar-iterator@1.0.1: + tar-iterator@1.2.2(glob@7.2.3): dependencies: + call-once-fn: 1.0.1 end-of-stream: 1.4.4 - extract-base-iterator: 1.0.1 + extract-base-iterator: 1.2.1(glob@7.2.3) fs-access-compat: 1.0.3 lifecycle: 1.0.4 lodash.compact: 3.0.1 - mkpath: 1.0.0 - once: 1.4.0 - queue-cb: 1.2.1 - rimraf: 2.7.1 + mkdirp-classic: 0.5.3 + queue-cb: 1.4.4 + rimraf2: 2.8.2(glob@7.2.3) tar-stream-compat: 2.1.5 + transitivePeerDependencies: + - glob tar-stream-compat@2.1.5: dependencies: @@ -1835,25 +1867,27 @@ snapshots: xtend@4.0.2: {} - yaml@2.5.1: {} + yaml@2.6.1: {} - zip-iterator@1.0.1: + zip-iterator@1.2.1(glob@7.2.3): dependencies: buffer-v6-polyfill: 1.0.5 + call-once-fn: 1.0.1 end-of-stream: 1.4.4 - extract-base-iterator: 1.0.1 + extract-base-iterator: 1.2.1(glob@7.2.3) fs-access-compat: 1.0.3 lifecycle: 1.0.4 lodash.compact: 3.0.1 - mkpath: 1.0.0 - once: 1.4.0 + mkdirp-classic: 0.5.3 os-shim: 0.1.3 - queue-cb: 1.2.1 + queue-cb: 1.4.4 readable-stream: 2.3.8 - rimraf: 2.7.1 + rimraf2: 2.8.2(glob@7.2.3) short-hash: 1.0.0 temp-suffix: 0.1.1 zip: 1.2.0 + transitivePeerDependencies: + - glob zip@1.2.0: dependencies: diff --git a/surfer.json b/surfer.json index 5f7a53c95..b3dc66132 100644 --- a/surfer.json +++ b/surfer.json @@ -53,4 +53,4 @@ "licenseType": "MPL-2.0" }, "updateHostname": "updates.zen-browser.app" -} +} \ No newline at end of file From 5e77f44e055022c2a5298b2b6eb928dbc6b59fc9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bryan=20Gald=C3=A1mez?= Date: Fri, 3 Jan 2025 21:17:50 -0600 Subject: [PATCH 2/5] =?UTF-8?q?=E2=9C=8F=EF=B8=8F=20Fix=20typo?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../actors/ZenThemeMarketplaceChild.sys.mjs | 30 ++++++++++++------- 1 file changed, 19 insertions(+), 11 deletions(-) diff --git a/src/browser/base/zen-components/actors/ZenThemeMarketplaceChild.sys.mjs b/src/browser/base/zen-components/actors/ZenThemeMarketplaceChild.sys.mjs index cfbe01c6b..d48c69f05 100644 --- a/src/browser/base/zen-components/actors/ZenThemeMarketplaceChild.sys.mjs +++ b/src/browser/base/zen-components/actors/ZenThemeMarketplaceChild.sys.mjs @@ -14,14 +14,18 @@ export class ZenThemeMarketplaceChild extends JSWindowActorChild { initalizeZenAPI(event) { const verifier = this.contentWindow.document.querySelector('meta[name="zen-content-verified"]'); + if (verifier) { verifier.setAttribute('content', 'verified'); } + const possibleRicePage = this.collectRiceMetadata(); + if (possibleRicePage?.id) { this.sendAsyncMessage('ZenThemeMarketplace:RicePage', possibleRicePage); return; } + this.initiateThemeMarketplace(); this.contentWindow.document.addEventListener('ZenCheckForThemeUpdates', this.checkForThemeUpdates.bind(this)); } @@ -33,7 +37,7 @@ export class ZenThemeMarketplaceChild extends JSWindowActorChild { id: meta.getAttribute('data-id'), name: meta.getAttribute('data-name'), author: meta.getAttribute('data-author'), - } + }; } return null; } @@ -55,7 +59,7 @@ export class ZenThemeMarketplaceChild extends JSWindowActorChild { return this.contentWindow.document.getElementById('install-theme'); } - get actionButtonUnnstall() { + get actionButtonUninstall() { return this.contentWindow.document.getElementById('install-theme-uninstall'); } @@ -64,10 +68,12 @@ export class ZenThemeMarketplaceChild extends JSWindowActorChild { case 'ZenThemeMarketplace:ThemeChanged': { const themeId = message.data.themeId; const actionButton = this.actionButton; - const actionButtonInstalled = this.actionButtonUnnstall; + const actionButtonInstalled = this.actionButtonUninstall; + if (actionButton && actionButtonInstalled) { actionButton.disabled = false; actionButtonInstalled.disabled = false; + if (await this.isThemeInstalled(themeId)) { actionButton.classList.add('hidden'); actionButtonInstalled.classList.remove('hidden'); @@ -76,36 +82,38 @@ export class ZenThemeMarketplaceChild extends JSWindowActorChild { actionButtonInstalled.classList.add('hidden'); } } + break; } + case 'ZenThemeMarketplace:CheckForUpdatesFinished': { const updates = message.data.updates; + this.contentWindow.document.dispatchEvent( new CustomEvent('ZenThemeMarketplace:CheckForUpdatesFinished', { detail: { updates } }) ); + break; } + case 'ZenThemeMarketplace:GetThemeInfo': { const themeId = message.data.themeId; const theme = await this.getThemeInfo(themeId); + return theme; } } } injectMarkplaceAPI() { - Cu.exportFunction( - this.installTheme.bind(this), - this.contentWindow, - { - defineAs: "ZenInstallTheme", - } - ); + Cu.exportFunction(this.installTheme.bind(this), this.contentWindow, { + defineAs: 'ZenInstallTheme', + }); } async addIntallButtons() { const actionButton = this.actionButton; - const actionButtonUnnstall = this.actionButtonUnnstall; + const actionButtonUnnstall = this.actionButtonUninstall; const errorMessage = this.contentWindow.document.getElementById('install-theme-error'); if (!actionButton || !actionButtonUnnstall) { return; From 2b1224b3df52134f5e6a01c5aa7cf1282ed79f81 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bryan=20Gald=C3=A1mez?= Date: Fri, 3 Jan 2025 21:21:07 -0600 Subject: [PATCH 3/5] =?UTF-8?q?=F0=9F=90=9B=20Fix=20-=20Zen=20Mods:=20Defa?= =?UTF-8?q?ult=20value=20not=20being=20loaded=20on=20theme=20install=20due?= =?UTF-8?q?=20to=20zen=20mods=20not=20being=20always=20triggered=20and=20d?= =?UTF-8?q?efault=20values=20not=20being=20in=20place=20when=20reading=20t?= =?UTF-8?q?hem=20(fixes=20#3887)=20-=20Zen=20Mods:=20Fixed=20string=20pref?= =?UTF-8?q?erences=20not=20changing=20completely=20by=20changing=20the=20e?= =?UTF-8?q?vent=20listener=20and=20replacing=20the=20throttle=20with=20a?= =?UTF-8?q?=20debounce,=20so=20we=20only=20listen=20to=20the=20last=20keyd?= =?UTF-8?q?own=20(fixes=20#3558)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../actors/ZenThemeMarketplaceParent.sys.mjs | 26 ++++++--- .../components/preferences/zen-settings.js | 56 +++++++++---------- 2 files changed, 47 insertions(+), 35 deletions(-) diff --git a/src/browser/base/zen-components/actors/ZenThemeMarketplaceParent.sys.mjs b/src/browser/base/zen-components/actors/ZenThemeMarketplaceParent.sys.mjs index 67ed536f1..e9c6d0622 100644 --- a/src/browser/base/zen-components/actors/ZenThemeMarketplaceParent.sys.mjs +++ b/src/browser/base/zen-components/actors/ZenThemeMarketplaceParent.sys.mjs @@ -45,7 +45,7 @@ export class ZenThemeMarketplaceParent extends JSWindowActorParent { window.gZenThemePicker.riceManager.openRicePage(data); } - compareversion(version1, version2) { + compareVersions(version1, version2) { var result = false; if (typeof version1 !== 'object') { version1 = version1.toString().split('.'); @@ -73,22 +73,31 @@ export class ZenThemeMarketplaceParent extends JSWindowActorParent { async checkForThemeUpdates() { console.info('ZenThemeMarketplaceParent: Checking for theme updates'); + let updates = []; this._themes = null; + for (const theme of Object.values(await this.getThemes())) { const themeInfo = await this.sendQuery('ZenThemeMarketplace:GetThemeInfo', { themeId: theme.id }); + if (!themeInfo) { continue; } - if (!this.compareversion(themeInfo.version, theme.version || '0.0.0') && themeInfo.version != theme.version) { + + if (!this.compareVersions(themeInfo.version, theme.version || '0.0.0') && themeInfo.version != theme.version) { console.info('ZenThemeMarketplaceParent: Theme update found', theme.id, theme.version, themeInfo.version); + themeInfo.enabled = theme.enabled; updates.push(themeInfo); + await this.removeTheme(theme.id, false); + this._themes[themeInfo.id] = themeInfo; } } + await this.updateThemes(this._themes); + this.sendAsyncMessage('ZenThemeMarketplace:CheckForUpdatesFinished', { updates }); } @@ -166,27 +175,30 @@ export class ZenThemeMarketplaceParent extends JSWindowActorParent { async checkForThemeChanges() { const themes = await this.getThemes(); + const themeIds = Object.keys(themes); - let changed = false; + for (const themeId of themeIds) { const theme = themes[themeId]; + if (!theme) { continue; } + const themePath = PathUtils.join(this.themesRootPath, themeId); + if (!(await IOUtils.exists(themePath))) { await this.installTheme(theme); - changed = true; } } - if (changed) { - this.triggerThemeUpdate(); - } + + this.triggerThemeUpdate(); } async removeTheme(themeId, triggerUpdate = true) { const themePath = PathUtils.join(this.themesRootPath, themeId); await IOUtils.remove(themePath, { recursive: true, ignoreAbsent: true }); + if (triggerUpdate) { this.triggerThemeUpdate(); } diff --git a/src/browser/components/preferences/zen-settings.js b/src/browser/components/preferences/zen-settings.js index b4d3f4ce8..c8456ac79 100644 --- a/src/browser/components/preferences/zen-settings.js +++ b/src/browser/components/preferences/zen-settings.js @@ -292,7 +292,7 @@ var gZenMarketplaceManager = { preferencesWrapper.setAttribute('flex', '1'); for (const entry of preferences) { - const { property, label, type, placeholder } = entry; + const { property, label, type, placeholder, defaultValue } = entry; switch (type) { case 'dropdown': { @@ -309,7 +309,7 @@ var gZenMarketplaceManager = { menulist.setAttribute('sizetopopup', 'none'); menulist.setAttribute('id', property + '-popup-menulist'); - const savedValue = Services.prefs.getStringPref(property, 'none'); + const savedValue = Services.prefs.getStringPref(property, defaultValue ?? 'none'); menulist.setAttribute('value', savedValue); menulist.setAttribute('tooltiptext', property); @@ -395,7 +395,7 @@ var gZenMarketplaceManager = { checkboxElement.setAttribute('zen-pref', property); // Checkbox only works with "true" and "false" values, it's not like HTML checkboxes. - if (Services.prefs.getBoolPref(property, false)) { + if (Services.prefs.getBoolPref(property, defaultValue ?? false)) { checkboxElement.setAttribute('checked', 'true'); } @@ -423,7 +423,7 @@ var gZenMarketplaceManager = { container.setAttribute('align', 'center'); container.setAttribute('role', 'group'); - const savedValue = Services.prefs.getStringPref(property, ''); + const savedValue = Services.prefs.getStringPref(property, defaultValue ?? ''); const sanitizedProperty = property?.replaceAll(/\./g, '-'); const input = document.createElement('input'); @@ -439,8 +439,8 @@ var gZenMarketplaceManager = { } input.addEventListener( - 'change', - ZenThemesCommon.throttle((event) => { + 'keydown', + ZenThemesCommon.debounce((event) => { const value = event.target.value; Services.prefs.setStringPref(property, value); @@ -1083,38 +1083,38 @@ Preferences.addAll([ default: false, }, { - id: "zen.glance.activation-method", - type: "string", - default: "ctrl", + id: 'zen.glance.activation-method', + type: 'string', + default: 'ctrl', }, { - id: "zen.glance.enabled", - type: "bool", + id: 'zen.glance.enabled', + type: 'bool', default: true, }, { - id: "zen.theme.color-prefs.use-workspace-colors", - type: "bool", + id: 'zen.theme.color-prefs.use-workspace-colors', + type: 'bool', default: false, }, { - id: "zen.view.compact.color-toolbar", - type: "bool", + id: 'zen.view.compact.color-toolbar', + type: 'bool', default: true, }, { - id: "zen.urlbar.behavior", - type: "string", - default: "float", + id: 'zen.urlbar.behavior', + type: 'string', + default: 'float', }, { - id: "zen.view.compact.color-sidebar", - type: "bool", + id: 'zen.view.compact.color-sidebar', + type: 'bool', default: true, }, { - id: "zen.essentials.enabled", - type: "bool", + id: 'zen.essentials.enabled', + type: 'bool', default: true, }, { @@ -1123,18 +1123,18 @@ Preferences.addAll([ default: false, }, { - id: "zen.tabs.show-newtab-vertical", - type: "bool", + id: 'zen.tabs.show-newtab-vertical', + type: 'bool', default: true, }, { - id: "zen.view.show-newtab-button-border-top", - type: "bool", + id: 'zen.view.show-newtab-button-border-top', + type: 'bool', default: false, }, { - id: "zen.view.show-newtab-button-top", - type: "bool", + id: 'zen.view.show-newtab-button-top', + type: 'bool', default: true, }, ]); From 4c1fa34f2c51f215409bba961f18ada596c15756 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bryan=20Gald=C3=A1mez?= Date: Fri, 3 Jan 2025 21:35:06 -0600 Subject: [PATCH 4/5] =?UTF-8?q?=F0=9F=9A=A8=20Fix=20linter=20issues?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- surfer.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/surfer.json b/surfer.json index 313516130..88b2f31dd 100644 --- a/surfer.json +++ b/surfer.json @@ -51,4 +51,4 @@ "licenseType": "MPL-2.0" }, "updateHostname": "updates.zen-browser.app" -} \ No newline at end of file +} From 374eb82d40eb796890d4979c27ace362c3cfcf5b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bryan=20Gald=C3=A1mez?= Date: Sat, 4 Jan 2025 09:13:45 -0600 Subject: [PATCH 5/5] =?UTF-8?q?=E2=9C=A8=20Replace=20keydown=20event=20wit?= =?UTF-8?q?h=20input?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/browser/components/preferences/zen-settings.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/browser/components/preferences/zen-settings.js b/src/browser/components/preferences/zen-settings.js index c8456ac79..45f2493ff 100644 --- a/src/browser/components/preferences/zen-settings.js +++ b/src/browser/components/preferences/zen-settings.js @@ -439,7 +439,7 @@ var gZenMarketplaceManager = { } input.addEventListener( - 'keydown', + 'input', ZenThemesCommon.debounce((event) => { const value = event.target.value;