- f2b1bf6: Add BrowserWindow abstraction to decouple browser features from the global
windowobject, with real and null implementations. Replace silentvoidreturns withResultpattern acrossDirectoryTool.create,FileTool.writeFile/copy,JsonFileTool.writeJson, andPackageJsonFileTool.write. AddcreateOrThrowto DirectoryTool. New typed errors:DirectoryCreateError,FileWriteError,FileCopyError.
- 64aa022: register GlobTool via DirectoryTool feature
- 477e31a: Add GlobTool to the available tools - replaces fast-glob
- b425764: Replace filesystem-scanning skill discovery with a build-time manifest. The build now generates
skills.jsonat the package root with metadata (name, description, context, path) for each skill. The MCP server reads the manifest on startup and loads skill bodies on demand, eliminating recursive directory walking at runtime.
-
d5bc832: Fix broken
stdlib-mcpbin entry in published packageThe build script's
ArtifactCopierrewritesmain,types, andexportspaths when copyingpackage.jsonintodist/, but was not rewritingbinentries. Since the package publishes fromdist/(viapublishConfig.directory), the bin path./dist/mcp/cli.jsresolved to the nonexistentdist/dist/mcp/cli.js, causingnpx -y @webiny/stdlib stdlib-mcpto fail withcommand not found. Thebinfield is now rewritten with the samestripDist()logic as the other path fields.
- 3fb0ed7: feat: add MCP server for AI agent skill discovery (
stdlib-mcp serve/stdlib-mcp configure)
- 3b7c40e: Add WorkspaceTool for discovering workspaces from root package.json (drop-in replacement for get-yarn-workspaces)
- 809c44a: Replace
await using/AsyncDisposableonReadStreamFactorywith explicitdestroy()method for bundler compatibility
- 93f9f83: Add
createProcessEnv()andcreateBrowserEnv()factory functions for using Env implementations outside of DI.
- 2f17d08: Add
Envabstraction for typed environment variable access withgetString,getNumber, andgetBooleanfamilies (each with bare, default, and OrThrow variants). Node implementation (ProcessEnvFeature) reads fromprocess.env; browser implementation (BrowserEnvFeature) accepts an injected variables object.
- a77c5eb: Updated dependencies to their latest versions.
- 5924242: Add nanoid-based ID generators:
generateId,generateAlphaNumericId,generateAlphaNumericLowerCaseId,generateAlphaId,generateAlphaLowerCaseId,generateAlphaUpperCaseId. All accept an optionalsizeparameter (default 21). Import from@webiny/stdlib.
- 17a0aeb: Add
mdbidutility that generates MongoDB-compatible ObjectId hex strings viabson-objectid. Import from@webiny/stdlib— no DI setup required.
- 5fa60fc: feat(common): add uuid v4 generator with native randomUUID and getRandomValues fallback
- 36d941e: feat: add HashFolderTool — deterministic SHA-256 folder hashing with sync and async (parallel I/O) methods, replacing the unmaintained folder-hash library
- fd576ba: refactor: add array index support to immutableDelete and mutableDelete
- 7b96df9: v0.0.2
-
4baee5b: Initial release of @webiny/stdlib — platform-agnostic, Node.js, and browser utilities built on @webiny/di dependency injection.
Includes Result/ResultAsync types, BaseError, Logger (Console + Pino), Cache (Memory + AsyncMemory + LocalStorage), FileTool, DirectoryTool, JsonFileTool, PathTool, NdJsonReaderTool, ReadStreamFactory, and PackageJsonFileTool.