1.7 KiB
1.7 KiB
Project Hints - @api.global/typedserver
Recent Changes (December 2025)
Dependency Updates
@push.rocks/smartchokreplaced with@push.rocks/smartwatch(renamed package, same API)@push.rocks/smartfileupgraded from v11 to v13 (major API change -fsmodule removed)@push.rocks/smartfsadded for filesystem operations (v1.2.0+)@push.rocks/smartenvupgraded to v6.0.0@push.rocks/smartrequestupgraded to v5.0.1@push.rocks/webrequestupgraded to v4.0.1 (WebRequestrenamed toWebrequestClient)- Express upgraded to v5.2.1
- All
@git.zone/*dev dependencies updated to latest
Code Migration Notes
smartfile v13 Migration
- Old:
plugins.smartfile.fs.toStringSync(path)/plugins.smartfile.fs.toBufferSync(path) - New: Use
plugins.fsInstance(SmartFs instance with Node provider)- String:
await plugins.fsInstance.file(path).encoding('utf8').read() as string - Buffer:
await plugins.fsInstance.file(path).read() as Buffer
- String:
smartfs treeHash
- Old:
plugins.smartfile.fs.fileTreeToHash(dir, pattern) - New:
await plugins.fsInstance.directory(dir).recursive().treeHash()
smartwatch (formerly smartchok)
- Class renamed:
Smartchok→Smartwatch - API remains the same:
new Smartwatch([paths]),.start(),.stop(),.getObservableFor(event)
webrequest v4
- Class renamed:
WebRequest→WebrequestClient
Architecture
plugins.fsInstanceis a pre-configured SmartFs instance with SmartFsProviderNode- All file operations should be async using smartfs
- Sync file operations have been removed
Express 5 Notes
- Wildcard routes use
/{*splat}notation req.params.splatcan be an array, useArray.isArray()check