From 26da9b46e52212846e30c4d72fdf58675ea81341 Mon Sep 17 00:00:00 2001 From: Timo Stamm Date: Thu, 12 Sep 2024 16:13:45 +0200 Subject: [PATCH] V2: Remove Node10 subpath fallbacks Signed-off-by: Timo Stamm --- packages/connect/package.json | 3 ++- packages/connect/protocol-connect.js | 16 ---------------- packages/connect/protocol-grpc-web.js | 16 ---------------- packages/connect/protocol-grpc.js | 16 ---------------- packages/connect/protocol.js | 16 ---------------- 5 files changed, 2 insertions(+), 65 deletions(-) delete mode 100644 packages/connect/protocol-connect.js delete mode 100644 packages/connect/protocol-grpc-web.js delete mode 100644 packages/connect/protocol-grpc.js delete mode 100644 packages/connect/protocol.js diff --git a/packages/connect/package.json b/packages/connect/package.json index 919c94fc2..fc9500538 100644 --- a/packages/connect/package.json +++ b/packages/connect/package.json @@ -12,9 +12,10 @@ "generate": "buf generate", "postgenerate": "license-header src/protocol-grpc/gen", "prebuild": "rm -rf ./dist/*", - "build": "npm run build:cjs && npm run build:esm && node scripts/update-user-agent.mjs", + "build": "npm run build:cjs && npm run build:esm", "build:cjs": "tsc --project tsconfig.json --module commonjs --verbatimModuleSyntax false --moduleResolution node10 --outDir ./dist/cjs --declaration --declarationDir ./dist/cjs && echo >./dist/cjs/package.json '{\"type\":\"commonjs\"}'", "build:esm": "tsc --project tsconfig.json --outDir ./dist/esm --declaration --declarationDir ./dist/esm", + "postbuild": "node scripts/update-user-agent.mjs", "test": "jasmine --config=jasmine.json", "format": "prettier --write --ignore-unknown '.' '!dist' '!src/protocol-grpc/gen'", "license-header": "license-header", diff --git a/packages/connect/protocol-connect.js b/packages/connect/protocol-connect.js deleted file mode 100644 index 14a3b540a..000000000 --- a/packages/connect/protocol-connect.js +++ /dev/null @@ -1,16 +0,0 @@ -// Copyright 2021-2024 The Connect Authors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -// Workaround for bundlers that do not support subpath exports. -module.exports = require("./dist/cjs/protocol-connect/index.js"); diff --git a/packages/connect/protocol-grpc-web.js b/packages/connect/protocol-grpc-web.js deleted file mode 100644 index d230ff2b9..000000000 --- a/packages/connect/protocol-grpc-web.js +++ /dev/null @@ -1,16 +0,0 @@ -// Copyright 2021-2024 The Connect Authors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -// workaround for bundlers that do not support subpath exports. -module.exports = require("./dist/cjs/protocol-grpc-web/index.js"); diff --git a/packages/connect/protocol-grpc.js b/packages/connect/protocol-grpc.js deleted file mode 100644 index 4ba5dd931..000000000 --- a/packages/connect/protocol-grpc.js +++ /dev/null @@ -1,16 +0,0 @@ -// Copyright 2021-2024 The Connect Authors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -// workaround for bundlers that do not support subpath exports. -module.exports = require("./dist/cjs/protocol-grpc/index.js"); diff --git a/packages/connect/protocol.js b/packages/connect/protocol.js deleted file mode 100644 index fc83d1ff5..000000000 --- a/packages/connect/protocol.js +++ /dev/null @@ -1,16 +0,0 @@ -// Copyright 2021-2024 The Connect Authors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -// workaround for bundlers that do not support subpath exports. -module.exports = require("./dist/cjs/protocol/index.js");