Big News: Socket raises $60M Series C at a $1B valuation to secure software supply chains for AI-driven development.Announcement
Sign In

lcic-hotupdater

Package Overview
Dependencies
Maintainers
1
Versions
11
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

lcic-hotupdater

LCIC decktop hot updater based on pnpm

latest
npmnpm
Version
0.1.0-latest-1.2401.251524
Version published
Weekly downloads
10
100%
Maintainers
1
Weekly downloads
 
Created
Source

@tencent/lcic-hotupdater

LCIC桌面端热更新组件

(nodejs app通用热更新)

已实现特性

  • 支持任意多个纯js npm包的并行热更新(不执行build脚本)
  • @tencent/内网scope包与外网非scope包默认互换
  • 支持别名解析到任意包路径
  • require失败自动切回上一版本 (10次)
  • 基于规则的热更新配置, 可按操作系统, 当前任意包的版本范围, 公司ID,用户ID 不同条件组合任意灰度配置
  • 支持启动时同步更新,并设置超时后,转后台继续
  • npm包下载自动重试,
  • 原子性更新
  • npm包多版本切换, 支持npm-tag
  • TODO: 多版本解析. require('xxxx:version')

使用:

流水线

更新使用流程

更新时机

配置

原理

直接使用pnpm不能满足的点:

  • 不支持下载安装单个包,总是会解析依赖树
  • 源码难懂,开发困难
  • 在外置目录安装模块会安装所有依赖

FAQs

Package last updated on 25 Jan 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts