From 3fa47b0b3aefb37840cec548ecf6cef7252e918b Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 1 Aug 2022 18:17:13 +0300 Subject: [PATCH 1/3] Chore(deps): Bump terser from 5.13.1 to 5.14.2 (#1953) --- package-lock.json | 67 ++++++++++++++++++----------------------------- 1 file changed, 25 insertions(+), 42 deletions(-) diff --git a/package-lock.json b/package-lock.json index 093341fa3..429258008 100644 --- a/package-lock.json +++ b/package-lock.json @@ -3623,6 +3623,27 @@ "resolved": "https://registry.npmjs.org/@jridgewell/set-array/-/set-array-1.1.1.tgz", "integrity": "sha512-Ct5MqZkLGEXTVmQYbGtx9SVqD2fqwvdubdps5D3djjAkgkKwT918VNOz65pEHFaYTeWcukmJmH5SwsA9Tn2ObQ==" }, + "@jridgewell/source-map": { + "version": "0.3.2", + "resolved": "https://registry.npmjs.org/@jridgewell/source-map/-/source-map-0.3.2.tgz", + "integrity": "sha512-m7O9o2uR8k2ObDysZYzdfhb08VuEml5oWGiosa1VdaPZ/A6QyPkAJuwN0Q1lhULOf6B7MtQmHENS743hWtCrgw==", + "requires": { + "@jridgewell/gen-mapping": "^0.3.0", + "@jridgewell/trace-mapping": "^0.3.9" + }, + "dependencies": { + "@jridgewell/gen-mapping": { + "version": "0.3.2", + "resolved": "https://registry.npmjs.org/@jridgewell/gen-mapping/-/gen-mapping-0.3.2.tgz", + "integrity": "sha512-mh65xKQAzI6iBcFzwv28KVWSmCkdRBWoOh+bYQGW3+6OZvbbN3TqMGo5hqYxQniRcH9F2VZIoJCm4pa3BPDK/A==", + "requires": { + "@jridgewell/set-array": "^1.0.1", + "@jridgewell/sourcemap-codec": "^1.4.10", + "@jridgewell/trace-mapping": "^0.3.9" + } + } + } + }, "@jridgewell/sourcemap-codec": { "version": "1.4.13", "resolved": "https://registry.npmjs.org/@jridgewell/sourcemap-codec/-/sourcemap-codec-1.4.13.tgz", @@ -15868,52 +15889,14 @@ } }, "terser": { - "version": "5.13.1", - "resolved": "https://registry.npmjs.org/terser/-/terser-5.13.1.tgz", - "integrity": "sha512-hn4WKOfwnwbYfe48NgrQjqNOH9jzLqRcIfbYytOXCOv46LBfWr9bDS17MQqOi+BWGD0sJK3Sj5NC/gJjiojaoA==", + "version": "5.14.2", + "resolved": "https://registry.npmjs.org/terser/-/terser-5.14.2.tgz", + "integrity": "sha512-oL0rGeM/WFQCUd0y2QrWxYnq7tfSuKBiqTjRPWrRgB46WD/kiwHwF8T23z78H6Q6kGCuuHcPB+KULHRdxvVGQA==", "requires": { + "@jridgewell/source-map": "^0.3.2", "acorn": "^8.5.0", "commander": "^2.20.0", - "source-map": "~0.8.0-beta.0", "source-map-support": "~0.5.20" - }, - "dependencies": { - "acorn": { - "version": "8.7.1", - "resolved": "https://registry.npmjs.org/acorn/-/acorn-8.7.1.tgz", - "integrity": "sha512-Xx54uLJQZ19lKygFXOWsscKUbsBZW0CPykPhVQdhIeIwrbPmJzqeASDInc8nKBnp/JT6igTs82qPXz069H8I/A==" - }, - "source-map": { - "version": "0.8.0-beta.0", - "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.8.0-beta.0.tgz", - "integrity": "sha512-2ymg6oRBpebeZi9UUNsgQ89bhx01TcTkmNTGnNO88imTmbSgy4nfujrgVEFKWpMTEGA11EDkTt7mqObTPdigIA==", - "requires": { - "whatwg-url": "^7.0.0" - } - }, - "tr46": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/tr46/-/tr46-1.0.1.tgz", - "integrity": "sha1-qLE/1r/SSJUZZ0zN5VujaTtwbQk=", - "requires": { - "punycode": "^2.1.0" - } - }, - "webidl-conversions": { - "version": "4.0.2", - "resolved": "https://registry.npmjs.org/webidl-conversions/-/webidl-conversions-4.0.2.tgz", - "integrity": "sha512-YQ+BmxuTgd6UXZW3+ICGfyqRyHXVlD5GtQr5+qjiNW7bF0cqrzX500HVXPBOvgXb5YnzDd+h0zqyv61KUD7+Sg==" - }, - "whatwg-url": { - "version": "7.1.0", - "resolved": "https://registry.npmjs.org/whatwg-url/-/whatwg-url-7.1.0.tgz", - "integrity": "sha512-WUu7Rg1DroM7oQvGWfOiAK21n74Gg+T4elXEQYkOhtyLeWiJFoOGLXPKI/9gzIie9CtwVLm8wtw6YJdKyxSjeg==", - "requires": { - "lodash.sortby": "^4.7.0", - "tr46": "^1.0.1", - "webidl-conversions": "^4.0.2" - } - } } }, "terser-webpack-plugin": { From 4c7b5545d0deb1c5252ec07b4a2c1a1216a681ab Mon Sep 17 00:00:00 2001 From: Charles Wahome Date: Mon, 1 Aug 2022 18:37:46 +0300 Subject: [PATCH 2/3] Fix: Use resources as a source of truth (#1956) * blocks calls to the API for path segments * only make calls when querying parameters Co-authored-by: Elinor --- src/modules/suggestions/suggestions.ts | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/src/modules/suggestions/suggestions.ts b/src/modules/suggestions/suggestions.ts index b614fd36f..2ef3f97a9 100644 --- a/src/modules/suggestions/suggestions.ts +++ b/src/modules/suggestions/suggestions.ts @@ -26,7 +26,15 @@ class Suggestions implements ISuggestions { return localOptions; } - return this.fetchSuggestionsFromNetwork(url, api, version); + /* + * blocks calls to the API for path segments + * uses resource explorer and cache as source of truth + */ + if (context === 'parameters') { + return this.fetchSuggestionsFromNetwork(url, api, version); + } + + return null; } private async getSuggestionsFromResources(url: string, version: string, From b06569a9f31f01d7f0a5aedf0b3616450810dbc2 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Wed, 3 Aug 2022 15:25:07 +0300 Subject: [PATCH 3/3] Chore: Update to 6.2.0 (#1959) * Task: Add PHP docs link telemetry (#1961) * Revert "Feature: Add PHP Snippets tab. (#1923)" (#1985) * Disable sanitization of query url when sharing query (#1993) * Bump version to 6.2.0 --- config/webpack.config.js | 2 +- package-lock.json | 35 +++++++++++++------ package.json | 2 +- .../actions/snippet-action-creator.ts | 2 +- src/app/views/main-header/MainHeader.tsx | 1 - .../query-response/snippets/Snippets.tsx | 4 --- .../query-input/share-query/ShareQuery.tsx | 5 ++- src/telemetry/component-names.ts | 3 ++ 8 files changed, 33 insertions(+), 21 deletions(-) diff --git a/config/webpack.config.js b/config/webpack.config.js index 4e6565947..3263c9947 100644 --- a/config/webpack.config.js +++ b/config/webpack.config.js @@ -417,7 +417,7 @@ module.exports = function (webpackEnv) { maxChunks: 1 }), new MonacoWebpackPlugin({ - languages: ['json', 'javascript', 'java', 'csharp', 'html', 'powershell', 'go', 'php'] + languages: ['json', 'javascript', 'java', 'csharp', 'html', 'powershell', 'go'] }), // Generates an `index.html` file with the