Skip to content

Commit 2011362

Browse files
committed
exit on version check failing. Add to weekly update log
1 parent 3f4eea3 commit 2011362

File tree

2 files changed

+44
-3
lines changed

2 files changed

+44
-3
lines changed

WEEKLY_UPDATE_LOG.md

Lines changed: 41 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,47 @@ in the NAPI project on a weekly basis. It serves as a quick reference for team
55
members and users to stay informed about the project's progress and recent
66
developments.
77

8-
## Week of April 21-27, 2024
8+
## April 27th to May 16th, 2024
9+
10+
### Deno Migration & Performance Optimization
11+
12+
- Migrate from Node to Deno for improved performance and ease of development
13+
- Replaced Node.js dependencies with native Deno modules, reducing bundle size
14+
and performance
15+
- Migrated from Express to Oak framework (JSR:@oak/oak) for improved Deno
16+
compatibility
17+
- Eliminated external dependencies (uuid, express, http-proxy-middleware,
18+
octokit) for built-in Deno modules
19+
- Switched to JSR registry for standard libraries (@std/path@^1.0.9) to leverage
20+
Deno's ecosystem
21+
22+
### Build System & Deployment
23+
24+
- Change release from npm registry to Deno executables published on GitHub
25+
- Created convenience installation scripts
26+
- Streamlined GitHub Actions release workflow to reduce complexity and build
27+
times
28+
- Enhanced installation instructions in README to facilitate installation
29+
30+
### API & Development Experience
31+
32+
- Refactored version checking to use native fetch API with timeout control (5s)
33+
to prevent blocking the use of the tool when being rate limited by GitHub API
34+
- Updated version checking to check against our GitHub release instead of npm
35+
registry
36+
- Implemented platform-specific browser launching with Deno.Command for better
37+
cross-OS compatibility
38+
- Enhanced port detection using Deno's native networking APIs
39+
40+
### Frontend
41+
42+
- Improved API integration between frontend and backend components
43+
- Optimized frontend routing to work seamlessly with Oak middleware
44+
- Move from bare Radix UI component to more comprehensive Shadcn/UI component
45+
- Simplify some UX flow
46+
- Improve highlighting logic from the file explorer to the graph
47+
48+
## April 21st to 27th, 2024
949

1050
### Feature Improvements
1151

packages/cli/src/cli/helpers/checkVersion.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,11 +47,12 @@ Or you can download and install them manually from here:
4747
${data.html_url}
4848
`,
4949
);
50-
// Don't exit, just warn the user
50+
// Force the user to update to the latest version
51+
Deno.exit(1);
5152
}
5253
} catch (err) {
5354
console.warn(
54-
`Failed to check for updates: ${
55+
`Skipping version check. Failed to check for updates: ${
5556
err instanceof Error ? err.message : "Unknown error"
5657
}`,
5758
);

0 commit comments

Comments
 (0)