@egose/n8n-client 0.2.0 → 0.2.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -1,3 +1,9 @@
1
+ ## [0.2.1](https://github.com/egose/n8n-client/compare/v0.2.0...v0.2.1) (2026-06-14)
2
+
3
+ ### Docs
4
+
5
+ * **website:** document resource classes and update api examples ([1863152](https://github.com/egose/n8n-client/commit/1863152e2fa31f8028bd45482027c150c196916b))
6
+
1
7
  ## [0.2.0](https://github.com/egose/n8n-client/compare/v0.1.2...v0.2.0) (2026-06-13)
2
8
 
3
9
  ### Features
package/README.md CHANGED
@@ -273,7 +273,12 @@ const { data, nextCursor } = await workflowApi.list({
273
273
  const workflow = await workflowApi.get('wf-1');
274
274
  const workflowResource = await workflowApi.getResource('wf-1');
275
275
  const created = await workflowApi.create({ name: 'New', nodes: [], connections: {}, settings: {} });
276
- const updated = await workflowApi.update('wf-1', { name: 'Updated' });
276
+ const updated = await workflowApi.update('wf-1', {
277
+ name: 'Updated',
278
+ nodes: workflow.nodes,
279
+ connections: workflow.connections,
280
+ settings: workflow.settings ?? {},
281
+ });
277
282
  const updatedResource = await workflowApi.updateResource('wf-1', {
278
283
  name: 'Updated Again',
279
284
  nodes: [],
package/package.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "0.2.0",
2
+ "version": "0.2.1",
3
3
  "description": "TypeScript client for the n8n Public API with cursor-based pagination and typed resource handles.",
4
4
  "keywords": [
5
5
  "n8n",