From c6be04f3443fca8600c8c700762b4eb5ce3a8fdd Mon Sep 17 00:00:00 2001 From: Jonathan Holmes Date: Sun, 1 Oct 2023 16:25:18 +1300 Subject: [PATCH] v2.2 --- README.md | 3 ++- package-lock.json | 34 ++++++++++++++++---------------- package.json | 6 +++--- src/transform/macros/call/env.ts | 2 +- 4 files changed, 23 insertions(+), 22 deletions(-) diff --git a/README.md b/README.md index 1003bce..3f32cd2 100644 --- a/README.md +++ b/README.md @@ -67,7 +67,8 @@ Below is a matrix of versions to roblox-ts versions. This should be approximatel | roblox-ts | rbxts-transform-env | typescript | | -------------------- | ------------------- | ---------- | +| `2.2.0` | `2.2.0` (`latest`) | `~5.2.2` | | ` 2.1.x` | `2.1.0` (`beta`) | `~4.9.5` | -| ` 2.0.x` | `2.0.0` (`latest`) | `~4.8.2` | +| ` 2.0.x` | `2.0.0` | `~4.8.2` | | `≥ 1.3.0 && ≤ 1.3.3` | `1.1.0-ts4.5` | `~4.5.5` | | `= 1.2.9` | `1.1.0-ts4.4` | `~4.4` | diff --git a/package-lock.json b/package-lock.json index 042e40f..5e43e36 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,19 +1,19 @@ { "name": "rbxts-transform-env", - "version": "2.1.0-beta.2", + "version": "2.2.0", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "rbxts-transform-env", - "version": "2.1.0-beta.2", + "version": "2.2.0", "license": "MIT", "dependencies": { "chalk": "^4.1.1", "colors": "^1.4.0", "dotenv": "^8.2.0", - "ts-expose-internals": "=4.5.5", - "typescript": "~4.9.5" + "ts-expose-internals": "=5.2.2", + "typescript": "~5.2.2" }, "devDependencies": { "@rbxts/types": "^1.0.428", @@ -1641,9 +1641,9 @@ } }, "node_modules/ts-expose-internals": { - "version": "4.5.5", - "resolved": "https://registry.npmjs.org/ts-expose-internals/-/ts-expose-internals-4.5.5.tgz", - "integrity": "sha512-74hSsjdgUjMp6uKPUwVo7+pgTmFST3FDe/bQDp8GuaXy8LSKnbAmJvV+Pq7Drcp/B7jXKccmZS+OKE40Ab2PEg==" + "version": "5.2.2", + "resolved": "https://registry.npmjs.org/ts-expose-internals/-/ts-expose-internals-5.2.2.tgz", + "integrity": "sha512-HYknqnfn3hQcNV1a00Ag4Nv+LM5wv2hUDzLH2oh+utspiKafKYtRYdv7a/iNhtqbzRJVV3FgVYRNoWKA3AZ3Uw==" }, "node_modules/tslib": { "version": "1.14.1", @@ -1688,15 +1688,15 @@ } }, "node_modules/typescript": { - "version": "4.9.5", - "resolved": "https://registry.npmjs.org/typescript/-/typescript-4.9.5.tgz", - "integrity": "sha512-1FXk9E2Hm+QzZQ7z+McJiHL4NW1F2EzMu9Nq9i3zAaGqibafqYwCVU6WyWAuyQRRzOlxou8xZSyXLEN8oKj24g==", + "version": "5.2.2", + "resolved": "https://registry.npmjs.org/typescript/-/typescript-5.2.2.tgz", + "integrity": "sha512-mI4WrpHsbCIcwT9cF4FZvr80QUeKvsUsUvKDoR+X/7XHQH98xYD8YHZg7ANtz2GtZt/CBq2QJ0thkGJMHfqc1w==", "bin": { "tsc": "bin/tsc", "tsserver": "bin/tsserver" }, "engines": { - "node": ">=4.2.0" + "node": ">=14.17" } }, "node_modules/uri-js": { @@ -2943,9 +2943,9 @@ } }, "ts-expose-internals": { - "version": "4.5.5", - "resolved": "https://registry.npmjs.org/ts-expose-internals/-/ts-expose-internals-4.5.5.tgz", - "integrity": "sha512-74hSsjdgUjMp6uKPUwVo7+pgTmFST3FDe/bQDp8GuaXy8LSKnbAmJvV+Pq7Drcp/B7jXKccmZS+OKE40Ab2PEg==" + "version": "5.2.2", + "resolved": "https://registry.npmjs.org/ts-expose-internals/-/ts-expose-internals-5.2.2.tgz", + "integrity": "sha512-HYknqnfn3hQcNV1a00Ag4Nv+LM5wv2hUDzLH2oh+utspiKafKYtRYdv7a/iNhtqbzRJVV3FgVYRNoWKA3AZ3Uw==" }, "tslib": { "version": "1.14.1", @@ -2978,9 +2978,9 @@ "dev": true }, "typescript": { - "version": "4.9.5", - "resolved": "https://registry.npmjs.org/typescript/-/typescript-4.9.5.tgz", - "integrity": "sha512-1FXk9E2Hm+QzZQ7z+McJiHL4NW1F2EzMu9Nq9i3zAaGqibafqYwCVU6WyWAuyQRRzOlxou8xZSyXLEN8oKj24g==" + "version": "5.2.2", + "resolved": "https://registry.npmjs.org/typescript/-/typescript-5.2.2.tgz", + "integrity": "sha512-mI4WrpHsbCIcwT9cF4FZvr80QUeKvsUsUvKDoR+X/7XHQH98xYD8YHZg7ANtz2GtZt/CBq2QJ0thkGJMHfqc1w==" }, "uri-js": { "version": "4.4.0", diff --git a/package.json b/package.json index 84c41f6..6e2adaa 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "rbxts-transform-env", - "version": "2.1.0-beta.2", + "version": "2.2.0", "description": "Transformer for Roblox TypeScript compiler that allows getting values of process.env as string literals", "main": "out/index.js", "scripts": { @@ -23,8 +23,8 @@ "chalk": "^4.1.1", "colors": "^1.4.0", "dotenv": "^8.2.0", - "ts-expose-internals": "=4.5.5", - "typescript": "~4.9.5" + "ts-expose-internals": "=5.2.2", + "typescript": "~5.2.2" }, "devDependencies": { "@rbxts/types": "^1.0.428", diff --git a/src/transform/macros/call/env.ts b/src/transform/macros/call/env.ts index c385a9f..3ac4716 100644 --- a/src/transform/macros/call/env.ts +++ b/src/transform/macros/call/env.ts @@ -30,7 +30,7 @@ export const EnvCallAsStringMacro: CallMacro = { getSymbol(state: TransformState) { const envSymbol = state.symbolProvider.moduleFile?.envNamespace; assert(envSymbol, "Could not find env macro symbol"); - return [envSymbol.get("string"), envSymbol.get("expectString")]; + return envSymbol.get("string"); }, transform(state: TransformState, callExpression: ts.CallExpression) { const environment = state.environmentProvider;