From c1c993c5f68d576778ce24c2c07a17bc6c1fc559 Mon Sep 17 00:00:00 2001 From: Paul D'Ambra Date: Tue, 19 Nov 2024 10:43:55 +0100 Subject: [PATCH 1/4] chore: very small change to IE11 bundling (#1536) --- rollup.config.js | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/rollup.config.js b/rollup.config.js index 648cdd8bb..ef400a705 100644 --- a/rollup.config.js +++ b/rollup.config.js @@ -22,9 +22,7 @@ const plugins = (es5) => [ [ '@babel/preset-env', { - targets: es5 - ? '>0.5%, last 2 versions, Firefox ESR, not dead, IE 11' - : '>0.5%, last 2 versions, Firefox ESR, not dead', + targets: es5 ? 'defaults, IE 11' : '>0.5%, last 2 versions, Firefox ESR, not dead', }, ], ], From 1ebfcb4e025b810885a528cb15c5f9e9a7e3db53 Mon Sep 17 00:00:00 2001 From: Paul D'Ambra Date: Tue, 19 Nov 2024 11:42:32 +0100 Subject: [PATCH 2/4] chore: always transform exponentiation (#1537) --- package.json | 1 + pnpm-lock.yaml | 162 ++++++++++++++++++++++++++++++++++++++--------- rollup.config.js | 6 +- 3 files changed, 138 insertions(+), 31 deletions(-) diff --git a/package.json b/package.json index 3270ddaa9..ec918802e 100644 --- a/package.json +++ b/package.json @@ -46,6 +46,7 @@ "devDependencies": { "@babel/core": "7.18.9", "@babel/plugin-syntax-decorators": "^7.23.3", + "@babel/plugin-transform-exponentiation-operator": "^7.25.9", "@babel/plugin-transform-nullish-coalescing-operator": "^7.25.8", "@babel/plugin-transform-react-jsx": "^7.23.4", "@babel/preset-env": "7.18.9", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 17fa5ff30..49b652b67 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -33,6 +33,9 @@ devDependencies: '@babel/plugin-syntax-decorators': specifier: ^7.23.3 version: 7.23.3(@babel/core@7.18.9) + '@babel/plugin-transform-exponentiation-operator': + specifier: ^7.25.9 + version: 7.25.9(@babel/core@7.18.9) '@babel/plugin-transform-nullish-coalescing-operator': specifier: ^7.25.8 version: 7.25.8(@babel/core@7.18.9) @@ -274,6 +277,15 @@ packages: dev: true optional: true + /@babel/code-frame@7.26.2: + resolution: {integrity: sha512-RJlIHRueQgwWitWgF8OdFYGZX328Ax5BCemNGlqHfplnRT9ESi8JkFlvaVYbS+UubVY6dpv87Fs2u5M29iNFVQ==} + engines: {node: '>=6.9.0'} + dependencies: + '@babel/helper-validator-identifier': 7.25.9 + js-tokens: 4.0.0 + picocolors: 1.1.0 + dev: true + /@babel/compat-data@7.18.8: resolution: {integrity: sha512-HSmX4WZPPK3FUxYp7g2T6EyO8j96HlZJlxmKPSh6KAcqwyDrfx7hKjXpAW/0FhFfTJsR0Yt4lAjLI2coMptIHQ==} engines: {node: '>=6.9.0'} @@ -312,6 +324,17 @@ packages: jsesc: 2.5.2 dev: true + /@babel/generator@7.26.2: + resolution: {integrity: sha512-zevQbhbau95nkoxSq3f/DC/SC+EEOUZd3DYqfSkMhY2/wfSeaHV1Ew4vk8e+x8lja31IbyuUa2uQ3JONqKbysw==} + engines: {node: '>=6.9.0'} + dependencies: + '@babel/parser': 7.26.2 + '@babel/types': 7.26.0 + '@jridgewell/gen-mapping': 0.3.5 + '@jridgewell/trace-mapping': 0.3.25 + jsesc: 3.0.2 + dev: true + /@babel/helper-annotate-as-pure@7.22.5: resolution: {integrity: sha512-LvBTxu8bQSQkcyKOU+a1btnNFQ1dMAd0R6PyW3arXes06F6QLWLIrd681bxRPIXlrMGR3XYnW9JyML7dP3qgxg==} engines: {node: '>=6.9.0'} @@ -319,12 +342,14 @@ packages: '@babel/types': 7.23.6 dev: true - /@babel/helper-builder-binary-assignment-operator-visitor@7.18.9: - resolution: {integrity: sha512-yFQ0YCHoIqarl8BCRwBL8ulYUaZpz3bNsA7oFepAzee+8/+ImtADXNOmO5vJvsPff3qi+hvpkY/NYBTrBQgdNw==} + /@babel/helper-builder-binary-assignment-operator-visitor@7.25.9: + resolution: {integrity: sha512-C47lC7LIDCnz0h4vai/tpNOI95tCd5ZT3iBt/DBH5lXKHZsyNQv18yf1wIIg2ntiQNgmAvA+DgZ82iW8Qdym8g==} engines: {node: '>=6.9.0'} dependencies: - '@babel/helper-explode-assignable-expression': 7.18.6 - '@babel/types': 7.23.6 + '@babel/traverse': 7.25.9 + '@babel/types': 7.26.0 + transitivePeerDependencies: + - supports-color dev: true /@babel/helper-compilation-targets@7.18.9(@babel/core@7.18.9): @@ -377,7 +402,7 @@ packages: '@babel/core': 7.18.9 '@babel/helper-compilation-targets': 7.18.9(@babel/core@7.18.9) '@babel/helper-module-imports': 7.22.15 - '@babel/helper-plugin-utils': 7.22.5 + '@babel/helper-plugin-utils': 7.25.7 '@babel/traverse': 7.23.2 debug: 4.3.4(supports-color@8.1.1) lodash.debounce: 4.0.8 @@ -395,7 +420,7 @@ packages: '@babel/core': 7.18.9 '@babel/helper-compilation-targets': 7.18.9(@babel/core@7.18.9) '@babel/helper-module-imports': 7.22.15 - '@babel/helper-plugin-utils': 7.22.5 + '@babel/helper-plugin-utils': 7.25.7 '@babel/traverse': 7.23.2 debug: 4.3.4(supports-color@8.1.1) lodash.debounce: 4.0.8 @@ -410,13 +435,6 @@ packages: engines: {node: '>=6.9.0'} dev: true - /@babel/helper-explode-assignable-expression@7.18.6: - resolution: {integrity: sha512-eyAYAsQmB80jNfg4baAtLeWAQHfHFiR483rzFK+BhETlGZaQC9bsfrugfXDCbRHLQbIA7U5NxhhOxN7p/dWIcg==} - engines: {node: '>=6.9.0'} - dependencies: - '@babel/types': 7.23.6 - dev: true - /@babel/helper-function-name@7.23.0: resolution: {integrity: sha512-OErEqsrxjZTJciZ4Oo+eoZqeW9UIiOcuYKRJA4ZAgV9myA+pOXhhmpfNCKjEH/auVfEYVFJ6y1Tc4r0eIApqiw==} engines: {node: '>=6.9.0'} @@ -479,6 +497,11 @@ packages: engines: {node: '>=6.9.0'} dev: true + /@babel/helper-plugin-utils@7.25.9: + resolution: {integrity: sha512-kSMlyUVdWe25rEsRGviIgOWnoT/nfABVWlqt9N19/dIPWViAOW2s9wznP5tURbs/IDuNk4gPy3YdYRgH3uxhBw==} + engines: {node: '>=6.9.0'} + dev: true + /@babel/helper-remap-async-to-generator@7.18.9(@babel/core@7.18.9): resolution: {integrity: sha512-dI7q50YKd8BAv3VEfgg7PS7yD3Rtbi2J1XMXaalXO0W0164hYLnh8zpjRS0mte9MfVp/tltvr/cfdXPvJr1opA==} engines: {node: '>=6.9.0'} @@ -533,6 +556,11 @@ packages: engines: {node: '>=6.9.0'} dev: true + /@babel/helper-string-parser@7.25.9: + resolution: {integrity: sha512-4A/SCr/2KLd5jrtOMFzaKjVtAei3+2r/NChoBNoZ3EyP/+GlhoaEGoWOZUmFmoITP7zOJyHIMm+DYRd8o3PvHA==} + engines: {node: '>=6.9.0'} + dev: true + /@babel/helper-validator-identifier@7.22.20: resolution: {integrity: sha512-Y4OZ+ytlatR8AI+8KZfKuL5urKp7qey08ha31L8b3BwewJAoJamTzyvxPR/5D+KkdJCGPq/+8TukHBlY10FX9A==} engines: {node: '>=6.9.0'} @@ -545,6 +573,11 @@ packages: dev: true optional: true + /@babel/helper-validator-identifier@7.25.9: + resolution: {integrity: sha512-Ed61U6XJc3CVRfkERJWDz4dJwKe7iLmmJsbOGu9wSloNSFttHV0I8g6UAgb7qnK5ly5bGLPd4oXZlxCdANBOWQ==} + engines: {node: '>=6.9.0'} + dev: true + /@babel/helper-validator-option@7.18.6: resolution: {integrity: sha512-XO7gESt5ouv/LRJdrVjkShckw6STTaB7l9BrpBaAHDeF5YZT+01PCwmR0SJHnkW6i8OwW/EVWRShfi4j2x+KQw==} engines: {node: '>=6.9.0'} @@ -612,6 +645,14 @@ packages: '@babel/types': 7.23.6 dev: true + /@babel/parser@7.26.2: + resolution: {integrity: sha512-DWMCZH9WA4Maitz2q21SRKHo9QXZxkDsbNZoVD62gusNtNBBqDg9i7uOhASfTfIGNzW+O+r7+jAlM8dwphcJKQ==} + engines: {node: '>=6.0.0'} + hasBin: true + dependencies: + '@babel/types': 7.26.0 + dev: true + /@babel/plugin-bugfix-safari-id-destructuring-collision-in-function-expression@7.18.6(@babel/core@7.18.9): resolution: {integrity: sha512-Dgxsyg54Fx1d4Nge8UnvTrED63vrwOdPmyvPzlNN/boaliRP54pm3pGzZD1SJUwrBA+Cs/xdG8kXX6Mn/RfISQ==} engines: {node: '>=6.9.0'} @@ -686,7 +727,7 @@ packages: dependencies: '@babel/core': 7.18.9 '@babel/helper-create-class-features-plugin': 7.18.6(@babel/core@7.18.9) - '@babel/helper-plugin-utils': 7.22.5 + '@babel/helper-plugin-utils': 7.25.7 '@babel/plugin-syntax-decorators': 7.23.3(@babel/core@7.18.9) transitivePeerDependencies: - supports-color @@ -861,7 +902,7 @@ packages: '@babel/core': ^7.0.0-0 dependencies: '@babel/core': 7.18.9 - '@babel/helper-plugin-utils': 7.22.5 + '@babel/helper-plugin-utils': 7.25.7 dev: true /@babel/plugin-syntax-class-properties@7.12.13(@babel/core@7.18.9): @@ -917,7 +958,7 @@ packages: '@babel/core': ^7.0.0-0 dependencies: '@babel/core': 7.18.9 - '@babel/helper-plugin-utils': 7.22.5 + '@babel/helper-plugin-utils': 7.25.7 dev: true /@babel/plugin-syntax-import-assertions@7.18.6(@babel/core@7.18.9): @@ -936,7 +977,7 @@ packages: '@babel/core': ^7.0.0-0 dependencies: '@babel/core': 7.18.9 - '@babel/helper-plugin-utils': 7.22.5 + '@babel/helper-plugin-utils': 7.25.7 dev: true /@babel/plugin-syntax-json-strings@7.8.3(@babel/core@7.18.9): @@ -1039,7 +1080,7 @@ packages: '@babel/core': ^7.0.0-0 dependencies: '@babel/core': 7.18.9 - '@babel/helper-plugin-utils': 7.22.5 + '@babel/helper-plugin-utils': 7.25.7 dev: true /@babel/plugin-transform-arrow-functions@7.18.6(@babel/core@7.18.9): @@ -1146,15 +1187,17 @@ packages: '@babel/helper-plugin-utils': 7.22.5 dev: true - /@babel/plugin-transform-exponentiation-operator@7.18.6(@babel/core@7.18.9): - resolution: {integrity: sha512-wzEtc0+2c88FVR34aQmiz56dxEkxr2g8DQb/KfaFa1JYXOFVsbhvAonFN6PwVWj++fKmku8NP80plJ5Et4wqHw==} + /@babel/plugin-transform-exponentiation-operator@7.25.9(@babel/core@7.18.9): + resolution: {integrity: sha512-KRhdhlVk2nObA5AYa7QMgTMTVJdfHprfpAk4DjZVtllqRg9qarilstTKEhpVjyt+Npi8ThRyiV8176Am3CodPA==} engines: {node: '>=6.9.0'} peerDependencies: '@babel/core': ^7.0.0-0 dependencies: '@babel/core': 7.18.9 - '@babel/helper-builder-binary-assignment-operator-visitor': 7.18.9 - '@babel/helper-plugin-utils': 7.22.5 + '@babel/helper-builder-binary-assignment-operator-visitor': 7.25.9 + '@babel/helper-plugin-utils': 7.25.9 + transitivePeerDependencies: + - supports-color dev: true /@babel/plugin-transform-flow-strip-types@7.13.0(@babel/core@7.18.9): @@ -1163,7 +1206,7 @@ packages: '@babel/core': ^7.0.0-0 dependencies: '@babel/core': 7.18.9 - '@babel/helper-plugin-utils': 7.22.5 + '@babel/helper-plugin-utils': 7.25.7 '@babel/plugin-syntax-flow': 7.12.13(@babel/core@7.18.9) dev: true @@ -1337,7 +1380,7 @@ packages: '@babel/core': ^7.0.0-0 dependencies: '@babel/core': 7.18.9 - '@babel/helper-plugin-utils': 7.22.5 + '@babel/helper-plugin-utils': 7.25.7 dev: true /@babel/plugin-transform-react-jsx-development@7.12.17(@babel/core@7.18.9): @@ -1370,7 +1413,7 @@ packages: dependencies: '@babel/core': 7.18.9 '@babel/helper-annotate-as-pure': 7.22.5 - '@babel/helper-plugin-utils': 7.22.5 + '@babel/helper-plugin-utils': 7.25.7 dev: true /@babel/plugin-transform-regenerator@7.18.6(@babel/core@7.18.9): @@ -1401,7 +1444,7 @@ packages: dependencies: '@babel/core': 7.18.9 '@babel/helper-module-imports': 7.22.15 - '@babel/helper-plugin-utils': 7.22.5 + '@babel/helper-plugin-utils': 7.25.7 babel-plugin-polyfill-corejs2: 0.1.10(@babel/core@7.18.9) babel-plugin-polyfill-corejs3: 0.1.7(@babel/core@7.18.9) babel-plugin-polyfill-regenerator: 0.1.6(@babel/core@7.18.9) @@ -1548,7 +1591,7 @@ packages: '@babel/plugin-transform-destructuring': 7.18.9(@babel/core@7.18.9) '@babel/plugin-transform-dotall-regex': 7.18.6(@babel/core@7.18.9) '@babel/plugin-transform-duplicate-keys': 7.18.9(@babel/core@7.18.9) - '@babel/plugin-transform-exponentiation-operator': 7.18.6(@babel/core@7.18.9) + '@babel/plugin-transform-exponentiation-operator': 7.25.9(@babel/core@7.18.9) '@babel/plugin-transform-for-of': 7.18.8(@babel/core@7.18.9) '@babel/plugin-transform-function-name': 7.18.9(@babel/core@7.18.9) '@babel/plugin-transform-literals': 7.18.9(@babel/core@7.18.9) @@ -1588,7 +1631,7 @@ packages: '@babel/core': ^7.0.0-0 dependencies: '@babel/core': 7.18.9 - '@babel/helper-plugin-utils': 7.22.5 + '@babel/helper-plugin-utils': 7.25.7 '@babel/plugin-transform-flow-strip-types': 7.13.0(@babel/core@7.18.9) dev: true @@ -1611,7 +1654,7 @@ packages: '@babel/core': ^7.0.0-0 dependencies: '@babel/core': 7.18.9 - '@babel/helper-plugin-utils': 7.22.5 + '@babel/helper-plugin-utils': 7.25.7 '@babel/plugin-transform-react-display-name': 7.12.13(@babel/core@7.18.9) '@babel/plugin-transform-react-jsx': 7.23.4(@babel/core@7.18.9) '@babel/plugin-transform-react-jsx-development': 7.12.17(@babel/core@7.18.9) @@ -1647,6 +1690,15 @@ packages: '@babel/types': 7.23.6 dev: true + /@babel/template@7.25.9: + resolution: {integrity: sha512-9DGttpmPvIxBb/2uwpVo3dqJ+O6RooAFOS+lB+xDqoE2PVCE8nfoHMdZLpfCQRLwvohzXISPZcgxt80xLfsuwg==} + engines: {node: '>=6.9.0'} + dependencies: + '@babel/code-frame': 7.26.2 + '@babel/parser': 7.26.2 + '@babel/types': 7.26.0 + dev: true + /@babel/traverse@7.23.2: resolution: {integrity: sha512-azpe59SQ48qG6nu2CzcMLbxUudtN+dOM9kDbUqGq3HXUJRlo7i8fvPoxQUzYgLZ4cMVmuZgm8vvBpNeRhd6XSw==} engines: {node: '>=6.9.0'} @@ -1665,6 +1717,21 @@ packages: - supports-color dev: true + /@babel/traverse@7.25.9: + resolution: {integrity: sha512-ZCuvfwOwlz/bawvAuvcj8rrithP2/N55Tzz342AkTvq4qaWbGfmCk/tKhNaV2cthijKrPAA8SRJV5WWe7IBMJw==} + engines: {node: '>=6.9.0'} + dependencies: + '@babel/code-frame': 7.26.2 + '@babel/generator': 7.26.2 + '@babel/parser': 7.26.2 + '@babel/template': 7.25.9 + '@babel/types': 7.26.0 + debug: 4.3.4(supports-color@8.1.1) + globals: 11.12.0 + transitivePeerDependencies: + - supports-color + dev: true + /@babel/types@7.23.6: resolution: {integrity: sha512-+uarb83brBzPKN38NX1MkB6vb6+mwvR6amUulqAE7ccQw1pEl+bCia9TbdG1lsnFP7lZySvUn37CHyXQdfTwzg==} engines: {node: '>=6.9.0'} @@ -1674,6 +1741,14 @@ packages: to-fast-properties: 2.0.0 dev: true + /@babel/types@7.26.0: + resolution: {integrity: sha512-Z/yiTPj+lDVnF7lWeKCIJzaIkI0vYO87dMpZ4bg4TDrFe4XXLFWL1TbXU27gBP3QccxV9mZICCrnjnYlJjXHOA==} + engines: {node: '>=6.9.0'} + dependencies: + '@babel/helper-string-parser': 7.25.9 + '@babel/helper-validator-identifier': 7.25.9 + dev: true + /@bcoe/v8-coverage@0.2.3: resolution: {integrity: sha512-0hYQ8SB4Db5zvZB4axdMHGwEaQjkZzFjQiN9LVYvIFB2nSUHW9tYpxWriPrWDASIxiaXax83REcLxuSdnGPZtw==} dev: true @@ -2456,6 +2531,15 @@ packages: '@jridgewell/trace-mapping': 0.3.20 dev: true + /@jridgewell/gen-mapping@0.3.5: + resolution: {integrity: sha512-IzL8ZoEDIBRWEzlCcRhOaCupYyN5gdIK+Q6fbFdPDg6HqX6jpkItn7DFIpW9LQzXG6Df9sA7+OKnq0qlz/GaQg==} + engines: {node: '>=6.0.0'} + dependencies: + '@jridgewell/set-array': 1.2.1 + '@jridgewell/sourcemap-codec': 1.5.0 + '@jridgewell/trace-mapping': 0.3.25 + dev: true + /@jridgewell/resolve-uri@3.1.1: resolution: {integrity: sha512-dSYZh7HhCDtCKm4QakX0xFpsRDqjjtZf/kjI/v3T3Nwt5r8/qz/M19F9ySyOqU94SXBmeG9ttTul+YnR4LOxFA==} engines: {node: '>=6.0.0'} @@ -2466,6 +2550,11 @@ packages: engines: {node: '>=6.0.0'} dev: true + /@jridgewell/set-array@1.2.1: + resolution: {integrity: sha512-R8gLRTZeyp03ymzP/6Lil/28tGeGEzhx1q2k703KGWRAI1VdvPIXdG70VJc2pAMw3NA6JKL5hhFu1sJX0Mnn/A==} + engines: {node: '>=6.0.0'} + dev: true + /@jridgewell/source-map@0.3.5: resolution: {integrity: sha512-UTYAUj/wviwdsMfzoSJspJxbkH5o1snzwX0//0ENX1u/55kkZZkcTZP6u9bwKGkv+dkk9at4m1Cpt0uY80kcpQ==} dependencies: @@ -2488,6 +2577,13 @@ packages: '@jridgewell/sourcemap-codec': 1.4.15 dev: true + /@jridgewell/trace-mapping@0.3.25: + resolution: {integrity: sha512-vNk6aEwybGtawWmy/PzwnGDOjCkLWSD2wqvjGGAgOAwCGWySYXfYoxt00IJkTF+8Lb57DwOb3Aa0o9CApepiYQ==} + dependencies: + '@jridgewell/resolve-uri': 3.1.1 + '@jridgewell/sourcemap-codec': 1.5.0 + dev: true + /@jridgewell/trace-mapping@0.3.9: resolution: {integrity: sha512-3Belt6tdc8bPgAtbcmdtNJlirVoTmEb5e2gC94PnkwEW9jI6CAHUeoG85tjWP5WquqfavoMtMwiG4P926ZKKuQ==} dependencies: @@ -7452,6 +7548,12 @@ packages: hasBin: true dev: true + /jsesc@3.0.2: + resolution: {integrity: sha512-xKqzzWXDttJuOcawBt4KnKHHIf5oQ/Cxax+0PWFG+DFDgHNAdi+TXECADI+RYiFUMmx8792xsMbbgXj4CwnP4g==} + engines: {node: '>=6'} + hasBin: true + dev: true + /json-parse-even-better-errors@2.3.1: resolution: {integrity: sha512-xyFwyhro/JEof6Ghe2iz2NcXoj2sloNsWr/XsERDK/oiPCfaNhl5ONfp+jQdAZRQQ0IJWNzH9zIZF7li91kh2w==} dev: true @@ -9951,7 +10053,7 @@ packages: '@babel/plugin-syntax-dynamic-import': 7.8.3(@babel/core@7.18.9) '@babel/plugin-syntax-import-meta': 7.10.4(@babel/core@7.18.9) '@babel/plugin-transform-async-to-generator': 7.18.6(@babel/core@7.18.9) - '@babel/plugin-transform-exponentiation-operator': 7.18.6(@babel/core@7.18.9) + '@babel/plugin-transform-exponentiation-operator': 7.25.9(@babel/core@7.18.9) '@babel/plugin-transform-for-of': 7.18.8(@babel/core@7.18.9) '@babel/plugin-transform-runtime': 7.13.9(@babel/core@7.18.9) '@babel/preset-env': 7.18.9(@babel/core@7.18.9) diff --git a/rollup.config.js b/rollup.config.js index ef400a705..01cdace3c 100644 --- a/rollup.config.js +++ b/rollup.config.js @@ -17,7 +17,11 @@ const plugins = (es5) => [ babel({ extensions: ['.js', '.jsx', '.ts', '.tsx'], babelHelpers: 'bundled', - plugins: ['@babel/plugin-transform-nullish-coalescing-operator'], + plugins: [ + '@babel/plugin-transform-nullish-coalescing-operator', + // Explicitly included so we transform 1 ** 2 to Math.pow(1, 2) for ES6 compatability + '@babel/plugin-transform-exponentiation-operator', + ], presets: [ [ '@babel/preset-env', From 27ae75a91acc320759fe7fba4d34c2a5a1b5bcc3 Mon Sep 17 00:00:00 2001 From: pauldambra Date: Tue, 19 Nov 2024 10:43:17 +0000 Subject: [PATCH 3/4] chore: Bump version to 1.186.4 --- CHANGELOG.md | 5 +++++ package.json | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 7df4c6e63..7216b4327 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,8 @@ +## 1.186.4 - 2024-11-19 + +- chore: always transform exponentiation (#1537) +- chore: very small change to IE11 bundling (#1536) + ## 1.186.3 - 2024-11-18 - fix: refactor native mutation observer implementation (#1535) diff --git a/package.json b/package.json index ec918802e..69fadd61f 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "posthog-js", - "version": "1.186.3", + "version": "1.186.4", "description": "Posthog-js allows you to automatically capture usage and send events to PostHog.", "repository": "https://github.com/PostHog/posthog-js", "author": "hey@posthog.com", From 17073a8fa8bfa6402b5593ac79858dc3c91ea73d Mon Sep 17 00:00:00 2001 From: Paul D'Ambra Date: Tue, 19 Nov 2024 12:32:04 +0100 Subject: [PATCH 4/4] chore: specify an explicit browserslist version (#1539) --- package.json | 1 + pnpm-lock.yaml | 75 ++++++-------------------------------------------- 2 files changed, 9 insertions(+), 67 deletions(-) diff --git a/package.json b/package.json index 69fadd61f..e25c963fb 100644 --- a/package.json +++ b/package.json @@ -75,6 +75,7 @@ "@typescript-eslint/eslint-plugin": "^8.2.0", "@typescript-eslint/parser": "^8.2.0", "babel-jest": "^26.6.3", + "browserslist": "^4.24.2", "compare-versions": "^6.1.0", "cypress": "13.6.3", "cypress-localstorage-commands": "^2.2.6", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 49b652b67..dd632721b 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -120,6 +120,9 @@ devDependencies: babel-jest: specifier: ^26.6.3 version: 26.6.3(@babel/core@7.18.9) + browserslist: + specifier: ^4.24.2 + version: 4.24.2 compare-versions: specifier: ^6.1.0 version: 6.1.0 @@ -267,19 +270,10 @@ packages: chalk: 2.4.2 dev: true - /@babel/code-frame@7.25.7: - resolution: {integrity: sha512-0xZJFNE5XMpENsgfHYTw8FbX4kv53mFLn2i3XPoq69LyhYSCBJtitaHx9QnsVTrsogI4Z3+HtEfZ2/GFPOtf5g==} - engines: {node: '>=6.9.0'} - requiresBuild: true - dependencies: - '@babel/highlight': 7.25.7 - picocolors: 1.1.0 - dev: true - optional: true - /@babel/code-frame@7.26.2: resolution: {integrity: sha512-RJlIHRueQgwWitWgF8OdFYGZX328Ax5BCemNGlqHfplnRT9ESi8JkFlvaVYbS+UubVY6dpv87Fs2u5M29iNFVQ==} engines: {node: '>=6.9.0'} + requiresBuild: true dependencies: '@babel/helper-validator-identifier': 7.25.9 js-tokens: 4.0.0 @@ -361,7 +355,7 @@ packages: '@babel/compat-data': 7.18.8 '@babel/core': 7.18.9 '@babel/helper-validator-option': 7.18.6 - browserslist: 4.21.7 + browserslist: 4.24.2 semver: 6.3.0 dev: true @@ -566,13 +560,6 @@ packages: engines: {node: '>=6.9.0'} dev: true - /@babel/helper-validator-identifier@7.25.7: - resolution: {integrity: sha512-AM6TzwYqGChO45oiuPqwL2t20/HdMC1rTPAesnBCgPCSF1x3oN9MVUwQV2iyz4xqWrctwK5RNC8LV22kaQCNYg==} - engines: {node: '>=6.9.0'} - requiresBuild: true - dev: true - optional: true - /@babel/helper-validator-identifier@7.25.9: resolution: {integrity: sha512-Ed61U6XJc3CVRfkERJWDz4dJwKe7iLmmJsbOGu9wSloNSFttHV0I8g6UAgb7qnK5ly5bGLPd4oXZlxCdANBOWQ==} engines: {node: '>=6.9.0'} @@ -625,18 +612,6 @@ packages: js-tokens: 4.0.0 dev: true - /@babel/highlight@7.25.7: - resolution: {integrity: sha512-iYyACpW3iW8Fw+ZybQK+drQre+ns/tKpXbNESfrhNnPLIklLbXr7MYJ6gPEd0iETGLOK+SxMjVvKb/ffmk+FEw==} - engines: {node: '>=6.9.0'} - requiresBuild: true - dependencies: - '@babel/helper-validator-identifier': 7.25.7 - chalk: 2.4.2 - js-tokens: 4.0.0 - picocolors: 1.1.0 - dev: true - optional: true - /@babel/parser@7.23.0: resolution: {integrity: sha512-vvPKKdMemU85V9WE/l5wZEmImpCtLqbnTvqDS2U1fJ96KrxoW7KrXhNsNCblQlg8Ck4b85yxdTyelsMUgFUXiw==} engines: {node: '>=6.0.0'} @@ -4071,17 +4046,6 @@ packages: resolution: {integrity: sha512-9o5UecI3GhkpM6DrXr69PblIuWxPKk9Y0jHBRhdocZ2y7YECBFCsHm79Pr3OyR2AvjhDkabFJaDJMYRazHgsow==} dev: true - /browserslist@4.21.7: - resolution: {integrity: sha512-BauCXrQ7I2ftSqd2mvKHGo85XR0u7Ru3C/Hxsy/0TkfCtjrmAbPdzLGasmoiBxplpDXlPvdjX9u7srIMfgasNA==} - engines: {node: ^6 || ^7 || ^8 || ^9 || ^10 || ^11 || ^12 || >=13.7} - hasBin: true - dependencies: - caniuse-lite: 1.0.30001580 - electron-to-chromium: 1.4.418 - node-releases: 2.0.12 - update-browserslist-db: 1.0.11(browserslist@4.21.7) - dev: true - /browserslist@4.24.2: resolution: {integrity: sha512-ZIc+Q62revdMcqC6aChtW4jz3My3klmCO1fEmINZY/8J3EpBg5/A/D0AKmBveUh6pgoeycoMkVMko84tuYS+Gg==} engines: {node: ^6 || ^7 || ^8 || ^9 || ^10 || ^11 || ^12 || >=13.7} @@ -4194,10 +4158,6 @@ packages: engines: {node: '>=10'} dev: true - /caniuse-lite@1.0.30001580: - resolution: {integrity: sha512-mtj5ur2FFPZcCEpXFy8ADXbDACuNFXg6mxVDqp7tqooX6l3zwm+d8EPoeOSIFRDvHs8qu7/SLFOGniULkcH2iA==} - dev: true - /caniuse-lite@1.0.30001680: resolution: {integrity: sha512-rPQy70G6AGUMnbwS1z6Xg+RkHYPAi18ihs47GH0jcxIG7wArmPgY3XbS2sRdBbxJljp3thdT8BIqv9ccCypiPA==} dev: true @@ -4505,7 +4465,7 @@ packages: /core-js-compat@3.23.5: resolution: {integrity: sha512-fHYozIFIxd+91IIbXJgWd/igXIc8Mf9is0fusswjnGIWVG96y2cwyUdlCkGOw6rMLHKAxg7xtCIVaHsyOUnJIg==} dependencies: - browserslist: 4.21.7 + browserslist: 4.24.2 semver: 7.0.0 dev: true @@ -4945,10 +4905,6 @@ packages: safe-buffer: 5.2.1 dev: true - /electron-to-chromium@1.4.418: - resolution: {integrity: sha512-1KnpDTS9onwAfMzW50LcpNtyOkMyjd/OLoD2Kx/DDITZqgNYixY71XNszPHNxyQQ/Brh+FDcUnf4BaM041sdWg==} - dev: true - /electron-to-chromium@1.5.62: resolution: {integrity: sha512-t8c+zLmJHa9dJy96yBZRXGQYoiCEnHYgFwn1asvSPZSUdVxnB62A4RASd7k41ytG3ErFBA0TpHlKg9D9SQBmLg==} dev: true @@ -8248,10 +8204,6 @@ packages: resolution: {integrity: sha512-O5lz91xSOeoXP6DulyHfllpq+Eg00MWitZIbtPfoSEvqIHdl5gfcY6hYzDWnj0qD5tz52PI08u9qUvSVeUBeHw==} dev: true - /node-releases@2.0.12: - resolution: {integrity: sha512-QzsYKWhXTWx8h1kIvqfnC++o0pEmpRQA/aenALsL2F4pqNVr7YzcdMlDij5WBnwftRbJCNJL/O7zdKaxKPHqgQ==} - dev: true - /node-releases@2.0.18: resolution: {integrity: sha512-d9VeXT4SJ7ZeOqGX6R5EM022wpL+eWPooLI+5UpWn2jCT1aosUQEhQP214x33Wkwx3JQMvIm+tIoVOdodFS40g==} dev: true @@ -8571,7 +8523,7 @@ packages: resolution: {integrity: sha512-ayCKvm/phCGxOkYRSCM82iDwct8/EonSEgCSxWxD7ve6jHggsFl4fZVQBPRNgQoKiuV/odhFrGzQXZwbifC8Rg==} engines: {node: '>=8'} dependencies: - '@babel/code-frame': 7.23.5 + '@babel/code-frame': 7.26.2 error-ex: 1.3.2 json-parse-even-better-errors: 2.3.1 lines-and-columns: 1.1.6 @@ -9259,7 +9211,7 @@ packages: rollup: 4.24.0 typescript: 5.5.4 optionalDependencies: - '@babel/code-frame': 7.25.7 + '@babel/code-frame': 7.26.2 dev: true /rollup-plugin-visualizer@5.12.0(rollup@4.24.0): @@ -10500,17 +10452,6 @@ packages: engines: {node: '>=8'} dev: true - /update-browserslist-db@1.0.11(browserslist@4.21.7): - resolution: {integrity: sha512-dCwEFf0/oT85M1fHBg4F0jtLwJrutGoHSQXCh7u4o2t1drG+c0a9Flnqww6XUKSfQMPpJBRjU8d4RXB09qtvaA==} - hasBin: true - peerDependencies: - browserslist: '>= 4.21.0' - dependencies: - browserslist: 4.21.7 - escalade: 3.1.1 - picocolors: 1.1.0 - dev: true - /update-browserslist-db@1.1.1(browserslist@4.24.2): resolution: {integrity: sha512-R8UzCaa9Az+38REPiJ1tXlImTJXlVfgHZsglwBD/k6nj76ctsH1E3q4doGrukiLQd3sGQYu56r5+lo5r94l29A==} hasBin: true