Compare commits
14 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 6c30d35de7 | |||
| 3cdd5302f8 | |||
| 42bba057cb | |||
| b9cddaa3f3 | |||
| 9ecf007767 | |||
| 660a480317 | |||
| ec268802ca | |||
| 6415a459d2 | |||
| 01bde87067 | |||
| 4f4c4a7538 | |||
| 0dee896201 | |||
| 29f7283f7a | |||
| 3eb99e1f08 | |||
| ad41fe876d |
44
changelog.md
44
changelog.md
@@ -1,5 +1,49 @@
|
||||
# Changelog
|
||||
|
||||
## 2025-12-08 - 2.3.3 - fix(dependencies)
|
||||
Bump dependencies: @api.global/typedserver to ^7.11.1 and @push.rocks/smartwatch to ^6.0.0
|
||||
|
||||
- Updated @api.global/typedserver from ^7.11.0 to ^7.11.1 (patch).
|
||||
- Updated @push.rocks/smartwatch from ^5.1.0 to ^6.0.0 (major). Verify compatibility as this may include breaking changes in that dependency.
|
||||
- Change is limited to package.json (dependency version updates).
|
||||
|
||||
## 2025-12-08 - 2.3.2 - fix(smartwatch)
|
||||
Bump @push.rocks/smartwatch dependency to ^5.1.0
|
||||
|
||||
- Updated dependency @push.rocks/smartwatch from ^5.0.0 to ^5.1.0 in package.json
|
||||
|
||||
## 2025-12-08 - 2.3.1 - fix(element)
|
||||
Enable SPA fallback in element dev server
|
||||
|
||||
- Add spaFallback: true to the TypedServer configuration used in element mode.
|
||||
- Improves developer experience for single-page apps by serving the index file for unknown routes during development and supporting client-side routing.
|
||||
|
||||
## 2025-12-08 - 2.3.0 - feat(typedserver)
|
||||
Enable compression for element development server and update @api.global/typedserver dependency
|
||||
|
||||
- Enable HTTP compression (compression: true) for the element mode development server (TypedServer) to improve asset delivery during development.
|
||||
- Bump dependency @api.global/typedserver from ^7.10.2 to ^7.11.0 in package.json.
|
||||
|
||||
## 2025-12-08 - 2.2.5 - fix(typedserver)
|
||||
Update @api.global/typedserver to ^7.10.2 and remove deprecated compression options from TypedServer initialization
|
||||
|
||||
- Bump @api.global/typedserver dependency from ^7.4.1 to ^7.10.2.
|
||||
- Remove enableCompression and preferredCompressionMethod options when creating TypedServer in element mode to be compatible with the newer API.
|
||||
|
||||
## 2025-12-04 - 2.2.4 - fix(dependencies)
|
||||
Bump dependency versions: @api.global/typedserver, @git.zone/tsbundle, @push.rocks/smartfs, @push.rocks/taskbuffer
|
||||
|
||||
- Upgrade @api.global/typedserver from ^3.0.80 to ^7.4.1
|
||||
- Upgrade @git.zone/tsbundle from ^2.6.2 to ^2.6.3
|
||||
- Upgrade @push.rocks/smartfs from ^1.1.3 to ^1.2.0
|
||||
- Upgrade @push.rocks/taskbuffer from ^3.4.0 to ^3.5.0
|
||||
|
||||
## 2025-12-04 - 2.2.3 - fix(tswatch.classes.watcher)
|
||||
Convert directory watch paths to glob patterns for smartwatch compatibility
|
||||
|
||||
- Watcher: convert directory paths to recursive glob patterns before adding them to Smartwatch so directories are watched recursively (e.g. /path/to/dir/ -> /path/to/dir/**/*).
|
||||
- Readme: added migration note explaining that directory paths are converted to glob patterns for smartwatch compatibility.
|
||||
|
||||
## 2025-12-01 - 2.2.2 - fix(core)
|
||||
Replace smartchok/smartfile with smartwatch/smartfs, update watcher and plugins, and bump dependencies
|
||||
|
||||
|
||||
12
package.json
12
package.json
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@git.zone/tswatch",
|
||||
"version": "2.2.2",
|
||||
"version": "2.3.3",
|
||||
"private": false,
|
||||
"description": "A development tool for automatically watching and re-compiling TypeScript projects upon detecting file changes, enhancing developer workflows.",
|
||||
"exports": {
|
||||
@@ -23,19 +23,19 @@
|
||||
"@types/node": "^24.10.1"
|
||||
},
|
||||
"dependencies": {
|
||||
"@api.global/typedserver": "^3.0.80",
|
||||
"@git.zone/tsbundle": "^2.6.2",
|
||||
"@api.global/typedserver": "^7.11.1",
|
||||
"@git.zone/tsbundle": "^2.6.3",
|
||||
"@git.zone/tsrun": "^2.0.0",
|
||||
"@push.rocks/early": "^4.0.4",
|
||||
"@push.rocks/lik": "^6.2.2",
|
||||
"@push.rocks/smartcli": "^4.0.19",
|
||||
"@push.rocks/smartdelay": "^3.0.5",
|
||||
"@push.rocks/smartfs": "^1.1.3",
|
||||
"@push.rocks/smartfs": "^1.2.0",
|
||||
"@push.rocks/smartlog": "^3.1.10",
|
||||
"@push.rocks/smartlog-destination-local": "^9.0.2",
|
||||
"@push.rocks/smartshell": "^3.3.0",
|
||||
"@push.rocks/smartwatch": "^5.0.0",
|
||||
"@push.rocks/taskbuffer": "^3.4.0"
|
||||
"@push.rocks/smartwatch": "^6.0.0",
|
||||
"@push.rocks/taskbuffer": "^3.5.0"
|
||||
},
|
||||
"files": [
|
||||
"ts/**/*",
|
||||
|
||||
1539
pnpm-lock.yaml
generated
1539
pnpm-lock.yaml
generated
File diff suppressed because it is too large
Load Diff
@@ -48,3 +48,4 @@
|
||||
- Replaced `@push.rocks/smartchok` with `@push.rocks/smartwatch` (v5.x)
|
||||
- Replaced `@push.rocks/smartfile` with `@push.rocks/smartfs` for directory listing
|
||||
- Class names: `Smartwatch` for file watching, `SmartFs` + `SmartFsProviderNode` for filesystem ops
|
||||
- Directory paths are converted to glob patterns (`/path/to/dir/` → `/path/to/dir/**/*`) for smartwatch compatibility
|
||||
|
||||
@@ -3,6 +3,6 @@
|
||||
*/
|
||||
export const commitinfo = {
|
||||
name: '@git.zone/tswatch',
|
||||
version: '2.2.2',
|
||||
version: '2.3.3',
|
||||
description: 'A development tool for automatically watching and re-compiling TypeScript projects upon detecting file changes, enhancing developer workflows.'
|
||||
}
|
||||
|
||||
@@ -71,8 +71,8 @@ export class TsWatch {
|
||||
injectReload: true,
|
||||
serveDir: plugins.path.join(paths.cwd, './dist_watch/'),
|
||||
port: 3002,
|
||||
enableCompression: true,
|
||||
preferredCompressionMethod: 'gzip',
|
||||
compression: true,
|
||||
spaFallback: true,
|
||||
});
|
||||
|
||||
const bundleAndReloadElement = async () => {
|
||||
|
||||
@@ -34,7 +34,11 @@ export class Watcher {
|
||||
logger.log('info', `trying to start watcher for ${this.options.filePathToWatch}`);
|
||||
await this.setupCleanup();
|
||||
console.log(`Looking at ${this.options.filePathToWatch} for changes`);
|
||||
this.smartwatchInstance.add([this.options.filePathToWatch]); // __dirname refers to the directory of this very file
|
||||
// Convert directory path to glob pattern for smartwatch
|
||||
const watchPath = this.options.filePathToWatch.endsWith('/')
|
||||
? `${this.options.filePathToWatch}**/*`
|
||||
: `${this.options.filePathToWatch}/**/*`;
|
||||
this.smartwatchInstance.add([watchPath]);
|
||||
await this.smartwatchInstance.start();
|
||||
const changeObservable = await this.smartwatchInstance.getObservableFor('change');
|
||||
changeObservable.subscribe(() => {
|
||||
|
||||
Reference in New Issue
Block a user