From 573011622b58b9c7f7e79bd51b510fa0519b5064 Mon Sep 17 00:00:00 2001 From: Kevin Wang Date: Thu, 13 Jan 2022 13:05:33 -0500 Subject: [PATCH 01/88] fix(algolia-index): Use TypeScript (#11496) * fix(algolia-index): npm install -g npm@latest * fix(algolia-index): `ts-node` * fix(algolia-index): ts errors --- .circleci/config.yml | 3 +- website/package-lock.json | 235 ++++++++++++++++++ website/package.json | 1 + ...rch_content.js => index_search_content.ts} | 18 +- website/scripts/tsconfig.json | 6 + 5 files changed, 253 insertions(+), 10 deletions(-) rename website/scripts/{index_search_content.js => index_search_content.ts} (92%) create mode 100644 website/scripts/tsconfig.json diff --git a/.circleci/config.yml b/.circleci/config.yml index d9006acd060..4dbe181b09c 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -187,8 +187,9 @@ jobs: exit 0 fi cd website/ + npm install -g npm@latest npm install - node scripts/index_search_content.js + npx ts-node --skip-ignore -P ./scripts/tsconfig.json ./scripts/index_search_content.ts workflows: version: 2 diff --git a/website/package-lock.json b/website/package-lock.json index e9aaf74a6b0..5e4e6a93551 100644 --- a/website/package-lock.json +++ b/website/package-lock.json @@ -49,6 +49,7 @@ "dart-linkcheck": "2.0.15", "husky": "4.3.5", "prettier": "2.2.1", + "ts-node": "^10.4.0", "typescript": "^4.3.5" }, "engines": { @@ -579,6 +580,27 @@ "resolved": "https://registry.npmjs.org/@bugsnag/safe-json-stringify/-/safe-json-stringify-6.0.0.tgz", "integrity": "sha512-htzFO1Zc57S8kgdRK9mLcPVTW1BY2ijfH7Dk2CeZmspTWKdKqSo1iwmqrq2WtRjFlo8aRZYgLX0wFrDXF/9DLA==" }, + "node_modules/@cspotcode/source-map-consumer": { + "version": "0.8.0", + "resolved": "https://registry.npmjs.org/@cspotcode/source-map-consumer/-/source-map-consumer-0.8.0.tgz", + "integrity": "sha512-41qniHzTU8yAGbCp04ohlmSrZf8bkf/iJsl3V0dRGsQN/5GFfx+LbCSsCpp2gqrqjTVg/K6O8ycoV35JIwAzAg==", + "dev": true, + "engines": { + "node": ">= 12" + } + }, + "node_modules/@cspotcode/source-map-support": { + "version": "0.7.0", + "resolved": "https://registry.npmjs.org/@cspotcode/source-map-support/-/source-map-support-0.7.0.tgz", + "integrity": "sha512-X4xqRHqN8ACt2aHVe51OxeA2HjbcL4MqFqXkrmQszJ1NOUuUu5u6Vqx/0lZSVNku7velL5FC/s5uEAj1lsBMhA==", + "dev": true, + "dependencies": { + "@cspotcode/source-map-consumer": "0.8.0" + }, + "engines": { + "node": ">=12" + } + }, "node_modules/@csstools/convert-colors": { "version": "1.4.0", "resolved": "https://registry.npmjs.org/@csstools/convert-colors/-/convert-colors-1.4.0.tgz", @@ -3258,6 +3280,30 @@ "react-dom": ">=16.8" } }, + "node_modules/@tsconfig/node10": { + "version": "1.0.8", + "resolved": "https://registry.npmjs.org/@tsconfig/node10/-/node10-1.0.8.tgz", + "integrity": "sha512-6XFfSQmMgq0CFLY1MslA/CPUfhIL919M1rMsa5lP2P097N2Wd1sSX0tx1u4olM16fLNhtHZpRhedZJphNJqmZg==", + "dev": true + }, + "node_modules/@tsconfig/node12": { + "version": "1.0.9", + "resolved": "https://registry.npmjs.org/@tsconfig/node12/-/node12-1.0.9.tgz", + "integrity": "sha512-/yBMcem+fbvhSREH+s14YJi18sp7J9jpuhYByADT2rypfajMZZN4WQ6zBGgBKp53NKmqI36wFYDb3yaMPurITw==", + "dev": true + }, + "node_modules/@tsconfig/node14": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/@tsconfig/node14/-/node14-1.0.1.tgz", + "integrity": "sha512-509r2+yARFfHHE7T6Puu2jjkoycftovhXRqW328PDXTVGKihlb1P8Z9mMZH04ebyajfRY7dedfGynlrFHJUQCg==", + "dev": true + }, + "node_modules/@tsconfig/node16": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/@tsconfig/node16/-/node16-1.0.2.tgz", + "integrity": "sha512-eZxlbI8GZscaGS7kkc/trHTT5xgrjH3/1n2JDwusC9iahPKWMRvRjJSAN5mCXviuTGQ/lHnhvv8Q1YTpnfz9gA==", + "dev": true + }, "node_modules/@types/hast": { "version": "2.3.1", "resolved": "https://registry.npmjs.org/@types/hast/-/hast-2.3.1.tgz", @@ -3795,6 +3841,12 @@ "node": ">=4" } }, + "node_modules/arg": { + "version": "4.1.3", + "resolved": "https://registry.npmjs.org/arg/-/arg-4.1.3.tgz", + "integrity": "sha512-58S9QDqG0Xx27YwPSt9fJxivjYl432YCwfDMfZ+71RAqUrZef7LrKQZ3LHLOwCS4FLNBplP533Zx895SeOCHvA==", + "dev": true + }, "node_modules/argparse": { "version": "1.0.10", "resolved": "https://registry.npmjs.org/argparse/-/argparse-1.0.10.tgz", @@ -5921,6 +5973,12 @@ "sha.js": "^2.4.8" } }, + "node_modules/create-require": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/create-require/-/create-require-1.1.1.tgz", + "integrity": "sha512-dcKFX3jn0MpIaXjisoRvexIJVEKzaq7z2rZKxf+MSr9TkdmHmsU4m2lcLojrj/FHl8mk5VxMmYA+ftRkP/3oKQ==", + "dev": true + }, "node_modules/cross-fetch": { "version": "3.1.4", "resolved": "https://registry.npmjs.org/cross-fetch/-/cross-fetch-3.1.4.tgz", @@ -6776,6 +6834,15 @@ "url": "https://github.com/sponsors/wooorm" } }, + "node_modules/diff": { + "version": "4.0.2", + "resolved": "https://registry.npmjs.org/diff/-/diff-4.0.2.tgz", + "integrity": "sha512-58lmxKSA4BNyLz+HHMUzlOEpg09FV+ev6ZMe3vJihgdxzgcwZ8VoEEPmALCZG9LmqfVoNMMKpttIYTVG6uDY7A==", + "dev": true, + "engines": { + "node": ">=0.3.1" + } + }, "node_modules/diffie-hellman": { "version": "5.0.3", "resolved": "https://registry.npmjs.org/diffie-hellman/-/diffie-hellman-5.0.3.tgz", @@ -20804,6 +20871,68 @@ "node": ">=10" } }, + "node_modules/ts-node": { + "version": "10.4.0", + "resolved": "https://registry.npmjs.org/ts-node/-/ts-node-10.4.0.tgz", + "integrity": "sha512-g0FlPvvCXSIO1JDF6S232P5jPYqBkRL9qly81ZgAOSU7rwI0stphCgd2kLiCrU9DjQCrJMWEqcNSjQL02s6d8A==", + "dev": true, + "dependencies": { + "@cspotcode/source-map-support": "0.7.0", + "@tsconfig/node10": "^1.0.7", + "@tsconfig/node12": "^1.0.7", + "@tsconfig/node14": "^1.0.0", + "@tsconfig/node16": "^1.0.2", + "acorn": "^8.4.1", + "acorn-walk": "^8.1.1", + "arg": "^4.1.0", + "create-require": "^1.1.0", + "diff": "^4.0.1", + "make-error": "^1.1.1", + "yn": "3.1.1" + }, + "bin": { + "ts-node": "dist/bin.js", + "ts-node-cwd": "dist/bin-cwd.js", + "ts-node-script": "dist/bin-script.js", + "ts-node-transpile-only": "dist/bin-transpile.js", + "ts-script": "dist/bin-script-deprecated.js" + }, + "peerDependencies": { + "@swc/core": ">=1.2.50", + "@swc/wasm": ">=1.2.50", + "@types/node": "*", + "typescript": ">=2.7" + }, + "peerDependenciesMeta": { + "@swc/core": { + "optional": true + }, + "@swc/wasm": { + "optional": true + } + } + }, + "node_modules/ts-node/node_modules/acorn": { + "version": "8.7.0", + "resolved": "https://registry.npmjs.org/acorn/-/acorn-8.7.0.tgz", + "integrity": "sha512-V/LGr1APy+PXIwKebEWrkZPwoeoF+w1jiOBUmuxuiUIaOHtob8Qc9BTrYo7VuI5fR8tqsy+buA2WFooR5olqvQ==", + "dev": true, + "bin": { + "acorn": "bin/acorn" + }, + "engines": { + "node": ">=0.4.0" + } + }, + "node_modules/ts-node/node_modules/acorn-walk": { + "version": "8.2.0", + "resolved": "https://registry.npmjs.org/acorn-walk/-/acorn-walk-8.2.0.tgz", + "integrity": "sha512-k+iyHEuPgSw6SbuDpGQM+06HQUa04DZ3o+F6CSzXMvvI5KMvnaEqXe+YVe555R9nn6GPt404fos4wcgpw12SDA==", + "dev": true, + "engines": { + "node": ">=0.4.0" + } + }, "node_modules/ts-pnp": { "version": "1.2.0", "resolved": "https://registry.npmjs.org/ts-pnp/-/ts-pnp-1.2.0.tgz", @@ -21761,6 +21890,15 @@ "fd-slicer": "~1.1.0" } }, + "node_modules/yn": { + "version": "3.1.1", + "resolved": "https://registry.npmjs.org/yn/-/yn-3.1.1.tgz", + "integrity": "sha512-Ux4ygGWsu2c7isFWe8Yu1YluJmqVhxqK2cLXNQA5AcC3QfbGNpM7fu0Y8b/z16pXLnFxZYvWhd3fhBY9DLmC6Q==", + "dev": true, + "engines": { + "node": ">=6" + } + }, "node_modules/yocto-queue": { "version": "0.1.0", "resolved": "https://registry.npmjs.org/yocto-queue/-/yocto-queue-0.1.0.tgz", @@ -22254,6 +22392,21 @@ "resolved": "https://registry.npmjs.org/@bugsnag/safe-json-stringify/-/safe-json-stringify-6.0.0.tgz", "integrity": "sha512-htzFO1Zc57S8kgdRK9mLcPVTW1BY2ijfH7Dk2CeZmspTWKdKqSo1iwmqrq2WtRjFlo8aRZYgLX0wFrDXF/9DLA==" }, + "@cspotcode/source-map-consumer": { + "version": "0.8.0", + "resolved": "https://registry.npmjs.org/@cspotcode/source-map-consumer/-/source-map-consumer-0.8.0.tgz", + "integrity": "sha512-41qniHzTU8yAGbCp04ohlmSrZf8bkf/iJsl3V0dRGsQN/5GFfx+LbCSsCpp2gqrqjTVg/K6O8ycoV35JIwAzAg==", + "dev": true + }, + "@cspotcode/source-map-support": { + "version": "0.7.0", + "resolved": "https://registry.npmjs.org/@cspotcode/source-map-support/-/source-map-support-0.7.0.tgz", + "integrity": "sha512-X4xqRHqN8ACt2aHVe51OxeA2HjbcL4MqFqXkrmQszJ1NOUuUu5u6Vqx/0lZSVNku7velL5FC/s5uEAj1lsBMhA==", + "dev": true, + "requires": { + "@cspotcode/source-map-consumer": "0.8.0" + } + }, "@csstools/convert-colors": { "version": "1.4.0", "resolved": "https://registry.npmjs.org/@csstools/convert-colors/-/convert-colors-1.4.0.tgz", @@ -24288,6 +24441,30 @@ "tippy.js": "^5.1.1" } }, + "@tsconfig/node10": { + "version": "1.0.8", + "resolved": "https://registry.npmjs.org/@tsconfig/node10/-/node10-1.0.8.tgz", + "integrity": "sha512-6XFfSQmMgq0CFLY1MslA/CPUfhIL919M1rMsa5lP2P097N2Wd1sSX0tx1u4olM16fLNhtHZpRhedZJphNJqmZg==", + "dev": true + }, + "@tsconfig/node12": { + "version": "1.0.9", + "resolved": "https://registry.npmjs.org/@tsconfig/node12/-/node12-1.0.9.tgz", + "integrity": "sha512-/yBMcem+fbvhSREH+s14YJi18sp7J9jpuhYByADT2rypfajMZZN4WQ6zBGgBKp53NKmqI36wFYDb3yaMPurITw==", + "dev": true + }, + "@tsconfig/node14": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/@tsconfig/node14/-/node14-1.0.1.tgz", + "integrity": "sha512-509r2+yARFfHHE7T6Puu2jjkoycftovhXRqW328PDXTVGKihlb1P8Z9mMZH04ebyajfRY7dedfGynlrFHJUQCg==", + "dev": true + }, + "@tsconfig/node16": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/@tsconfig/node16/-/node16-1.0.2.tgz", + "integrity": "sha512-eZxlbI8GZscaGS7kkc/trHTT5xgrjH3/1n2JDwusC9iahPKWMRvRjJSAN5mCXviuTGQ/lHnhvv8Q1YTpnfz9gA==", + "dev": true + }, "@types/hast": { "version": "2.3.1", "resolved": "https://registry.npmjs.org/@types/hast/-/hast-2.3.1.tgz", @@ -24675,6 +24852,12 @@ } } }, + "arg": { + "version": "4.1.3", + "resolved": "https://registry.npmjs.org/arg/-/arg-4.1.3.tgz", + "integrity": "sha512-58S9QDqG0Xx27YwPSt9fJxivjYl432YCwfDMfZ+71RAqUrZef7LrKQZ3LHLOwCS4FLNBplP533Zx895SeOCHvA==", + "dev": true + }, "argparse": { "version": "1.0.10", "resolved": "https://registry.npmjs.org/argparse/-/argparse-1.0.10.tgz", @@ -26327,6 +26510,12 @@ "sha.js": "^2.4.8" } }, + "create-require": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/create-require/-/create-require-1.1.1.tgz", + "integrity": "sha512-dcKFX3jn0MpIaXjisoRvexIJVEKzaq7z2rZKxf+MSr9TkdmHmsU4m2lcLojrj/FHl8mk5VxMmYA+ftRkP/3oKQ==", + "dev": true + }, "cross-fetch": { "version": "3.1.4", "resolved": "https://registry.npmjs.org/cross-fetch/-/cross-fetch-3.1.4.tgz", @@ -26974,6 +27163,12 @@ "repeat-string": "^1.5.4" } }, + "diff": { + "version": "4.0.2", + "resolved": "https://registry.npmjs.org/diff/-/diff-4.0.2.tgz", + "integrity": "sha512-58lmxKSA4BNyLz+HHMUzlOEpg09FV+ev6ZMe3vJihgdxzgcwZ8VoEEPmALCZG9LmqfVoNMMKpttIYTVG6uDY7A==", + "dev": true + }, "diffie-hellman": { "version": "5.0.3", "resolved": "https://registry.npmjs.org/diffie-hellman/-/diffie-hellman-5.0.3.tgz", @@ -37704,6 +37899,40 @@ } } }, + "ts-node": { + "version": "10.4.0", + "resolved": "https://registry.npmjs.org/ts-node/-/ts-node-10.4.0.tgz", + "integrity": "sha512-g0FlPvvCXSIO1JDF6S232P5jPYqBkRL9qly81ZgAOSU7rwI0stphCgd2kLiCrU9DjQCrJMWEqcNSjQL02s6d8A==", + "dev": true, + "requires": { + "@cspotcode/source-map-support": "0.7.0", + "@tsconfig/node10": "^1.0.7", + "@tsconfig/node12": "^1.0.7", + "@tsconfig/node14": "^1.0.0", + "@tsconfig/node16": "^1.0.2", + "acorn": "^8.4.1", + "acorn-walk": "^8.1.1", + "arg": "^4.1.0", + "create-require": "^1.1.0", + "diff": "^4.0.1", + "make-error": "^1.1.1", + "yn": "3.1.1" + }, + "dependencies": { + "acorn": { + "version": "8.7.0", + "resolved": "https://registry.npmjs.org/acorn/-/acorn-8.7.0.tgz", + "integrity": "sha512-V/LGr1APy+PXIwKebEWrkZPwoeoF+w1jiOBUmuxuiUIaOHtob8Qc9BTrYo7VuI5fR8tqsy+buA2WFooR5olqvQ==", + "dev": true + }, + "acorn-walk": { + "version": "8.2.0", + "resolved": "https://registry.npmjs.org/acorn-walk/-/acorn-walk-8.2.0.tgz", + "integrity": "sha512-k+iyHEuPgSw6SbuDpGQM+06HQUa04DZ3o+F6CSzXMvvI5KMvnaEqXe+YVe555R9nn6GPt404fos4wcgpw12SDA==", + "dev": true + } + } + }, "ts-pnp": { "version": "1.2.0", "resolved": "https://registry.npmjs.org/ts-pnp/-/ts-pnp-1.2.0.tgz", @@ -38429,6 +38658,12 @@ "fd-slicer": "~1.1.0" } }, + "yn": { + "version": "3.1.1", + "resolved": "https://registry.npmjs.org/yn/-/yn-3.1.1.tgz", + "integrity": "sha512-Ux4ygGWsu2c7isFWe8Yu1YluJmqVhxqK2cLXNQA5AcC3QfbGNpM7fu0Y8b/z16pXLnFxZYvWhd3fhBY9DLmC6Q==", + "dev": true + }, "yocto-queue": { "version": "0.1.0", "resolved": "https://registry.npmjs.org/yocto-queue/-/yocto-queue-0.1.0.tgz", diff --git a/website/package.json b/website/package.json index bb361727bd8..77ca877b2ea 100644 --- a/website/package.json +++ b/website/package.json @@ -45,6 +45,7 @@ "dart-linkcheck": "2.0.15", "husky": "4.3.5", "prettier": "2.2.1", + "ts-node": "^10.4.0", "typescript": "^4.3.5" }, "husky": { diff --git a/website/scripts/index_search_content.js b/website/scripts/index_search_content.ts similarity index 92% rename from website/scripts/index_search_content.js rename to website/scripts/index_search_content.ts index 6ac5453726d..9f1570259a7 100644 --- a/website/scripts/index_search_content.js +++ b/website/scripts/index_search_content.ts @@ -1,14 +1,14 @@ -require('dotenv').config() -const fs = require('fs') -const path = require('path') -const { +// @ts-nocheck +import { config } from 'dotenv' +config() +import fs from 'fs' +import path from 'path' +import { indexContent, getDocsSearchObject, -} = require('@hashicorp/react-search/tools') -const { - resolveNavData, -} = require('@hashicorp/react-docs-page/server/resolve-nav-data') -const resolveNavDataWithRemotePlugins = require('../components/remote-plugin-docs/utils/resolve-nav-data') +} from '@hashicorp/react-search/tools' +import { resolveNavData } from '@hashicorp/react-docs-page/server/resolve-nav-data' +import resolveNavDataWithRemotePlugins from '../components/remote-plugin-docs/utils/resolve-nav-data' // Run indexing indexContent({ getSearchObjects }) diff --git a/website/scripts/tsconfig.json b/website/scripts/tsconfig.json new file mode 100644 index 00000000000..50800aa0b7b --- /dev/null +++ b/website/scripts/tsconfig.json @@ -0,0 +1,6 @@ +{ + "compilerOptions": { + "esModuleInterop": true, + "module": "CommonJS" + } +} From 5e1be6f5aba043482fefc070b3d7d8ecbe12d4d1 Mon Sep 17 00:00:00 2001 From: Kevin Wang Date: Thu, 13 Jan 2022 13:07:13 -0500 Subject: [PATCH 02/88] feat: versioned-docs (#11434) This PR introduces Versioned-Docs to Packer! --- website/components/homepage-hero/index.tsx | 1 - .../utils/fetch-latest-release-tag.js | 19 +- website/next.config.js | 1 + website/package-lock.json | 471 +++++++++++++----- website/package.json | 2 +- website/pages/docs/[[...page]].jsx | 47 +- website/pages/guides/[[...page]].jsx | 39 +- website/pages/intro/[[...page]].jsx | 39 +- website/pages/plugins/[[...page]].tsx | 1 + 9 files changed, 442 insertions(+), 178 deletions(-) diff --git a/website/components/homepage-hero/index.tsx b/website/components/homepage-hero/index.tsx index 81e1408e1b5..39c05d6c47c 100644 --- a/website/components/homepage-hero/index.tsx +++ b/website/components/homepage-hero/index.tsx @@ -14,7 +14,6 @@ export default function HomepageHero({
{alert ? ( - // @ts-expect-error -- prop types are incorrect, state is not needed = 16.x" } }, + "node_modules/@hashicorp/platform-markdown-utils/node_modules/@hashicorp/remark-plugins": { + "version": "3.3.1", + "resolved": "https://registry.npmjs.org/@hashicorp/remark-plugins/-/remark-plugins-3.3.1.tgz", + "integrity": "sha512-7xThpsBFWasdC/E+E/BAjHxMYqyCcQFiTVspvhBzN51meiQIacVCnyAox/lyvwWiP4N3Yj/ruH4UsR2ifskNeA==", + "dependencies": { + "@mdx-js/util": "1.6.22", + "github-slugger": "^1.3.0", + "remark": "12.0.1", + "remark-mdx": "1.6.22", + "to-vfile": "^6.1.0", + "unist-util-flatmap": "^1.0.0", + "unist-util-is": "^4.0.2", + "unist-util-map": "^2.0.1", + "unist-util-visit": "^2.0.3" + } + }, "node_modules/@hashicorp/platform-markdown-utils/node_modules/@mapbox/rehype-prism": { "version": "0.6.0", "resolved": "https://registry.npmjs.org/@mapbox/rehype-prism/-/rehype-prism-0.6.0.tgz", @@ -2059,15 +2076,16 @@ } }, "node_modules/@hashicorp/react-alert": { - "version": "6.0.0", - "resolved": "https://registry.npmjs.org/@hashicorp/react-alert/-/react-alert-6.0.0.tgz", - "integrity": "sha512-uTRt9aux5NWyxBWifKD/QsQ1U/S4CurAMUpGbgvOe1gkAoKyl/0KdtlcXMEb1/jMmRH2F2sgj5gPmczPmiz/yg==", + "version": "6.0.2", + "resolved": "https://registry.npmjs.org/@hashicorp/react-alert/-/react-alert-6.0.2.tgz", + "integrity": "sha512-8ePxXMYR6kU0cYb4T3WZ74bInPQdbzfM4B+ZWqmW+raEpVAS2MTqDFl7X55L0syWx6JDbBmrlhzYaRzTDf6qug==", "dependencies": { "@hashicorp/platform-product-meta": "^0.1.0", - "classnames": "^2.2.6" + "classnames": "^2.3.1" }, "peerDependencies": { - "@hashicorp/mktg-global-styles": ">=3.x" + "@hashicorp/mktg-global-styles": ">=3.x", + "react": ">=16.x" } }, "node_modules/@hashicorp/react-alert-banner": { @@ -2182,9 +2200,9 @@ } }, "node_modules/@hashicorp/react-content": { - "version": "8.0.2", - "resolved": "https://registry.npmjs.org/@hashicorp/react-content/-/react-content-8.0.2.tgz", - "integrity": "sha512-FNE1IiXizUDPL/rsvo37uYSBsAB8LhtCianMU/h3MIj8Khcwc/qC3pTabGs9Kv3ujA+fiIp/ImzWEGAhB22T7g==", + "version": "8.1.0", + "resolved": "https://registry.npmjs.org/@hashicorp/react-content/-/react-content-8.1.0.tgz", + "integrity": "sha512-L7z8/GiW2tvoBjLvpwZWWrf/KnGDch0SV29zDdkTtf4oa8Ojd5bVvQYo5Sz6Yva8CpQB2p4EZT6maDepJCnLqA==", "dependencies": { "@hashicorp/platform-product-meta": "^0.1.0", "classnames": "^2.3.1" @@ -2195,26 +2213,27 @@ } }, "node_modules/@hashicorp/react-docs-page": { - "version": "14.4.2", - "resolved": "https://registry.npmjs.org/@hashicorp/react-docs-page/-/react-docs-page-14.4.2.tgz", - "integrity": "sha512-K/KITJsAYA8sjxCy4JbAJKEgEKA924MNm4bd4SPniomzSYmsCNxeDaM/bSM/EpaGR7cX9r6htSyugKwo7V3QFQ==", + "version": "14.13.0", + "resolved": "https://registry.npmjs.org/@hashicorp/react-docs-page/-/react-docs-page-14.13.0.tgz", + "integrity": "sha512-uaV1AztfwH6liSdUVGgu+BDQblV4tedqeAZFMKOCveZOZAdg6eFq46CJppTQGLaa4P6swcifmVyF9TK4r5cFJg==", "dependencies": { "@hashicorp/platform-docs-mdx": "^0.1.3", - "@hashicorp/platform-markdown-utils": "^0.1.3", - "@hashicorp/react-alert": "^6.0.0", - "@hashicorp/react-content": "^8.0.2", + "@hashicorp/platform-markdown-utils": "^0.2.0", + "@hashicorp/react-alert": "^6.0.2", + "@hashicorp/react-content": "^8.1.0", "@hashicorp/react-docs-sidenav": "^8.4.0", "@hashicorp/react-head": "^3.1.2", "@hashicorp/react-placeholder": "^0.1.0", - "@hashicorp/react-search": "^6.1.1", - "@hashicorp/react-version-select": "^0.2.0", + "@hashicorp/react-search": "^6.3.1", + "@hashicorp/react-version-select": "^0.3.0", "classnames": "^2.3.1", "fs-exists-sync": "^0.1.0", "gray-matter": "^4.0.3", "js-yaml": "^4.1.0", "line-reader": "^0.4.0", "moize": "^6.0.3", - "readdirp": "^3.6.0" + "readdirp": "^3.6.0", + "semver": "^7.3.5" }, "peerDependencies": { "@hashicorp/mktg-global-styles": ">=3.x", @@ -2222,11 +2241,65 @@ "react": ">=16.x" } }, + "node_modules/@hashicorp/react-docs-page/node_modules/@hashicorp/platform-markdown-utils": { + "version": "0.2.0", + "resolved": "https://registry.npmjs.org/@hashicorp/platform-markdown-utils/-/platform-markdown-utils-0.2.0.tgz", + "integrity": "sha512-xs/yiP/vcgvGX5wYggvYIhG4WTmTS3e5oUE7QuTtukOHcCN+HmN79z9xn8yCDnJ0GiAm51dv42lmCBiWj3JF6Q==", + "dependencies": { + "@hashicorp/platform-types": "^0.1.0", + "@hashicorp/remark-plugins": "^3.3.1", + "@mapbox/rehype-prism": "^0.6.0", + "@mdx-js/react": "1.6.22", + "rehype-katex": "^5.0.0", + "remark-math": "^4.0.0", + "remark-rehype": "^7.0.0" + }, + "peerDependencies": { + "react": ">= 16.x" + } + }, + "node_modules/@hashicorp/react-docs-page/node_modules/@hashicorp/remark-plugins": { + "version": "3.3.1", + "resolved": "https://registry.npmjs.org/@hashicorp/remark-plugins/-/remark-plugins-3.3.1.tgz", + "integrity": "sha512-7xThpsBFWasdC/E+E/BAjHxMYqyCcQFiTVspvhBzN51meiQIacVCnyAox/lyvwWiP4N3Yj/ruH4UsR2ifskNeA==", + "dependencies": { + "@mdx-js/util": "1.6.22", + "github-slugger": "^1.3.0", + "remark": "12.0.1", + "remark-mdx": "1.6.22", + "to-vfile": "^6.1.0", + "unist-util-flatmap": "^1.0.0", + "unist-util-is": "^4.0.2", + "unist-util-map": "^2.0.1", + "unist-util-visit": "^2.0.3" + } + }, + "node_modules/@hashicorp/react-docs-page/node_modules/@mapbox/rehype-prism": { + "version": "0.6.0", + "resolved": "https://registry.npmjs.org/@mapbox/rehype-prism/-/rehype-prism-0.6.0.tgz", + "integrity": "sha512-/0Ev/PB4fXdKPT6VDzVpnAPxGpWFIc4Yz3mf/DzLEMxlpIPZpZlCzaFk4V4NGFofQXPc41+GpEcZtWP3VuFWVA==", + "dependencies": { + "hast-util-to-string": "^1.0.4", + "refractor": "^3.3.1", + "unist-util-visit": "^2.0.3" + }, + "engines": { + "node": ">=10" + } + }, "node_modules/@hashicorp/react-docs-page/node_modules/argparse": { "version": "2.0.1", "resolved": "https://registry.npmjs.org/argparse/-/argparse-2.0.1.tgz", "integrity": "sha512-8+9WqebbFzpX9OR+Wa6O29asIogeRMzcGtAINdpMHHyAg10f05aSFVBbcEqGf/PXw1EjAZ+q2/bEBg3DvurK3Q==" }, + "node_modules/@hashicorp/react-docs-page/node_modules/commander": { + "version": "8.3.0", + "resolved": "https://registry.npmjs.org/commander/-/commander-8.3.0.tgz", + "integrity": "sha512-OkTL9umf+He2DZkUq8f8J9of7yL6RJKI24dVITBmNfZBmri9zYZQrKkuXiKhyfPSu8tUhnVBB1iKXevvnlR4Ww==", + "engines": { + "node": ">= 12" + } + }, "node_modules/@hashicorp/react-docs-page/node_modules/js-yaml": { "version": "4.1.0", "resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-4.1.0.tgz", @@ -2238,6 +2311,52 @@ "js-yaml": "bin/js-yaml.js" } }, + "node_modules/@hashicorp/react-docs-page/node_modules/katex": { + "version": "0.13.24", + "resolved": "https://registry.npmjs.org/katex/-/katex-0.13.24.tgz", + "integrity": "sha512-jZxYuKCma3VS5UuxOx/rFV1QyGSl3Uy/i0kTJF3HgQ5xMinCQVF8Zd4bMY/9aI9b9A2pjIBOsjSSm68ykTAr8w==", + "funding": [ + "https://opencollective.com/katex", + "https://github.com/sponsors/katex" + ], + "dependencies": { + "commander": "^8.0.0" + }, + "bin": { + "katex": "cli.js" + } + }, + "node_modules/@hashicorp/react-docs-page/node_modules/mdast-util-definitions": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/mdast-util-definitions/-/mdast-util-definitions-3.0.1.tgz", + "integrity": "sha512-BAv2iUm/e6IK/b2/t+Fx69EL/AGcq/IG2S+HxHjDJGfLJtd6i9SZUS76aC9cig+IEucsqxKTR0ot3m933R3iuA==", + "dependencies": { + "unist-util-visit": "^2.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/unified" + } + }, + "node_modules/@hashicorp/react-docs-page/node_modules/mdast-util-to-hast": { + "version": "9.1.2", + "resolved": "https://registry.npmjs.org/mdast-util-to-hast/-/mdast-util-to-hast-9.1.2.tgz", + "integrity": "sha512-OpkFLBC2VnNAb2FNKcKWu9FMbJhQKog+FCT8nuKmQNIKXyT1n3SIskE7uWDep6x+cA20QXlK5AETHQtYmQmxtQ==", + "dependencies": { + "@types/mdast": "^3.0.0", + "@types/unist": "^2.0.0", + "mdast-util-definitions": "^3.0.0", + "mdurl": "^1.0.0", + "unist-builder": "^2.0.0", + "unist-util-generated": "^1.0.0", + "unist-util-position": "^3.0.0", + "unist-util-visit": "^2.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/unified" + } + }, "node_modules/@hashicorp/react-docs-page/node_modules/readdirp": { "version": "3.6.0", "resolved": "https://registry.npmjs.org/readdirp/-/readdirp-3.6.0.tgz", @@ -2249,10 +2368,39 @@ "node": ">=8.10.0" } }, + "node_modules/@hashicorp/react-docs-page/node_modules/rehype-katex": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/rehype-katex/-/rehype-katex-5.0.0.tgz", + "integrity": "sha512-ksSuEKCql/IiIadOHiKRMjypva9BLhuwQNascMqaoGLDVd0k2NlE2wMvgZ3rpItzRKCd6vs8s7MFbb8pcR0AEg==", + "dependencies": { + "@types/katex": "^0.11.0", + "hast-util-to-text": "^2.0.0", + "katex": "^0.13.0", + "rehype-parse": "^7.0.0", + "unified": "^9.0.0", + "unist-util-visit": "^2.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/unified" + } + }, + "node_modules/@hashicorp/react-docs-page/node_modules/remark-rehype": { + "version": "7.0.0", + "resolved": "https://registry.npmjs.org/remark-rehype/-/remark-rehype-7.0.0.tgz", + "integrity": "sha512-uqQ/VbaTdxyu/da6npHAso6hA00cMqhA3a59RziQdOLN2KEIkPykAVy52IcmZEVTuauXO0VtpxkyCey4phtHzQ==", + "dependencies": { + "mdast-util-to-hast": "^9.1.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/unified" + } + }, "node_modules/@hashicorp/react-docs-sidenav": { - "version": "8.4.0", - "resolved": "https://registry.npmjs.org/@hashicorp/react-docs-sidenav/-/react-docs-sidenav-8.4.0.tgz", - "integrity": "sha512-r2yFLuAD4+9RbPvBzWwcv7b9wrk1MooUJJMdLFP6WUUPYxt3r0Jju6/y4CubVUwtDnNCe3iqo3KoRmWrfNSS0Q==", + "version": "8.4.1", + "resolved": "https://registry.npmjs.org/@hashicorp/react-docs-sidenav/-/react-docs-sidenav-8.4.1.tgz", + "integrity": "sha512-X7J19jCrcYiZEa7/ApMn6R5LFmDymJC1/sHSXpaMcXDIW5DD+H0DRYwJKVUPgdJDWhjZ5PXXWeDJTOKcQWBNog==", "dependencies": { "@hashicorp/platform-product-meta": "^0.1.0", "@hashicorp/react-link-wrap": "^3.0.3", @@ -2449,9 +2597,9 @@ } }, "node_modules/@hashicorp/react-search": { - "version": "6.1.1", - "resolved": "https://registry.npmjs.org/@hashicorp/react-search/-/react-search-6.1.1.tgz", - "integrity": "sha512-azaXjFP/om+DN6InI/WD+qH9jmLE3/9pqIc2Dp4rYY/tn1KuWyJ5MefvcsbYxIFUVX/wiT2n+8HZFwRfxhdA+w==", + "version": "6.4.0", + "resolved": "https://registry.npmjs.org/@hashicorp/react-search/-/react-search-6.4.0.tgz", + "integrity": "sha512-ITAvD5QEc+B79VTYC27kdx0P1ynGFPUwed1ttUxlAIhvzasWjKeM6sS1rT8oFF+QcUZqoE7rKq7Y8k53sAB2Lw==", "dependencies": { "@hashicorp/react-inline-svg": "^6.0.1", "@hashicorp/remark-plugins": "^3.1.1", @@ -2510,11 +2658,11 @@ } }, "node_modules/@hashicorp/react-select-input": { - "version": "4.0.3", - "resolved": "https://registry.npmjs.org/@hashicorp/react-select-input/-/react-select-input-4.0.3.tgz", - "integrity": "sha512-HN7uy2acXOCNE2cz844da0V8JHesnCLjKXis7/n+PB9O6wLfSYblWYPoPLEPx83Ph0dQfAtUT8dsJ9v6S2TSiw==", + "version": "4.0.5", + "resolved": "https://registry.npmjs.org/@hashicorp/react-select-input/-/react-select-input-4.0.5.tgz", + "integrity": "sha512-iN7iq7HZTQh3sa3LViuXbS84Si5hL6eWOqXd4DHfWYcZuuwping88l8SwwPWtqr+HVDcFsRixpVuvOCwgQSX0Q==", "dependencies": { - "classnames": "^2.2.6", + "classnames": "^2.3.1", "downshift": "3.1.5" }, "peerDependencies": { @@ -2614,9 +2762,9 @@ } }, "node_modules/@hashicorp/react-version-select": { - "version": "0.2.1", - "resolved": "https://registry.npmjs.org/@hashicorp/react-version-select/-/react-version-select-0.2.1.tgz", - "integrity": "sha512-E7BW4FotIYq1S5d/GrUPH2NvXmzYmeNpM01wNThDEbes47RfT8nzN3dg64QOUdCvWoUcUaOlGMQHNychBTif2g==", + "version": "0.3.0", + "resolved": "https://registry.npmjs.org/@hashicorp/react-version-select/-/react-version-select-0.3.0.tgz", + "integrity": "sha512-wd708z+ftdUkK+jKBLFHdHE3U4a0g37LTOxH9X68LzFDWPUT9gTAI5dPEfT0Os/DeJxWcRvUoaS8Fbtd7SQPmg==", "dependencies": { "@hashicorp/react-select-input": ">=4.x" }, @@ -2890,13 +3038,9 @@ "version": "11.1.3", "resolved": "https://registry.npmjs.org/@next/swc-darwin-arm64/-/swc-darwin-arm64-11.1.3.tgz", "integrity": "sha512-TwP4krjhs+uU9pesDYCShEXZrLSbJr78p12e7XnLBBaNf20SgWLlVmQUT9gX9KbWan5V0sUbJfmcS8MRNHgYuA==", - "cpu": [ - "arm64" - ], + "cpu": ["arm64"], "optional": true, - "os": [ - "darwin" - ], + "os": ["darwin"], "engines": { "node": ">= 10" } @@ -2905,13 +3049,9 @@ "version": "11.1.3", "resolved": "https://registry.npmjs.org/@next/swc-darwin-x64/-/swc-darwin-x64-11.1.3.tgz", "integrity": "sha512-ZSWmkg/PxccHFNUSeBdrfaH8KwSkoeUtewXKvuYYt7Ph0yRsbqSyNIvhUezDua96lApiXXq6EL2d1THfeWomvw==", - "cpu": [ - "x64" - ], + "cpu": ["x64"], "optional": true, - "os": [ - "darwin" - ], + "os": ["darwin"], "engines": { "node": ">= 10" } @@ -2920,13 +3060,9 @@ "version": "11.1.3", "resolved": "https://registry.npmjs.org/@next/swc-linux-x64-gnu/-/swc-linux-x64-gnu-11.1.3.tgz", "integrity": "sha512-PrTBN0iZudAuj4jSbtXcdBdmfpaDCPIneG4Oms4zcs93KwMgLhivYW082Mvlgx9QVEiRm7+RkFpIVtG/i7JitA==", - "cpu": [ - "x64" - ], + "cpu": ["x64"], "optional": true, - "os": [ - "linux" - ], + "os": ["linux"], "engines": { "node": ">= 10" } @@ -2935,13 +3071,9 @@ "version": "11.1.3", "resolved": "https://registry.npmjs.org/@next/swc-win32-x64-msvc/-/swc-win32-x64-msvc-11.1.3.tgz", "integrity": "sha512-mRwbscVjRoHk+tDY7XbkT5d9FCwujFIQJpGp0XNb1i5OHCSDO8WW/C9cLEWS4LxKRbIZlTLYg1MTXqLQkvva8w==", - "cpu": [ - "x64" - ], + "cpu": ["x64"], "optional": true, - "os": [ - "win32" - ], + "os": ["win32"], "engines": { "node": ">= 10" } @@ -8107,9 +8239,9 @@ "integrity": "sha512-xJuoT5+L99XlZ8twedaRf6Ax2TgQVxvgZOYoPKqZufmJib0tL2tegPBOZb1pVNgIhlqDlA0eO0c3wBvQcmzx4w==" }, "node_modules/fast-equals": { - "version": "2.0.3", - "resolved": "https://registry.npmjs.org/fast-equals/-/fast-equals-2.0.3.tgz", - "integrity": "sha512-0EMw4TTUxsMDpDkCg0rXor2gsg+npVrMIHbEhvD0HZyIhUX6AktC/yasm+qKwfyswd06Qy95ZKk8p2crTo0iPA==" + "version": "2.0.4", + "resolved": "https://registry.npmjs.org/fast-equals/-/fast-equals-2.0.4.tgz", + "integrity": "sha512-caj/ZmjHljPrZtbzJ3kfH5ia/k4mTJe/qSiXAGzxZWRZgsgDV0cvNaQULqUX8t0/JVlzzEdYOwCN5DmzTxoD4w==" }, "node_modules/fast-glob": { "version": "3.2.7", @@ -8482,9 +8614,7 @@ "integrity": "sha512-xiqMQR4xAeHTuB9uWm+fFRcIOgKBMiOBP+eXiyT7jsgVCq1bkVygt00oASowB7EdtpOHaaPgKt812P9ab+DDKA==", "hasInstallScript": true, "optional": true, - "os": [ - "darwin" - ], + "os": ["darwin"], "engines": { "node": "^8.16.0 || ^10.6.0 || >=11.0.0" } @@ -23334,9 +23464,9 @@ } }, "@hashicorp/react-tabs": { - "version": "7.0.1", - "resolved": "https://registry.npmjs.org/@hashicorp/react-tabs/-/react-tabs-7.0.1.tgz", - "integrity": "sha512-qmQscQkIxNhZc/QhWo5RCEu39rKXl4iQHlk0Q0Zk+ClqKSplDuVMMJqg3GtrG056em9xA2p+n7J501EZlOfzGg==", + "version": "7.1.1", + "resolved": "https://registry.npmjs.org/@hashicorp/react-tabs/-/react-tabs-7.1.1.tgz", + "integrity": "sha512-5PX4oqyq6suHgHL7zVhg74CwNjEgfamQorbUyI1TMWs1MBatT/5OJ/ls0svbnNfVVVwlMu84pMFhViXWeZw2QA==", "requires": { "@hashicorp/react-inline-svg": "^6.0.1", "@reach/portal": "^0.16.0", @@ -23345,11 +23475,12 @@ } }, "@reach/portal": { - "version": "0.16.0", - "resolved": "https://registry.npmjs.org/@reach/portal/-/portal-0.16.0.tgz", - "integrity": "sha512-vXJ0O9T+72HiSEWHPs2cx7YbSO7pQsTMhgqPc5aaddIYpo2clJx1PnYuS0lSNlVaDO0IxQhwYq43evXaXnmviw==", + "version": "0.16.2", + "resolved": "https://registry.npmjs.org/@reach/portal/-/portal-0.16.2.tgz", + "integrity": "sha512-9ur/yxNkuVYTIjAcfi46LdKUvH0uYZPfEp4usWcpt6PIp+WDF57F/5deMe/uGi/B/nfDweQu8VVwuMVrCb97JQ==", "requires": { "@reach/utils": "0.16.0", + "tiny-warning": "^1.0.3", "tslib": "^2.3.0" } }, @@ -23365,12 +23496,12 @@ } }, "@hashicorp/platform-markdown-utils": { - "version": "0.1.3", - "resolved": "https://registry.npmjs.org/@hashicorp/platform-markdown-utils/-/platform-markdown-utils-0.1.3.tgz", - "integrity": "sha512-WIVCYljXQAhT+wFb8EtN3AEkgFDcbXMEvF4XkBg8OE/UWlrKWUNICjhrwTN68Q4Vl11ChX/ifH803DmLcSninA==", + "version": "0.1.4", + "resolved": "https://registry.npmjs.org/@hashicorp/platform-markdown-utils/-/platform-markdown-utils-0.1.4.tgz", + "integrity": "sha512-ey24VxU99+ECQ7SPUqFrYpBMJZJKayD6hz8t3gDm/SxfSCEz/NXzqVye/ToWcEfRTtHqasBVDaVa2lf7UwzqKw==", "requires": { "@hashicorp/platform-types": "^0.1.0", - "@hashicorp/remark-plugins": "^3.2.0", + "@hashicorp/remark-plugins": "^3.2.1", "@mapbox/rehype-prism": "^0.6.0", "@mdx-js/react": "1.6.22", "rehype-katex": "^5.0.0", @@ -23378,6 +23509,22 @@ "remark-rehype": "^7.0.0" }, "dependencies": { + "@hashicorp/remark-plugins": { + "version": "3.3.1", + "resolved": "https://registry.npmjs.org/@hashicorp/remark-plugins/-/remark-plugins-3.3.1.tgz", + "integrity": "sha512-7xThpsBFWasdC/E+E/BAjHxMYqyCcQFiTVspvhBzN51meiQIacVCnyAox/lyvwWiP4N3Yj/ruH4UsR2ifskNeA==", + "requires": { + "@mdx-js/util": "1.6.22", + "github-slugger": "^1.3.0", + "remark": "12.0.1", + "remark-mdx": "1.6.22", + "to-vfile": "^6.1.0", + "unist-util-flatmap": "^1.0.0", + "unist-util-is": "^4.0.2", + "unist-util-map": "^2.0.1", + "unist-util-visit": "^2.0.3" + } + }, "@mapbox/rehype-prism": { "version": "0.6.0", "resolved": "https://registry.npmjs.org/@mapbox/rehype-prism/-/rehype-prism-0.6.0.tgz", @@ -23526,12 +23673,12 @@ } }, "@hashicorp/react-alert": { - "version": "6.0.0", - "resolved": "https://registry.npmjs.org/@hashicorp/react-alert/-/react-alert-6.0.0.tgz", - "integrity": "sha512-uTRt9aux5NWyxBWifKD/QsQ1U/S4CurAMUpGbgvOe1gkAoKyl/0KdtlcXMEb1/jMmRH2F2sgj5gPmczPmiz/yg==", + "version": "6.0.2", + "resolved": "https://registry.npmjs.org/@hashicorp/react-alert/-/react-alert-6.0.2.tgz", + "integrity": "sha512-8ePxXMYR6kU0cYb4T3WZ74bInPQdbzfM4B+ZWqmW+raEpVAS2MTqDFl7X55L0syWx6JDbBmrlhzYaRzTDf6qug==", "requires": { "@hashicorp/platform-product-meta": "^0.1.0", - "classnames": "^2.2.6" + "classnames": "^2.3.1" } }, "@hashicorp/react-alert-banner": { @@ -23619,42 +23766,88 @@ } }, "@hashicorp/react-content": { - "version": "8.0.2", - "resolved": "https://registry.npmjs.org/@hashicorp/react-content/-/react-content-8.0.2.tgz", - "integrity": "sha512-FNE1IiXizUDPL/rsvo37uYSBsAB8LhtCianMU/h3MIj8Khcwc/qC3pTabGs9Kv3ujA+fiIp/ImzWEGAhB22T7g==", + "version": "8.1.0", + "resolved": "https://registry.npmjs.org/@hashicorp/react-content/-/react-content-8.1.0.tgz", + "integrity": "sha512-L7z8/GiW2tvoBjLvpwZWWrf/KnGDch0SV29zDdkTtf4oa8Ojd5bVvQYo5Sz6Yva8CpQB2p4EZT6maDepJCnLqA==", "requires": { "@hashicorp/platform-product-meta": "^0.1.0", "classnames": "^2.3.1" } }, "@hashicorp/react-docs-page": { - "version": "14.4.2", - "resolved": "https://registry.npmjs.org/@hashicorp/react-docs-page/-/react-docs-page-14.4.2.tgz", - "integrity": "sha512-K/KITJsAYA8sjxCy4JbAJKEgEKA924MNm4bd4SPniomzSYmsCNxeDaM/bSM/EpaGR7cX9r6htSyugKwo7V3QFQ==", + "version": "14.13.0", + "resolved": "https://registry.npmjs.org/@hashicorp/react-docs-page/-/react-docs-page-14.13.0.tgz", + "integrity": "sha512-uaV1AztfwH6liSdUVGgu+BDQblV4tedqeAZFMKOCveZOZAdg6eFq46CJppTQGLaa4P6swcifmVyF9TK4r5cFJg==", "requires": { "@hashicorp/platform-docs-mdx": "^0.1.3", - "@hashicorp/platform-markdown-utils": "^0.1.3", - "@hashicorp/react-alert": "^6.0.0", - "@hashicorp/react-content": "^8.0.2", + "@hashicorp/platform-markdown-utils": "^0.2.0", + "@hashicorp/react-alert": "^6.0.2", + "@hashicorp/react-content": "^8.1.0", "@hashicorp/react-docs-sidenav": "^8.4.0", "@hashicorp/react-head": "^3.1.2", "@hashicorp/react-placeholder": "^0.1.0", - "@hashicorp/react-search": "^6.1.1", - "@hashicorp/react-version-select": "^0.2.0", + "@hashicorp/react-search": "^6.3.1", + "@hashicorp/react-version-select": "^0.3.0", "classnames": "^2.3.1", "fs-exists-sync": "^0.1.0", "gray-matter": "^4.0.3", "js-yaml": "^4.1.0", "line-reader": "^0.4.0", "moize": "^6.0.3", - "readdirp": "^3.6.0" + "readdirp": "^3.6.0", + "semver": "^7.3.5" }, "dependencies": { + "@hashicorp/platform-markdown-utils": { + "version": "0.2.0", + "resolved": "https://registry.npmjs.org/@hashicorp/platform-markdown-utils/-/platform-markdown-utils-0.2.0.tgz", + "integrity": "sha512-xs/yiP/vcgvGX5wYggvYIhG4WTmTS3e5oUE7QuTtukOHcCN+HmN79z9xn8yCDnJ0GiAm51dv42lmCBiWj3JF6Q==", + "requires": { + "@hashicorp/platform-types": "^0.1.0", + "@hashicorp/remark-plugins": "^3.3.1", + "@mapbox/rehype-prism": "^0.6.0", + "@mdx-js/react": "1.6.22", + "rehype-katex": "^5.0.0", + "remark-math": "^4.0.0", + "remark-rehype": "^7.0.0" + } + }, + "@hashicorp/remark-plugins": { + "version": "3.3.1", + "resolved": "https://registry.npmjs.org/@hashicorp/remark-plugins/-/remark-plugins-3.3.1.tgz", + "integrity": "sha512-7xThpsBFWasdC/E+E/BAjHxMYqyCcQFiTVspvhBzN51meiQIacVCnyAox/lyvwWiP4N3Yj/ruH4UsR2ifskNeA==", + "requires": { + "@mdx-js/util": "1.6.22", + "github-slugger": "^1.3.0", + "remark": "12.0.1", + "remark-mdx": "1.6.22", + "to-vfile": "^6.1.0", + "unist-util-flatmap": "^1.0.0", + "unist-util-is": "^4.0.2", + "unist-util-map": "^2.0.1", + "unist-util-visit": "^2.0.3" + } + }, + "@mapbox/rehype-prism": { + "version": "0.6.0", + "resolved": "https://registry.npmjs.org/@mapbox/rehype-prism/-/rehype-prism-0.6.0.tgz", + "integrity": "sha512-/0Ev/PB4fXdKPT6VDzVpnAPxGpWFIc4Yz3mf/DzLEMxlpIPZpZlCzaFk4V4NGFofQXPc41+GpEcZtWP3VuFWVA==", + "requires": { + "hast-util-to-string": "^1.0.4", + "refractor": "^3.3.1", + "unist-util-visit": "^2.0.3" + } + }, "argparse": { "version": "2.0.1", "resolved": "https://registry.npmjs.org/argparse/-/argparse-2.0.1.tgz", "integrity": "sha512-8+9WqebbFzpX9OR+Wa6O29asIogeRMzcGtAINdpMHHyAg10f05aSFVBbcEqGf/PXw1EjAZ+q2/bEBg3DvurK3Q==" }, + "commander": { + "version": "8.3.0", + "resolved": "https://registry.npmjs.org/commander/-/commander-8.3.0.tgz", + "integrity": "sha512-OkTL9umf+He2DZkUq8f8J9of7yL6RJKI24dVITBmNfZBmri9zYZQrKkuXiKhyfPSu8tUhnVBB1iKXevvnlR4Ww==" + }, "js-yaml": { "version": "4.1.0", "resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-4.1.0.tgz", @@ -23663,6 +23856,37 @@ "argparse": "^2.0.1" } }, + "katex": { + "version": "0.13.24", + "resolved": "https://registry.npmjs.org/katex/-/katex-0.13.24.tgz", + "integrity": "sha512-jZxYuKCma3VS5UuxOx/rFV1QyGSl3Uy/i0kTJF3HgQ5xMinCQVF8Zd4bMY/9aI9b9A2pjIBOsjSSm68ykTAr8w==", + "requires": { + "commander": "^8.0.0" + } + }, + "mdast-util-definitions": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/mdast-util-definitions/-/mdast-util-definitions-3.0.1.tgz", + "integrity": "sha512-BAv2iUm/e6IK/b2/t+Fx69EL/AGcq/IG2S+HxHjDJGfLJtd6i9SZUS76aC9cig+IEucsqxKTR0ot3m933R3iuA==", + "requires": { + "unist-util-visit": "^2.0.0" + } + }, + "mdast-util-to-hast": { + "version": "9.1.2", + "resolved": "https://registry.npmjs.org/mdast-util-to-hast/-/mdast-util-to-hast-9.1.2.tgz", + "integrity": "sha512-OpkFLBC2VnNAb2FNKcKWu9FMbJhQKog+FCT8nuKmQNIKXyT1n3SIskE7uWDep6x+cA20QXlK5AETHQtYmQmxtQ==", + "requires": { + "@types/mdast": "^3.0.0", + "@types/unist": "^2.0.0", + "mdast-util-definitions": "^3.0.0", + "mdurl": "^1.0.0", + "unist-builder": "^2.0.0", + "unist-util-generated": "^1.0.0", + "unist-util-position": "^3.0.0", + "unist-util-visit": "^2.0.0" + } + }, "readdirp": { "version": "3.6.0", "resolved": "https://registry.npmjs.org/readdirp/-/readdirp-3.6.0.tgz", @@ -23670,13 +23894,34 @@ "requires": { "picomatch": "^2.2.1" } + }, + "rehype-katex": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/rehype-katex/-/rehype-katex-5.0.0.tgz", + "integrity": "sha512-ksSuEKCql/IiIadOHiKRMjypva9BLhuwQNascMqaoGLDVd0k2NlE2wMvgZ3rpItzRKCd6vs8s7MFbb8pcR0AEg==", + "requires": { + "@types/katex": "^0.11.0", + "hast-util-to-text": "^2.0.0", + "katex": "^0.13.0", + "rehype-parse": "^7.0.0", + "unified": "^9.0.0", + "unist-util-visit": "^2.0.0" + } + }, + "remark-rehype": { + "version": "7.0.0", + "resolved": "https://registry.npmjs.org/remark-rehype/-/remark-rehype-7.0.0.tgz", + "integrity": "sha512-uqQ/VbaTdxyu/da6npHAso6hA00cMqhA3a59RziQdOLN2KEIkPykAVy52IcmZEVTuauXO0VtpxkyCey4phtHzQ==", + "requires": { + "mdast-util-to-hast": "^9.1.0" + } } } }, "@hashicorp/react-docs-sidenav": { - "version": "8.4.0", - "resolved": "https://registry.npmjs.org/@hashicorp/react-docs-sidenav/-/react-docs-sidenav-8.4.0.tgz", - "integrity": "sha512-r2yFLuAD4+9RbPvBzWwcv7b9wrk1MooUJJMdLFP6WUUPYxt3r0Jju6/y4CubVUwtDnNCe3iqo3KoRmWrfNSS0Q==", + "version": "8.4.1", + "resolved": "https://registry.npmjs.org/@hashicorp/react-docs-sidenav/-/react-docs-sidenav-8.4.1.tgz", + "integrity": "sha512-X7J19jCrcYiZEa7/ApMn6R5LFmDymJC1/sHSXpaMcXDIW5DD+H0DRYwJKVUPgdJDWhjZ5PXXWeDJTOKcQWBNog==", "requires": { "@hashicorp/platform-product-meta": "^0.1.0", "@hashicorp/react-link-wrap": "^3.0.3", @@ -23819,9 +24064,9 @@ } }, "@hashicorp/react-search": { - "version": "6.1.1", - "resolved": "https://registry.npmjs.org/@hashicorp/react-search/-/react-search-6.1.1.tgz", - "integrity": "sha512-azaXjFP/om+DN6InI/WD+qH9jmLE3/9pqIc2Dp4rYY/tn1KuWyJ5MefvcsbYxIFUVX/wiT2n+8HZFwRfxhdA+w==", + "version": "6.4.0", + "resolved": "https://registry.npmjs.org/@hashicorp/react-search/-/react-search-6.4.0.tgz", + "integrity": "sha512-ITAvD5QEc+B79VTYC27kdx0P1ynGFPUwed1ttUxlAIhvzasWjKeM6sS1rT8oFF+QcUZqoE7rKq7Y8k53sAB2Lw==", "requires": { "@hashicorp/react-inline-svg": "^6.0.1", "@hashicorp/remark-plugins": "^3.1.1", @@ -23866,11 +24111,11 @@ } }, "@hashicorp/react-select-input": { - "version": "4.0.3", - "resolved": "https://registry.npmjs.org/@hashicorp/react-select-input/-/react-select-input-4.0.3.tgz", - "integrity": "sha512-HN7uy2acXOCNE2cz844da0V8JHesnCLjKXis7/n+PB9O6wLfSYblWYPoPLEPx83Ph0dQfAtUT8dsJ9v6S2TSiw==", + "version": "4.0.5", + "resolved": "https://registry.npmjs.org/@hashicorp/react-select-input/-/react-select-input-4.0.5.tgz", + "integrity": "sha512-iN7iq7HZTQh3sa3LViuXbS84Si5hL6eWOqXd4DHfWYcZuuwping88l8SwwPWtqr+HVDcFsRixpVuvOCwgQSX0Q==", "requires": { - "classnames": "^2.2.6", + "classnames": "^2.3.1", "downshift": "3.1.5" } }, @@ -23945,9 +24190,9 @@ "requires": {} }, "@hashicorp/react-version-select": { - "version": "0.2.1", - "resolved": "https://registry.npmjs.org/@hashicorp/react-version-select/-/react-version-select-0.2.1.tgz", - "integrity": "sha512-E7BW4FotIYq1S5d/GrUPH2NvXmzYmeNpM01wNThDEbes47RfT8nzN3dg64QOUdCvWoUcUaOlGMQHNychBTif2g==", + "version": "0.3.0", + "resolved": "https://registry.npmjs.org/@hashicorp/react-version-select/-/react-version-select-0.3.0.tgz", + "integrity": "sha512-wd708z+ftdUkK+jKBLFHdHE3U4a0g37LTOxH9X68LzFDWPUT9gTAI5dPEfT0Os/DeJxWcRvUoaS8Fbtd7SQPmg==", "requires": { "@hashicorp/react-select-input": ">=4.x" } @@ -28173,9 +28418,9 @@ "integrity": "sha512-xJuoT5+L99XlZ8twedaRf6Ax2TgQVxvgZOYoPKqZufmJib0tL2tegPBOZb1pVNgIhlqDlA0eO0c3wBvQcmzx4w==" }, "fast-equals": { - "version": "2.0.3", - "resolved": "https://registry.npmjs.org/fast-equals/-/fast-equals-2.0.3.tgz", - "integrity": "sha512-0EMw4TTUxsMDpDkCg0rXor2gsg+npVrMIHbEhvD0HZyIhUX6AktC/yasm+qKwfyswd06Qy95ZKk8p2crTo0iPA==" + "version": "2.0.4", + "resolved": "https://registry.npmjs.org/fast-equals/-/fast-equals-2.0.4.tgz", + "integrity": "sha512-caj/ZmjHljPrZtbzJ3kfH5ia/k4mTJe/qSiXAGzxZWRZgsgDV0cvNaQULqUX8t0/JVlzzEdYOwCN5DmzTxoD4w==" }, "fast-glob": { "version": "3.2.7", diff --git a/website/package.json b/website/package.json index 77ca877b2ea..ab400224195 100644 --- a/website/package.json +++ b/website/package.json @@ -15,7 +15,7 @@ "@hashicorp/react-button": "^6.0.1", "@hashicorp/react-command-line-terminal": "^2.0.4", "@hashicorp/react-consent-manager": "^7.0.3", - "@hashicorp/react-docs-page": "^14.4.2", + "@hashicorp/react-docs-page": "^14.13.0", "@hashicorp/react-hashi-stack-menu": "^2.1.2", "@hashicorp/react-head": "^3.1.2", "@hashicorp/react-inline-svg": "^6.0.3", diff --git a/website/pages/docs/[[...page]].jsx b/website/pages/docs/[[...page]].jsx index 78c223c0bd1..a4b4e5a3909 100644 --- a/website/pages/docs/[[...page]].jsx +++ b/website/pages/docs/[[...page]].jsx @@ -5,10 +5,7 @@ import BadgesHeader from 'components/badges-header' import PluginBadge from 'components/plugin-badge' import Checklist from 'components/checklist' // Imports below are only used server-side -import { - generateStaticPaths, - generateStaticProps, -} from '@hashicorp/react-docs-page/server' +import { getStaticGenerationFunctions } from '@hashicorp/react-docs-page/server' // Configure the docs path and remote plugin docs loading const additionalComponents = { Badge, BadgesHeader, PluginBadge, Checklist } @@ -18,7 +15,7 @@ const mainBranch = 'master' const navDataFile = 'data/docs-nav-data.json' const product = { name: productName, slug: productSlug } -function DocsLayout({ isDevMissingRemotePlugins, ...props }) { +export default function DocsLayout({ isDevMissingRemotePlugins, ...props }) { return ( = ({ product={product} // @ts-expect-error staticProps={props} + showVersionSelect={false} /> ) From 3f0a09de0c39d9a0261a59dcf7ac260cfe41a272 Mon Sep 17 00:00:00 2001 From: Wilken Rivera Date: Fri, 14 Jan 2022 15:22:13 -0500 Subject: [PATCH 03/88] Update CHANGELOG --- CHANGELOG.md | 23 ++++++++++++++++++++--- 1 file changed, 20 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index a0c0bafe69e..fd40649b7fb 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,13 +5,16 @@ * HCP Packer compatible plugins now contain a "HCP Packer Ready" badge on their respective documentation pages. [GH-11456](https://github.com/hashicorp/packer/pull/11456) +* Packer core [documentation](https://packer.io/docs) now supports versioning + on Packer.io. Users can select documentation for the version of Packer + they are using. [GH-11434](https://github.com/hashicorp/packer/pull/11434) * The `hcp_packer_registry.labels` argument has been deprecated in favor of the new `bucket_labels` argument to support custom user generated bucket labels. [GH-11401](https://github.com/hashicorp/packer/pull/11401) * The code of the Outscale builder was handed over to the outscale org [GH-11428](https://github.com/hashicorp/packer/pull/11428) -* Version information for external plugins is available on the plugin - docs. [GH-11457](https://github.com/hashicorp/packer/pull/11457) +* Version information for external plugins is available on the plugin docs. + [GH-11457](https://github.com/hashicorp/packer/pull/11457) ### IMPROVEMENTS: @@ -28,19 +31,33 @@ [GH-11421](https://github.com/hashicorp/packer/pull/11421) * core/website: Add HCP Packer Ready badge to support plugins. [GH-11456](https://github.com/hashicorp/packer/pull/11456) +* core/website: Add Packer version selection toggle to core documentation page. + [GH-11434](https://github.com/hashicorp/packer/pull/11434) * core/website: Add version information to external plugin docs. [GH-11456](https://github.com/hashicorp/packer/pull/11456) +* core/website: Extract external plugins documentation from `packer.io/docs/` + into `packer.io/plugins`. + [GH-11464](https://github.com/hashicorp/packer/pull/11464) +* core: Add Packer user agent information to HCP Packer client requests. + [GH-11455](https://github.com/hashicorp/packer/pull/11455) * core: Bump github.com/hashicorp/packer-plugin-sdk from 0.2.9 to 0.2.11 to prevent HCP Packer builds from failing when no SourceImageID is provided.[GH-11459](https://github.com/hashicorp/packer/pull/11459) +* core: Bump to latest preview version of hashicorp/hcp-sdk-go to prevent HCP + Packer builds from trying to update a revoked iteration. + [GH-11492](https://github.com/hashicorp/packer/pull/11492) * provisioner/powwershell: Tiny tweaks and fixes for the PowerShell provisioner. [GH-11410](https://github.com/hashicorp/packer/pull/11410) ### BUG FIXES: -* core: HCP Packer builds containing metadata not expected by Packer core will no longer fail the build [GH-11458](https://github.com/hashicorp/packer/pull/11458) * core/hcl2: Fix crash when a provisioner `timeout` argument is not properly formatted. [GH-11382](https://github.com/hashicorp/packer/pull/11382) +* core: Allow the use of `build.name` for naming provisioners and post- + processors. [GH-11432](https://github.com/hashicorp/packer/pull/11432) +* core: HCP Packer builds containing metadata not expected by Packer core will + no longer fail the build + [GH-11458](https://github.com/hashicorp/packer/pull/11458) * provisioner/file: File provisioner will now perform a noop when no source file content is specified; previously missing content resulted in a hard fail. [GH-11349](https://github.com/hashicorp/packer/pull/11349) From ce32c2a1576ba60231795c34e0b359b534d224b1 Mon Sep 17 00:00:00 2001 From: Adrien Delorme Date: Mon, 17 Jan 2022 14:06:32 +0100 Subject: [PATCH 04/88] up plugin azure and go mod tidy (#11499) --- go.mod | 9 ++++----- go.sum | 16 +++++++++------- 2 files changed, 13 insertions(+), 12 deletions(-) diff --git a/go.mod b/go.mod index a6ac69dde36..69a0c037b7b 100644 --- a/go.mod +++ b/go.mod @@ -47,7 +47,7 @@ require ( github.com/ulikunitz/xz v0.5.10 github.com/zclconf/go-cty v1.10.0 github.com/zclconf/go-cty-yaml v1.0.1 - golang.org/x/crypto v0.0.0-20210817164053-32db794688a5 // indirect + golang.org/x/crypto v0.0.0-20210921155107-089bfa567519 // indirect golang.org/x/mod v0.5.0 golang.org/x/net v0.0.0-20210902165921-8d991716f632 golang.org/x/oauth2 v0.0.0-20211005180243-6b3c2da341f1 @@ -64,7 +64,7 @@ require ( github.com/caarlos0/env/v6 v6.7.2 github.com/hashicorp/packer-plugin-alicloud v1.0.1 github.com/hashicorp/packer-plugin-ansible v1.0.1 - github.com/hashicorp/packer-plugin-azure v1.0.4 + github.com/hashicorp/packer-plugin-azure v1.0.5 github.com/hashicorp/packer-plugin-chef v1.0.2 github.com/hashicorp/packer-plugin-cloudstack v1.0.0 github.com/hashicorp/packer-plugin-converge v1.0.1 @@ -107,7 +107,7 @@ require ( github.com/Azure/azure-sdk-for-go v55.7.0+incompatible // indirect github.com/Azure/go-autorest v14.2.0+incompatible // indirect github.com/Azure/go-autorest/autorest v0.11.19 // indirect - github.com/Azure/go-autorest/autorest/adal v0.9.14 // indirect + github.com/Azure/go-autorest/autorest/adal v0.9.18 // indirect github.com/Azure/go-autorest/autorest/azure/auth v0.4.2 // indirect github.com/Azure/go-autorest/autorest/azure/cli v0.4.2 // indirect github.com/Azure/go-autorest/autorest/date v0.3.0 // indirect @@ -150,7 +150,6 @@ require ( github.com/dylanmei/iso8601 v0.1.0 // indirect github.com/emirpasic/gods v1.12.0 // indirect github.com/fatih/color v1.12.0 // indirect - github.com/form3tech-oss/jwt-go v3.2.2+incompatible // indirect github.com/ghodss/yaml v1.0.0 // indirect github.com/go-git/gcfg v1.5.0 // indirect github.com/go-git/go-billy/v5 v5.3.1 // indirect @@ -170,7 +169,7 @@ require ( github.com/gofrs/uuid v4.0.0+incompatible // indirect github.com/golang-collections/collections v0.0.0-20130729185459-604e922904d3 // indirect github.com/golang-jwt/jwt v3.2.2+incompatible // indirect - github.com/golang-jwt/jwt/v4 v4.1.0 // indirect + github.com/golang-jwt/jwt/v4 v4.2.0 // indirect github.com/golang/protobuf v1.5.2 // indirect github.com/golang/snappy v0.0.4 // indirect github.com/google/shlex v0.0.0-20191202100458-e7afc7fbc510 // indirect diff --git a/go.sum b/go.sum index 3ed80659454..4146a868670 100644 --- a/go.sum +++ b/go.sum @@ -68,8 +68,8 @@ github.com/Azure/go-autorest/autorest/adal v0.8.0/go.mod h1:Z6vX6WXXuyieHAXwMj0S github.com/Azure/go-autorest/autorest/adal v0.8.1/go.mod h1:ZjhuQClTqx435SRJ2iMlOxPYt3d2C/T/7TiQCVZSn3Q= github.com/Azure/go-autorest/autorest/adal v0.9.5/go.mod h1:B7KF7jKIeC9Mct5spmyCB/A8CG/sEz1vwIRGv/bbw7A= github.com/Azure/go-autorest/autorest/adal v0.9.13/go.mod h1:W/MM4U6nLxnIskrw4UwWzlHfGjwUS50aOsc/I3yuU8M= -github.com/Azure/go-autorest/autorest/adal v0.9.14 h1:G8hexQdV5D4khOXrWG2YuLCFKhWYmWD8bHYaXN5ophk= -github.com/Azure/go-autorest/autorest/adal v0.9.14/go.mod h1:W/MM4U6nLxnIskrw4UwWzlHfGjwUS50aOsc/I3yuU8M= +github.com/Azure/go-autorest/autorest/adal v0.9.18 h1:kLnPsRjzZZUF3K5REu/Kc+qMQrvuza2bwSnNdhmzLfQ= +github.com/Azure/go-autorest/autorest/adal v0.9.18/go.mod h1:XVVeme+LZwABT8K5Lc3hA4nAe8LDBVle26gTrguhhPQ= github.com/Azure/go-autorest/autorest/azure/auth v0.4.2 h1:iM6UAvjR97ZIeR93qTcwpKNMpV+/FTWjwEbuPD495Tk= github.com/Azure/go-autorest/autorest/azure/auth v0.4.2/go.mod h1:90gmfKdlmKgfjUpnCEpOJzsUEjrWDSLwHIG73tSXddM= github.com/Azure/go-autorest/autorest/azure/cli v0.3.1/go.mod h1:ZG5p860J94/0kI9mNJVoIoLgXcirM2gF5i2kWloofxw= @@ -310,7 +310,6 @@ github.com/fatih/color v1.12.0/go.mod h1:ELkj/draVOlAH/xkhN6mQ50Qd0MPOk5AAr3maGE github.com/fatih/structs v1.1.0/go.mod h1:9NiDSp5zOcgEDl+j00MP/WkGVPOlPRLejGD8Ga6PJ7M= github.com/fatih/structtag v1.2.0/go.mod h1:mBJUNpUnHmRKrKlQQlmCrh5PuhftFbNv8Ys4/aAZl94= github.com/flynn/go-shlex v0.0.0-20150515145356-3f9db97f8568/go.mod h1:xEzjJPgXI435gkrCt3MPfRiAkVrwSbHsst4LCFVfpJc= -github.com/form3tech-oss/jwt-go v3.2.2+incompatible h1:TcekIExNqud5crz4xD2pavyTgWiPvpYe4Xau31I0PRk= github.com/form3tech-oss/jwt-go v3.2.2+incompatible/go.mod h1:pbq4aXjuKjdthFRnoDwaVPLA+WlJuPGy+QneDUgJi2k= github.com/frankban/quicktest v1.10.0 h1:Gfh+GAJZOAoKZsIZeZbdn2JF10kN1XHNvjsvQK8gVkE= github.com/frankban/quicktest v1.10.0/go.mod h1:ui7WezCLWMWxVWr1GETZY3smRy0G4KWq9vcPtJmFl7Y= @@ -488,8 +487,10 @@ github.com/golang-collections/collections v0.0.0-20130729185459-604e922904d3 h1: github.com/golang-collections/collections v0.0.0-20130729185459-604e922904d3/go.mod h1:nPpo7qLxd6XL3hWJG/O60sR8ZKfMCiIoNap5GvD12KU= github.com/golang-jwt/jwt v3.2.2+incompatible h1:IfV12K8xAKAnZqdXVzCZ+TOjboZ2keLg81eXfW3O+oY= github.com/golang-jwt/jwt v3.2.2+incompatible/go.mod h1:8pz2t5EyA70fFQQSrl6XZXzqecmYZeUEB8OUGHkxJ+I= -github.com/golang-jwt/jwt/v4 v4.1.0 h1:XUgk2Ex5veyVFVeLm0xhusUTQybEbexJXrvPNOKkSY0= +github.com/golang-jwt/jwt/v4 v4.0.0/go.mod h1:/xlHOz8bRuivTWchD4jCa+NbatV+wEUSzwAxVc6locg= github.com/golang-jwt/jwt/v4 v4.1.0/go.mod h1:/xlHOz8bRuivTWchD4jCa+NbatV+wEUSzwAxVc6locg= +github.com/golang-jwt/jwt/v4 v4.2.0 h1:besgBTC8w8HjP6NzQdxwKH9Z5oQMZ24ThTrHp3cZ8eU= +github.com/golang-jwt/jwt/v4 v4.2.0/go.mod h1:/xlHOz8bRuivTWchD4jCa+NbatV+wEUSzwAxVc6locg= github.com/golang/glog v0.0.0-20160126235308-23def4e6c14b/go.mod h1:SBH7ygxi8pfUlaOkMMuAQtPIUF8ecWP5IEl/CR7VP2Q= github.com/golang/groupcache v0.0.0-20190129154638-5b532d6fd5ef/go.mod h1:cIg4eruTrX1D+g88fzRXU5OdNfaM+9IcxsU14FzY7Hc= github.com/golang/groupcache v0.0.0-20190702054246-869f871628b6/go.mod h1:cIg4eruTrX1D+g88fzRXU5OdNfaM+9IcxsU14FzY7Hc= @@ -709,8 +710,8 @@ github.com/hashicorp/packer-plugin-amazon v1.0.6 h1:NnepQ/y8fFpuvFe6FOdB8IXgrh7t github.com/hashicorp/packer-plugin-amazon v1.0.6/go.mod h1:AZu6u4f61jsqtpaYy1hzXDjnBMNicrGQBxiqEC2qSC8= github.com/hashicorp/packer-plugin-ansible v1.0.1 h1:iyZu3XrdBKGUlJ4SwPGMxE8epXZ8fxy11bEvxPBC02c= github.com/hashicorp/packer-plugin-ansible v1.0.1/go.mod h1:t59UyR2PL+rh0stn++wDrj3nTZ6uT/WbFakQonKV0is= -github.com/hashicorp/packer-plugin-azure v1.0.4 h1:T4XawZz5tMFPTNvJtJkLqsP4aeygJlsYQdb94iuRJMg= -github.com/hashicorp/packer-plugin-azure v1.0.4/go.mod h1:jyAEPwTKRdUPi4OPQH21cR/nRtWOoOQTIt1pcD1seoo= +github.com/hashicorp/packer-plugin-azure v1.0.5 h1:+ZOeYLkI4EGKKklTzwdYuEgFgwZ2u0PQ9tVIZZhkvfA= +github.com/hashicorp/packer-plugin-azure v1.0.5/go.mod h1:Ry3sZgp251r6l9AgLovy9pc03V6CeczFcgMbg68iW34= github.com/hashicorp/packer-plugin-chef v1.0.2 h1:hkVhBuglBc5wY4cNfFObW7hzJuT+VdWMAu/gQ9nDNOI= github.com/hashicorp/packer-plugin-chef v1.0.2/go.mod h1:RWNaO+NprfeW4mdZDAGaLPJE3hUR8f/poSw1MNTt+NA= github.com/hashicorp/packer-plugin-cloudstack v1.0.0 h1:TB2XbgaFZ88fJIoldNbCvKjGgaCa3uT2NqrpNrgaCTw= @@ -1234,8 +1235,9 @@ golang.org/x/crypto v0.0.0-20210220033148-5ea612d1eb83/go.mod h1:jdWPYTVW3xRLrWP golang.org/x/crypto v0.0.0-20210322153248-0c34fe9e7dc2/go.mod h1:T9bdIzuCu7OtxOm1hfPfRQxPLYneinmdGuTeoZ9dtd4= golang.org/x/crypto v0.0.0-20210415154028-4f45737414dc/go.mod h1:T9bdIzuCu7OtxOm1hfPfRQxPLYneinmdGuTeoZ9dtd4= golang.org/x/crypto v0.0.0-20210421170649-83a5a9bb288b/go.mod h1:T9bdIzuCu7OtxOm1hfPfRQxPLYneinmdGuTeoZ9dtd4= -golang.org/x/crypto v0.0.0-20210817164053-32db794688a5 h1:HWj/xjIHfjYU5nVXpTM0s39J9CbLn7Cc5a7IC5rwsMQ= golang.org/x/crypto v0.0.0-20210817164053-32db794688a5/go.mod h1:GvvjBRRGRdwPK5ydBHafDWAxML/pGHZbMvKqRZ5+Abc= +golang.org/x/crypto v0.0.0-20210921155107-089bfa567519 h1:7I4JAnoQBe7ZtJcBaYHi5UtiO8tQHbUSXxL+pnGRANg= +golang.org/x/crypto v0.0.0-20210921155107-089bfa567519/go.mod h1:GvvjBRRGRdwPK5ydBHafDWAxML/pGHZbMvKqRZ5+Abc= golang.org/x/exp v0.0.0-20190121172915-509febef88a4/go.mod h1:CJ0aWSM057203Lf6IL+f9T1iT9GByDxfZKAQTCR3kQA= golang.org/x/exp v0.0.0-20190306152737-a1d7652674e8/go.mod h1:CJ0aWSM057203Lf6IL+f9T1iT9GByDxfZKAQTCR3kQA= golang.org/x/exp v0.0.0-20190510132918-efd6b22b2522/go.mod h1:ZjyILWgesfNpC6sMxTJOJm9Kp84zZh5NQWvqDGG3Qr8= From 2e4cfb05c58aa614b5d2687b24e6d58e2871e08c Mon Sep 17 00:00:00 2001 From: Wilken Rivera Date: Tue, 18 Jan 2022 15:23:08 -0500 Subject: [PATCH 05/88] Update CHANGELOG (#11501) * Update CHANGELOG * add a link Co-authored-by: Adrien Delorme --- CHANGELOG.md | 46 ++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 46 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index fd40649b7fb..2361dbc8e63 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -16,6 +16,52 @@ * Version information for external plugins is available on the plugin docs. [GH-11457](https://github.com/hashicorp/packer/pull/11457) + +### PLUGINS: + +External plugins have been pinned to the following versions. Please see + their respective changelogs for details on plugin specific bug fixes and + improvements. + +* alicloud@v1.0.1 - [CHANGELOG](https://github.com/hashicorp/packer-plugin-alicloud/releases/tag/v1.0.1) +* amazon@v1.0.6 - [CHANGELOG](https://github.com/hashicorp/packer-plugin-amazon/releases/tag/v1.0.6) +* ansible@v1.0.1 - [CHANGELOG](https://github.com/hashicorp/packer-plugin-ansible/releases/tag/v1.0.1) +* azure@v1.0.4 - [CHANGELOG](https://github.com/hashicorp/packer-plugin-azure/releases/tag/v1.0.4) +* chef@v1.0.2 - [CHANGELOG](https://github.com/hashicorp/packer-plugin-chef/releases/tag/v1.0.2) +* cloudstack@v1.0.0 - [CHANGELOG](https://github.com/hashicorp/packer-plugin-cloudstack/releases/tag/v1.0.0) +* converge@v1.0.1 - [CHANGELOG](https://github.com/hashicorp/packer-plugin-converge/releases/tag/v1.0.1) +* digitalocean@v1.0.1 - [CHANGELOG](https://github.com/hashicorp/packer-plugin-digitalocean/releases/tag/v1.0.1) +* docker@v1.0.3 - [CHANGELOG](https://github.com/hashicorp/packer-plugin-docker/releases/tag/v1.0.3) +* googlecompute@v1.0.9 - [CHANGELOG](https://github.com/hashicorp/packer-plugin-googlecompute/releases/tag/v1.0.9) +* hcloud@v1.0.2 - [CHANGELOG](https://github.com/hashicorp/packer-plugin-hcloud/releases/tag/v1.0.2) +* hyperone@v1.0.0 - [CHANGELOG](https://github.com/hashicorp/packer-plugin-hyperone/releases/tag/v1.0.0) +* hyperv@v1.0.1 - [CHANGELOG](https://github.com/hashicorp/packer-plugin-hyperv/releases/tag/v1.0.1) +* inspec@v1.0.0 - [CHANGELOG](https://github.com/hashicorp/packer-plugin-inspec/releases/tag/v1.0.0) +* jdcloud@v1.0.0 - [CHANGELOG](https://github.com/hashicorp/packer-plugin-jdcloud/releases/tag/v1.0.0) +* linode@v1.0.1 - [CHANGELOG](https://github.com/hashicorp/packer-plugin-linode/releases/tag/v1.0.1) +* lxc@v1.0.0 - [CHANGELOG](https://github.com/hashicorp/packer-plugin-lxc/releases/tag/v1.0.0) +* lxd@v1.0.0 - [CHANGELOG](https://github.com/hashicorp/packer-plugin-lxd/releases/tag/v1.0.0) +* ncloud@v1.0.1 - [CHANGELOG](https://github.com/hashicorp/packer-plugin-ncloud/releases/tag/v1.0.1) +* oneandone@v1.0.0 - [CHANGELOG](https://github.com/hashicorp/packer-plugin-oneandone/releases/tag/v1.0.0) +* openstack@v1.0.0 - [CHANGELOG](https://github.com/hashicorp/packer-plugin-openstack/releases/tag/v1.0.0) +* oracle@v1.0.1 - [CHANGELOG](https://github.com/hashicorp/packer-plugin-oracle/releases/tag/v1.0.1) +* outscale@v1.0.2 - [CHANGELOG](https://github.com/hashicorp/packer-plugin-outscale/releases/tag/v1.0.2) +* parallels@v1.0.0 - [CHANGELOG](https://github.com/hashicorp/packer-plugin-parallels/releases/tag/v1.0.0) +* profitbricks@v1.0.1 - [CHANGELOG](https://github.com/hashicorp/packer-plugin-profitbricks/releases/tag/v1.0.1) +* proxmox@v1.0.4 - [CHANGELOG](https://github.com/hashicorp/packer-plugin-proxmox/releases/tag/v1.0.4) +* puppet@v1.0.1 - [CHANGELOG](https://github.com/hashicorp/packer-plugin-puppet/releases/tag/v1.0.1) +* qemu@v1.0.1 - [CHANGELOG](https://github.com/hashicorp/packer-plugin-qemu/releases/tag/v1.0.1) +* salt@v1.0.0 - [CHANGELOG](https://github.com/hashicorp/packer-plugin-salt/releases/tag/v1.0.0) +* tencentcloud@v1.0.3 - [CHANGELOG](https://github.com/hashicorp/packer-plugin-tencentcloud/releases/tag/v1.0.3) +* triton@v1.0.0 - [CHANGELOG](https://github.com/hashicorp/packer-plugin-triton/releases/tag/v1.0.0) +* ucloud@v1.0.0 - [CHANGELOG](https://github.com/hashicorp/packer-plugin-ucloud/releases/tag/v1.0.0) +* vagrant@v1.0.1 - [CHANGELOG](https://github.com/hashicorp/packer-plugin-vagrant/releases/tag/v1.0.1) +* virtualbox@v1.0.1 - [CHANGELOG](https://github.com/hashicorp/packer-plugin-virtualbox/releases/tag/v1.0.1) +* vmware@v1.0.5 - [CHANGELOG](https://github.com/hashicorp/packer-plugin-vmware/releases/tag/v1.0.5) +* vsphere@v1.0.2 - [CHANGELOG](https://github.com/hashicorp/packer-plugin-vsphere/releases/tag/v1.0.2) +* yandex@v1.0.3 - [CHANGELOG](https://github.com/hashicorp/packer-plugin-yandex/releases/tag/v1.0.3) +* scaleway@v1.0.4 - [CHANGELOG](https://github.com/scaleway/packer-plugin-scaleway/releases/tag/v1.0.4) + ### IMPROVEMENTS: * core/hcl2: Add `bucket_labels` argument to the `hcp_packer_registry` block to From e6b2e8c15b0058aacc8d7571b4539570897149ed Mon Sep 17 00:00:00 2001 From: Wilken Rivera Date: Tue, 18 Jan 2022 20:42:59 -0500 Subject: [PATCH 06/88] Update CHANGELOG --- CHANGELOG.md | 30 ++++++++++++++++-------------- 1 file changed, 16 insertions(+), 14 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 2361dbc8e63..7b43ecbba19 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,18 +2,19 @@ ### NOTES: -* HCP Packer compatible plugins now contain a "HCP Packer Ready" badge on their - respective documentation pages. +* HCP Packer compatible plugins will contain a "HCP Packer Ready" badge at the + top of on their documentation page. [GH-11456](https://github.com/hashicorp/packer/pull/11456) * Packer core [documentation](https://packer.io/docs) now supports versioning - on Packer.io. Users can select documentation for the version of Packer - they are using. [GH-11434](https://github.com/hashicorp/packer/pull/11434) + on Packer.io. Users can select documentation for the version of Packer they + are using. [GH-11434](https://github.com/hashicorp/packer/pull/11434) * The `hcp_packer_registry.labels` argument has been deprecated in favor of the new `bucket_labels` argument to support custom user generated bucket labels. [GH-11401](https://github.com/hashicorp/packer/pull/11401) * The code of the Outscale builder was handed over to the outscale org [GH-11428](https://github.com/hashicorp/packer/pull/11428) -* Version information for external plugins is available on the plugin docs. +* Version information for external plugins has been added as a badge to the + plugin documentation. [GH-11457](https://github.com/hashicorp/packer/pull/11457) @@ -75,11 +76,11 @@ External plugins have been pinned to the following versions. Please see * core/hcl2: Allow for the use of variables and locals within a `hcp_packer_registry` block. [GH-11421](https://github.com/hashicorp/packer/pull/11421) -* core/website: Add HCP Packer Ready badge to support plugins. +* core/website: Add HCP Packer Ready badge to supported plugins. [GH-11456](https://github.com/hashicorp/packer/pull/11456) -* core/website: Add Packer version selection toggle to core documentation page. - [GH-11434](https://github.com/hashicorp/packer/pull/11434) -* core/website: Add version information to external plugin docs. +* core/website: Add Packer version selection toggle to Packer core + documentation. [GH-11434](https://github.com/hashicorp/packer/pull/11434) +* core/website: Add version information to external plugin documentation. [GH-11456](https://github.com/hashicorp/packer/pull/11456) * core/website: Extract external plugins documentation from `packer.io/docs/` into `packer.io/plugins`. @@ -97,12 +98,12 @@ External plugins have been pinned to the following versions. Please see ### BUG FIXES: -* core/hcl2: Fix crash when a provisioner `timeout` argument is not properly +* core/hcl2: Allow the use of `build.name` for naming provisioners and + post-processors. [GH-11432](https://github.com/hashicorp/packer/pull/11432) +* core/hcl2: Fix crash when a provisioner `timeout` argument is improperly formatted. [GH-11382](https://github.com/hashicorp/packer/pull/11382) -* core: Allow the use of `build.name` for naming provisioners and post- - processors. [GH-11432](https://github.com/hashicorp/packer/pull/11432) -* core: HCP Packer builds containing metadata not expected by Packer core will - no longer fail the build +* core/hcl2: HCP Packer builds containing metadata not expected by Packer core + will no longer fail the build. [GH-11458](https://github.com/hashicorp/packer/pull/11458) * provisioner/file: File provisioner will now perform a noop when no source file content is specified; previously missing content resulted in a hard @@ -5068,3 +5069,4 @@ making changes for HCL2. ## 0.1.0 (June 28, 2013) * Initial release + From 5d1245c23159953b8e0a227fae1edaa93348c752 Mon Sep 17 00:00:00 2001 From: Wilken Rivera Date: Tue, 18 Jan 2022 20:58:39 -0500 Subject: [PATCH 07/88] Update CHANGELOG Add note for deprecated provisioner plugins --- CHANGELOG.md | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 7b43ecbba19..968eaf4034b 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -16,6 +16,12 @@ * Version information for external plugins has been added as a badge to the plugin documentation. [GH-11457](https://github.com/hashicorp/packer/pull/11457) +* The following unmaintained external provisioner plugins have been archived: chef, + converge, inspec, salt-masterless, puppet. More + information on what this deprecation means for users can be found on the + blog post - [Plans to Archive Unmaintained Provisioner + Plugins](https://www.hashicorp.com/blog/plans-to-archive-unmaintained- + packer- provisioner-plugins) ### PLUGINS: From 1d86f6311f46d73fd568c91c0d9c3e05bfc8ce77 Mon Sep 17 00:00:00 2001 From: Wilken Rivera Date: Tue, 18 Jan 2022 21:00:17 -0500 Subject: [PATCH 08/88] Update CHANGELOG.md Fix link to blog post --- CHANGELOG.md | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 968eaf4034b..ed5646b80f4 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -20,8 +20,7 @@ converge, inspec, salt-masterless, puppet. More information on what this deprecation means for users can be found on the blog post - [Plans to Archive Unmaintained Provisioner - Plugins](https://www.hashicorp.com/blog/plans-to-archive-unmaintained- - packer- provisioner-plugins) + Plugins](https://www.hashicorp.com/blog/plans-to-archive-unmaintained-packer-provisioner-plugins) ### PLUGINS: From 45beb94442715fe1117526a62b77ee204d36f01c Mon Sep 17 00:00:00 2001 From: Wilken Rivera Date: Wed, 19 Jan 2022 10:36:03 -0500 Subject: [PATCH 09/88] Update test client to use Org/Project ID from client; not environment variables (#11502) On a local developer machine there is a good chance the HCP_ORG_ID and HCP_PROJECT_ID are not set since the HCP Packer client can derive this information using the token/secret. This change initializes the location structure with the information obtained from the client and not the envs. Results of tests before change with no HCP_ORG_ID or HCP_PROJECT_ID set ``` par_test.go:185: (*packer_service.PackerServiceGetIterationOK)(nil) par_test.go:185: &{0 [] } (*models.GrpcGatewayRuntimeError) is not supported by the TextConsumer, can be resolved by supporting TextUnmarshaler interface --- FAIL: TestAcc_PAR_pkr_build (3.94s) FAIL FAIL github.com/hashicorp/packer/internal/registry/acctest 6.446s testing: warning: no tests to run PASS ok github.com/hashicorp/packer/internal/registry/env 0.318s [no tests to run] FAIL ``` Results of tests after change with no HCP_ORG_ID or HCP_PROJECT_ID set ``` 2022/01/18 12:23:48 ui: --> null.example: Published metadata to HCP Packer registry packer/pkr-acctest-temp-2/iterations/01FSQ3EPPY69PMXJSTTFYDPQ5R --- PASS: TestAcc_PAR_pkr_build (3.20s) PASS ok github.com/hashicorp/packer/internal/registry/acctest 5.121s testing: warning: no tests to run PASS ok github.com/hashicorp/packer/internal/registry/env 0.155s [no tests to run] ``` --- internal/registry/acctest/par.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/internal/registry/acctest/par.go b/internal/registry/acctest/par.go index 75a5f6553bf..da03088fb37 100644 --- a/internal/registry/acctest/par.go +++ b/internal/registry/acctest/par.go @@ -46,8 +46,8 @@ func NewTestConfig(t *testing.T) (*Config, error) { return &Config{ Client: cli, Loc: &sharedmodels.HashicorpCloudLocationLocation{ - OrganizationID: cfg.OrgId, - ProjectID: cfg.ProjectId, + OrganizationID: cli.OrganizationID, + ProjectID: cli.ProjectID, }, T: t, }, nil From d3cc584e8ac43057f99a7ec3f5d53d8b673f1204 Mon Sep 17 00:00:00 2001 From: packer-ci <62970560+packer-ci@users.noreply.github.com> Date: Wed, 19 Jan 2022 15:50:09 +0000 Subject: [PATCH 10/88] update changelog --- CHANGELOG.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index ed5646b80f4..2872c8d8e44 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,4 +1,4 @@ -## 1.7.9 (Upcoming) +## 1.7.9 (January 19, 2022) ### NOTES: From 418284afee38b385f5424b564b7eb7a8bc13ba73 Mon Sep 17 00:00:00 2001 From: packer-ci <62970560+packer-ci@users.noreply.github.com> Date: Wed, 19 Jan 2022 15:50:09 +0000 Subject: [PATCH 11/88] cut version 1.7.9 --- version/version.go | 2 +- website/data/version.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/version/version.go b/version/version.go index ad0b87e4678..f337b78f1f5 100644 --- a/version/version.go +++ b/version/version.go @@ -14,7 +14,7 @@ const Version = "1.7.9" // A pre-release marker for the version. If this is "" (empty string) // then it means that it is a final release. Otherwise, this is a pre-release // such as "dev" (in development), "beta", "rc1", etc. -const VersionPrerelease = "dev" +const VersionPrerelease = "" var PackerVersion *pluginVersion.PluginVersion diff --git a/website/data/version.js b/website/data/version.js index 1416dbab2de..23b378dceef 100644 --- a/website/data/version.js +++ b/website/data/version.js @@ -1 +1 @@ -export default '1.7.8' +export default '1.7.9' From a3f94fd3ddb8daec41b8c0943ca9a0229208bb64 Mon Sep 17 00:00:00 2001 From: packer-ci <62970560+packer-ci@users.noreply.github.com> Date: Wed, 19 Jan 2022 15:50:11 +0000 Subject: [PATCH 12/88] Cut version 1.7.9 From fd487b4d8b4e33fc0ebfec6241214c8931cec6f7 Mon Sep 17 00:00:00 2001 From: packer-ci <62970560+packer-ci@users.noreply.github.com> Date: Wed, 19 Jan 2022 17:10:10 +0000 Subject: [PATCH 13/88] Putting source back into Dev Mode --- CHANGELOG.md | 2 ++ version/version.go | 4 ++-- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 2872c8d8e44..c831e3a4493 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,5 @@ +## 1.7.10 (Upcoming) + ## 1.7.9 (January 19, 2022) ### NOTES: diff --git a/version/version.go b/version/version.go index f337b78f1f5..7024c5b621f 100644 --- a/version/version.go +++ b/version/version.go @@ -9,12 +9,12 @@ import ( var GitCommit string // The main version number that is being run at the moment. -const Version = "1.7.9" +const Version = "1.7.10" // A pre-release marker for the version. If this is "" (empty string) // then it means that it is a final release. Otherwise, this is a pre-release // such as "dev" (in development), "beta", "rc1", etc. -const VersionPrerelease = "" +const VersionPrerelease = "dev" var PackerVersion *pluginVersion.PluginVersion From 83a0bcf67aec7c5bef60f7d51539d771aa33b16f Mon Sep 17 00:00:00 2001 From: Bryce Kalow Date: Wed, 19 Jan 2022 12:05:08 -0600 Subject: [PATCH 14/88] chore: upgrade downloads page (#11504) --- website/package-lock.json | 50 ++++++++++++++++++++++++++------------- website/package.json | 2 +- 2 files changed, 35 insertions(+), 17 deletions(-) diff --git a/website/package-lock.json b/website/package-lock.json index 37fad351e0b..4373bedf493 100644 --- a/website/package-lock.json +++ b/website/package-lock.json @@ -24,7 +24,7 @@ "@hashicorp/react-head": "^3.1.2", "@hashicorp/react-inline-svg": "^6.0.3", "@hashicorp/react-markdown-page": "^1.4.3", - "@hashicorp/react-product-downloads-page": "^2.5.3", + "@hashicorp/react-product-downloads-page": "^2.7.0", "@hashicorp/react-product-features-list": "^5.0.0", "@hashicorp/react-search": "^6.1.1", "@hashicorp/react-section-header": "^5.0.4", @@ -2526,9 +2526,9 @@ } }, "node_modules/@hashicorp/react-product-downloads-page": { - "version": "2.5.3", - "resolved": "https://registry.npmjs.org/@hashicorp/react-product-downloads-page/-/react-product-downloads-page-2.5.3.tgz", - "integrity": "sha512-SY3sEM/xYZDbd7XSDaqkT4L+DVRdGJYPpF/0WRDHfR0PObf2zE+iqRjm2APaIACg32sAM1NIZPuc+oQv6vKq5A==", + "version": "2.7.0", + "resolved": "https://registry.npmjs.org/@hashicorp/react-product-downloads-page/-/react-product-downloads-page-2.7.0.tgz", + "integrity": "sha512-GAw+Ztq4Cr/GJ5kyL3HvpLzs2wtpTFrs0FGDp6TRXjAVgqgfqrQU3cJzthtwkvKAZBmgGmubpQf84bhtfgtvLA==", "dependencies": { "@hashicorp/platform-product-meta": "^0.1.0", "@hashicorp/react-button": "^6.0.0", @@ -3038,9 +3038,13 @@ "version": "11.1.3", "resolved": "https://registry.npmjs.org/@next/swc-darwin-arm64/-/swc-darwin-arm64-11.1.3.tgz", "integrity": "sha512-TwP4krjhs+uU9pesDYCShEXZrLSbJr78p12e7XnLBBaNf20SgWLlVmQUT9gX9KbWan5V0sUbJfmcS8MRNHgYuA==", - "cpu": ["arm64"], + "cpu": [ + "arm64" + ], "optional": true, - "os": ["darwin"], + "os": [ + "darwin" + ], "engines": { "node": ">= 10" } @@ -3049,9 +3053,13 @@ "version": "11.1.3", "resolved": "https://registry.npmjs.org/@next/swc-darwin-x64/-/swc-darwin-x64-11.1.3.tgz", "integrity": "sha512-ZSWmkg/PxccHFNUSeBdrfaH8KwSkoeUtewXKvuYYt7Ph0yRsbqSyNIvhUezDua96lApiXXq6EL2d1THfeWomvw==", - "cpu": ["x64"], + "cpu": [ + "x64" + ], "optional": true, - "os": ["darwin"], + "os": [ + "darwin" + ], "engines": { "node": ">= 10" } @@ -3060,9 +3068,13 @@ "version": "11.1.3", "resolved": "https://registry.npmjs.org/@next/swc-linux-x64-gnu/-/swc-linux-x64-gnu-11.1.3.tgz", "integrity": "sha512-PrTBN0iZudAuj4jSbtXcdBdmfpaDCPIneG4Oms4zcs93KwMgLhivYW082Mvlgx9QVEiRm7+RkFpIVtG/i7JitA==", - "cpu": ["x64"], + "cpu": [ + "x64" + ], "optional": true, - "os": ["linux"], + "os": [ + "linux" + ], "engines": { "node": ">= 10" } @@ -3071,9 +3083,13 @@ "version": "11.1.3", "resolved": "https://registry.npmjs.org/@next/swc-win32-x64-msvc/-/swc-win32-x64-msvc-11.1.3.tgz", "integrity": "sha512-mRwbscVjRoHk+tDY7XbkT5d9FCwujFIQJpGp0XNb1i5OHCSDO8WW/C9cLEWS4LxKRbIZlTLYg1MTXqLQkvva8w==", - "cpu": ["x64"], + "cpu": [ + "x64" + ], "optional": true, - "os": ["win32"], + "os": [ + "win32" + ], "engines": { "node": ">= 10" } @@ -8614,7 +8630,9 @@ "integrity": "sha512-xiqMQR4xAeHTuB9uWm+fFRcIOgKBMiOBP+eXiyT7jsgVCq1bkVygt00oASowB7EdtpOHaaPgKt812P9ab+DDKA==", "hasInstallScript": true, "optional": true, - "os": ["darwin"], + "os": [ + "darwin" + ], "engines": { "node": "^8.16.0 || ^10.6.0 || >=11.0.0" } @@ -24011,9 +24029,9 @@ "requires": {} }, "@hashicorp/react-product-downloads-page": { - "version": "2.5.3", - "resolved": "https://registry.npmjs.org/@hashicorp/react-product-downloads-page/-/react-product-downloads-page-2.5.3.tgz", - "integrity": "sha512-SY3sEM/xYZDbd7XSDaqkT4L+DVRdGJYPpF/0WRDHfR0PObf2zE+iqRjm2APaIACg32sAM1NIZPuc+oQv6vKq5A==", + "version": "2.7.0", + "resolved": "https://registry.npmjs.org/@hashicorp/react-product-downloads-page/-/react-product-downloads-page-2.7.0.tgz", + "integrity": "sha512-GAw+Ztq4Cr/GJ5kyL3HvpLzs2wtpTFrs0FGDp6TRXjAVgqgfqrQU3cJzthtwkvKAZBmgGmubpQf84bhtfgtvLA==", "requires": { "@hashicorp/platform-product-meta": "^0.1.0", "@hashicorp/react-button": "^6.0.0", diff --git a/website/package.json b/website/package.json index ab400224195..5904844a29b 100644 --- a/website/package.json +++ b/website/package.json @@ -20,7 +20,7 @@ "@hashicorp/react-head": "^3.1.2", "@hashicorp/react-inline-svg": "^6.0.3", "@hashicorp/react-markdown-page": "^1.4.3", - "@hashicorp/react-product-downloads-page": "^2.5.3", + "@hashicorp/react-product-downloads-page": "^2.7.0", "@hashicorp/react-product-features-list": "^5.0.0", "@hashicorp/react-search": "^6.1.1", "@hashicorp/react-section-header": "^5.0.4", From 6c713d1fd6e8b84936907de49b40d42224184827 Mon Sep 17 00:00:00 2001 From: Wilken Rivera Date: Mon, 24 Jan 2022 05:14:48 -0500 Subject: [PATCH 15/88] Add example of marking Vault values as sensitive variables (#11503) * Add example of marking Vault values as sensitive variables * Update website/content/docs/templates/hcl_templates/functions/contextual/vault.mdx --- .../functions/contextual/vault.mdx | 19 ++++++++++++++++++- 1 file changed, 18 insertions(+), 1 deletion(-) diff --git a/website/content/docs/templates/hcl_templates/functions/contextual/vault.mdx b/website/content/docs/templates/hcl_templates/functions/contextual/vault.mdx index 5d4a7a020b6..e818b61575c 100644 --- a/website/content/docs/templates/hcl_templates/functions/contextual/vault.mdx +++ b/website/content/docs/templates/hcl_templates/functions/contextual/vault.mdx @@ -41,7 +41,24 @@ locals { This example accesses the Vault path `secret/foo` and returns the value stored at the key `foo`, storing it as the local variable `local.foo`. -In order for this to work, you must set the environment variables `VAULT_TOKEN` +If the Vault secret contains a highly sensitive value the `local` block, not to be confused with +the `locals` block, can be used to mark the value as sensitive. + +```hcl +local "foo" { + expression = vault("secrets/hello", "foo") + sensitive = true +} + +The `local` block example accesses the Vault path `secrets/foo` and returns the value +stored at the key `foo`, storing it as the local variable `local.foo`. However, the output of +the newly stored local variable will be filtered from the Packer build output, and replaced +with the value ''. See [Local Values](/docs/templates/hcl_templates/locals) for more details. + + +## Usage + +In order for the Vault function to work, you must set the environment variables `VAULT_TOKEN` and `VAULT_ADDR` to valid values. -> **NOTE:** HCL functions can be used in local variable definitions or inline From f9606a13521c8e4efcfb291de6db180ba52e3cda Mon Sep 17 00:00:00 2001 From: Ethan Davidson Date: Mon, 24 Jan 2022 06:46:47 -0500 Subject: [PATCH 16/88] plugin manifest file has been renamed (#11508) --- website/content/docs/plugins/creation/index.mdx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/website/content/docs/plugins/creation/index.mdx b/website/content/docs/plugins/creation/index.mdx index f6e049fee1f..73b5dc99a64 100644 --- a/website/content/docs/plugins/creation/index.mdx +++ b/website/content/docs/plugins/creation/index.mdx @@ -262,7 +262,7 @@ The documentation structure needed for Packer.io can be generated manually, by c Once the first `docs.zip` file has been included into a release you will need to open a one time pull-request against [hashicorp/packer](https://github.com/hashicorp/packer) to register the plugin docs. -This is done by adding the block below for the respective plugin to the file [website/data/docs-remote-plugins.json](https://github.com/hashicorp/packer/blob/master/website/data/docs-remote-plugins.json). +This is done by adding the block below for the respective plugin to the file [website/data/plugins-manifest.json](https://github.com/hashicorp/packer/blob/master/website/data/plugins-manifest.json). ```json { @@ -288,7 +288,7 @@ Follow the next steps to get the Packer website running and preview the document - Get the [Packer source code](https://github.com/hashicorp/packer). Our website code is under the [website folder](https://github.com/hashicorp/packer/tree/master/website). - Generate the `docs.zip` file. You can find above the steps to do so. -- Add the `zipFile` attribute to the plugin entry in `docs-remote-plugins.json`. The value should be the full path of the `docs.zip` generated. For example: +- Add the `zipFile` attribute to the plugin entry in `plugins-manifest.json`. The value should be the full path of the `docs.zip` generated. For example: ```json { From ebcfd0cd8ecdfb2c15a41f80ddf39655313aeb7f Mon Sep 17 00:00:00 2001 From: Wilken Rivera Date: Mon, 24 Jan 2022 06:48:02 -0500 Subject: [PATCH 17/88] windows-restart: Update documentation for restart_check_command (#11507) Closes #11467 --- provisioner/windows-restart/provisioner.go | 5 +++-- website/content/docs/provisioners/windows-restart.mdx | 5 +++-- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/provisioner/windows-restart/provisioner.go b/provisioner/windows-restart/provisioner.go index c7761c7ff55..c98087063e6 100644 --- a/provisioner/windows-restart/provisioner.go +++ b/provisioner/windows-restart/provisioner.go @@ -40,8 +40,9 @@ type Config struct { // The command used to restart the guest machine RestartCommand string `mapstructure:"restart_command"` - // The command used to check if the guest machine has restarted - // The output of this command will be displayed to the user + // The command to run after executing `restart_command` to check if the guest machine has restarted. + // This command will retry until the connection to the guest machine has been restored or `restart_timeout` has exceeded. + // The output of this command will be displayed to the user. RestartCheckCommand string `mapstructure:"restart_check_command"` // The timeout for waiting for the machine to restart diff --git a/website/content/docs/provisioners/windows-restart.mdx b/website/content/docs/provisioners/windows-restart.mdx index c6c46b4c04c..9c78bced5ce 100644 --- a/website/content/docs/provisioners/windows-restart.mdx +++ b/website/content/docs/provisioners/windows-restart.mdx @@ -78,8 +78,9 @@ Optional parameters: - `restart_command` (string) - The command to execute to initiate the restart. By default this is `shutdown /r /f /t 0 /c "packer restart"`. -- `restart_check_command` (string) - A command to execute to check if the - restart succeeded. This will be done in a loop. Example usage: +- `restart_check_command` (string) - The command to run after executing `restart_command` + to check if the guest machine has restarted. This command will retry until the connection + to the guest machine has been restored or `restart_timeout` has exceeded. From 19bb4a9110cad98215add4b4a06060536e9cc57a Mon Sep 17 00:00:00 2001 From: Zachary Shilton <4624598+zchsh@users.noreply.github.com> Date: Mon, 24 Jan 2022 10:38:24 -0500 Subject: [PATCH 18/88] website: link plugin version badges (#11513) --- website/components/badge/index.tsx | 7 +++++-- website/components/remote-plugin-docs/server.js | 8 ++++++-- 2 files changed, 11 insertions(+), 4 deletions(-) diff --git a/website/components/badge/index.tsx b/website/components/badge/index.tsx index 358085806b3..313a259ef14 100644 --- a/website/components/badge/index.tsx +++ b/website/components/badge/index.tsx @@ -9,18 +9,21 @@ interface BadgeProps { label: string iconSvg?: string theme?: BadgeTheme + href?: string } function Badge({ theme = 'gray', label, iconSvg, + href, }: BadgeProps): React.ReactElement { + const Elem = href ? 'a' : 'div' return ( -
+ {iconSvg ? : null} {label} -
+ ) } diff --git a/website/components/remote-plugin-docs/server.js b/website/components/remote-plugin-docs/server.js index 04230c9bafc..7845e6ce6de 100644 --- a/website/components/remote-plugin-docs/server.js +++ b/website/components/remote-plugin-docs/server.js @@ -69,9 +69,13 @@ async function generateStaticProps({ if (pluginData?.isHcpPackerReady) { badgesMdx.push(``) } - // Add badge showing the latest release version number + // Add badge showing the latest release version number, + // and link this badge to the latest release if (latestReleaseTag) { - badgesMdx.push(``) + const href = `https://github.com/${pluginData.repo}/releases/tag/${latestReleaseTag}` + badgesMdx.push( + `` + ) } // If we have badges to add, inject them into the MDX if (badgesMdx.length > 0) { From 93c4b993e8abbd2f3d15611971ac225a07c5310b Mon Sep 17 00:00:00 2001 From: Dylan Staley <88163+dstaley@users.noreply.github.com> Date: Wed, 26 Jan 2022 01:46:42 -0800 Subject: [PATCH 19/88] feat: display warning in IE 11 (#11528) --- website/pages/_document.js | 2 +- website/public/ie-custom-properties.js | 639 ------------------------- website/public/ie-warning.js | 40 ++ 3 files changed, 41 insertions(+), 640 deletions(-) delete mode 100644 website/public/ie-custom-properties.js create mode 100644 website/public/ie-warning.js diff --git a/website/pages/_document.js b/website/pages/_document.js index 43130228999..7d7c349a79a 100644 --- a/website/pages/_document.js +++ b/website/pages/_document.js @@ -14,7 +14,7 @@ export default class MyDocument extends Document {