Skip to content

Commit 1a4ffa0

Browse files
committed
Update package version to 0.1.14 and remove Deno environment checks from env.ts, simplifying the environment detection logic.
1 parent 2b811ef commit 1a4ffa0

File tree

2 files changed

+2
-12
lines changed

2 files changed

+2
-12
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@flexsurfer/reflex",
3-
"version": "0.1.13",
3+
"version": "0.1.14",
44
"license": "MIT",
55
"repository": {
66
"type": "git",

src/env.ts

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -11,12 +11,6 @@ declare const process: {
1111

1212
declare const __DEV__: boolean | undefined;
1313

14-
declare const Deno: {
15-
env: {
16-
get(key: string): string | undefined;
17-
};
18-
} | undefined;
19-
2014
/**
2115
* Checks if the current environment is development
2216
* Works across Node.js, React Native, Vite, and Deno
@@ -25,8 +19,4 @@ export const IS_DEV: boolean =
2519
// Node.js check
2620
(typeof process !== 'undefined' && process.env?.NODE_ENV === 'development') ||
2721
// React Native / bundler check
28-
(typeof __DEV__ !== 'undefined' && __DEV__) ||
29-
// Vite check
30-
(globalThis as any).import?.meta?.env?.DEV === true ||
31-
// Deno check
32-
(typeof Deno !== 'undefined' && Deno.env.get('NODE_ENV') === 'development')
22+
(typeof __DEV__ !== 'undefined' && __DEV__)

0 commit comments

Comments
 (0)