From f9937d3aeffe9d55aac350b78bbf5fdb420e3c6f Mon Sep 17 00:00:00 2001 From: Jonathan Budzenski Date: Thu, 21 Oct 2021 16:11:12 -0500 Subject: [PATCH] Remove deprecation allowance for rmdir recursive This bumps synthetics to 1.0.0 beta 16, letting us remove the ignored warning for fs.rmdir(path, { recursive: true}) --- package.json | 2 +- src/setup_node_env/exit_on_warning.js | 6 ------ yarn.lock | 8 ++++---- 3 files changed, 5 insertions(+), 11 deletions(-) diff --git a/package.json b/package.json index 3df7b65315a8..83100e0f35fe 100644 --- a/package.json +++ b/package.json @@ -435,7 +435,7 @@ "@elastic/eslint-plugin-eui": "0.0.2", "@elastic/github-checks-reporter": "0.0.20b3", "@elastic/makelogs": "^6.0.0", - "@elastic/synthetics": "^1.0.0-beta.12", + "@elastic/synthetics": "^1.0.0-beta.16", "@emotion/babel-preset-css-prop": "^11.2.0", "@emotion/jest": "^11.3.0", "@istanbuljs/schema": "^0.1.2", diff --git a/src/setup_node_env/exit_on_warning.js b/src/setup_node_env/exit_on_warning.js index 998dd02a6bff..5e7bae8254c0 100644 --- a/src/setup_node_env/exit_on_warning.js +++ b/src/setup_node_env/exit_on_warning.js @@ -39,12 +39,6 @@ var IGNORE_WARNINGS = [ name: 'DeprecationWarning', code: 'DEP0148', }, - // In future versions of Node.js, fs.rmdir(path, { recursive: true }) will be removed. - // Remove after https://github.com/elastic/synthetics/pull/390 - { - name: 'DeprecationWarning', - code: 'DEP0147', - }, { // TODO: @elastic/es-clients - The new client will attempt a Product check and it will `process.emitWarning` // that the security features are blocking such check. diff --git a/yarn.lock b/yarn.lock index 86c4c9801f56..d44b19926ab6 100644 --- a/yarn.lock +++ b/yarn.lock @@ -2554,10 +2554,10 @@ history "^4.9.0" qs "^6.7.0" -"@elastic/synthetics@^1.0.0-beta.12": - version "1.0.0-beta.13" - resolved "https://registry.yarnpkg.com/@elastic/synthetics/-/synthetics-1.0.0-beta.13.tgz#84b3353b6bfff5623613016d8ed3d47e48ed17ea" - integrity sha512-CXpdfq/E6sVwDU6aGkH9mvcBPimQvR3/2QfBS5U4J58145m7YRPhJzaPJqXVApKomYcE/yzN49zOTIDsMcdOkg== +"@elastic/synthetics@^1.0.0-beta.16": + version "1.0.0-beta.16" + resolved "https://registry.yarnpkg.com/@elastic/synthetics/-/synthetics-1.0.0-beta.16.tgz#3d670cf29019e2be356592f2a7871594a3b0ce68" + integrity sha512-Ke8MO1lbddZjncPuY2IzZ1qKwePVD1hn9JtSUMv+7zJmczasrqcDKS2QCeFdt12kvFNe/IE60PStwfc9AD7j9w== dependencies: commander "^7.0.0" deepmerge "^4.2.2"