From f74583bdd24039461fc0b8eb96af0920a5939e8c Mon Sep 17 00:00:00 2001 From: Radovan Jorgic Date: Wed, 4 Nov 2026 12:48:05 +0100 Subject: [PATCH 1/5] fix: correct template rich text and attachment imports --- README.md | 8 + code/package-lock.json | 158 +++++++++++++++++- code/package.json | 6 +- .../external-system/data-denormalization.ts | 9 +- .../external-system/data-normalization.ts | 6 +- .../functions/external-system/http-client.ts | 4 +- .../initial_domain_mapping.json | 2 +- code/test/data-normalization.test.ts | 66 ++++++++ 8 files changed, 249 insertions(+), 10 deletions(-) create mode 100644 code/test/data-normalization.test.ts diff --git a/README.md b/README.md index d00ef3c..8ef8913 100644 --- a/README.md +++ b/README.md @@ -14,6 +14,11 @@ See the [AirSync snap-in documentation](https://developer.devrev.ai/airsync) for The template uses `@devrev/airsync-sdk` and requires Node.js 20 or newer. +Todo HTML bodies are converted to Markdown rich-text arrays and mapped with +`use_rich_text`. Reverse sync renders rich text back to HTML. The sample +attachments download a README pinned to a repository commit; replace these URLs +with downloadable files from your external system. + ## Local Fixture Testing From the `code/` directory, you can run the built-in fixture runner to test the @@ -30,3 +35,6 @@ The runner reads `code/.env` and resolves `${TODO_API_KEY}` in fixture files, so copy `code/.env.example` before running the fixtures. The fixture runner and local test server set `AIRSYNC_LOCAL_DEVELOPMENT=1` to enable local logging and artifact copies in `code/extracted_files/`. + +Run the rich-text and attachment fixture regression tests from `code/` with +`npm test -- --runInBand`. diff --git a/code/package-lock.json b/code/package-lock.json index c74ffcf..9eb52a9 100644 --- a/code/package-lock.json +++ b/code/package-lock.json @@ -9,12 +9,14 @@ "version": "1.1.6", "license": "ISC", "dependencies": { - "@devrev/airsync-sdk": "2.0.0", + "@devrev/airsync-sdk": "2.1.0-beta.2", "@devrev/typescript-sdk": "1.1.78", "axios": "^1.20.0", "dotenv": "^16.0.3", "jiti": "2.5.1", "js-jsonl": "^1.1.1", + "markdown-it": "15.0.3", + "turndown": "7.2.4", "yargs": "^17.6.2" }, "devDependencies": { @@ -25,7 +27,9 @@ "@types/body-parser": "^1.19.5", "@types/express": "^4.17.21", "@types/jest": "^29.4.0", + "@types/markdown-it": "14.2.0", "@types/node": "^18.13.0", + "@types/turndown": "5.0.6", "@types/yargs": "^17.0.24", "@typescript-eslint/eslint-plugin": "^8.32.0", "@typescript-eslint/parser": "^8.32.0", @@ -1883,9 +1887,9 @@ } }, "node_modules/@devrev/airsync-sdk": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/@devrev/airsync-sdk/-/airsync-sdk-2.0.0.tgz", - "integrity": "sha512-w7VQ5zefo1vzhHeVS5aOHajDPH8r44nuqfwgAf69G0lUY7mU+zhVCZjhPiY4W8SPrtxkid/j2LrzoUj+GmkKdQ==", + "version": "2.1.0-beta.2", + "resolved": "https://registry.npmjs.org/@devrev/airsync-sdk/-/airsync-sdk-2.1.0-beta.2.tgz", + "integrity": "sha512-mZ9zJL7MK7gK5Zyb1QKeXZZkRBbxuadJscL1S4J9HtELacaC+6z4KJI9xHlFxuz0fmCExk7yZ5CeT68/ivRcTg==", "license": "ISC", "dependencies": { "axios": "^1.20.0", @@ -2626,6 +2630,12 @@ "@jridgewell/sourcemap-codec": "^1.4.14" } }, + "node_modules/@mixmark-io/domino": { + "version": "2.2.0", + "resolved": "https://registry.npmjs.org/@mixmark-io/domino/-/domino-2.2.0.tgz", + "integrity": "sha512-Y28PR25bHXUg88kCV7nivXrP2Nj2RueZ3/l/jdx6J9f8J4nsEGcgX0Qe6lt7Pa+J79+kPiJU3LguR6O/6zrLOw==", + "license": "BSD-2-Clause" + }, "node_modules/@nodelib/fs.scandir": { "version": "2.1.5", "resolved": "https://registry.npmjs.org/@nodelib/fs.scandir/-/fs.scandir-2.1.5.tgz", @@ -2963,6 +2973,31 @@ "dev": true, "license": "MIT" }, + "node_modules/@types/linkify-it": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/@types/linkify-it/-/linkify-it-5.0.0.tgz", + "integrity": "sha512-sVDA58zAw4eWAffKOaQH5/5j3XeayukzDk+ewSsnv3p4yJEZHCCzMDiZM8e0OUrRvmpGZ85jf4yDHkHsgBNr9Q==", + "dev": true, + "license": "MIT" + }, + "node_modules/@types/markdown-it": { + "version": "14.2.0", + "resolved": "https://registry.npmjs.org/@types/markdown-it/-/markdown-it-14.2.0.tgz", + "integrity": "sha512-NoQ2yGlLWj4wpxMs+TYmRKk3thDrQ97agr7sFqfLsAlvoS8SNQuTrlObhFqG9iugdTtgOE9jpJ6FNM4ZGsa5xQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "@types/linkify-it": "^5", + "@types/mdurl": "^2" + } + }, + "node_modules/@types/mdurl": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/@types/mdurl/-/mdurl-2.0.0.tgz", + "integrity": "sha512-RGdgjQUZba5p6QEFAVx2OGb8rQDL/cPRG7GiedRzMcJ1tYnUANBncjbSB1NRGwbvjcPeikRABz2nshyPk1bhWg==", + "dev": true, + "license": "MIT" + }, "node_modules/@types/mime": { "version": "1.3.5", "resolved": "https://registry.npmjs.org/@types/mime/-/mime-1.3.5.tgz", @@ -3033,6 +3068,13 @@ "dev": true, "license": "MIT" }, + "node_modules/@types/turndown": { + "version": "5.0.6", + "resolved": "https://registry.npmjs.org/@types/turndown/-/turndown-5.0.6.tgz", + "integrity": "sha512-ru00MoyeeouE5BX4gRL+6m/BsDfbRayOskWqUvh7CLGW+UXxHQItqALa38kKnOiZPqJrtzJUgAC2+F0rL1S4Pg==", + "dev": true, + "license": "MIT" + }, "node_modules/@types/yargs": { "version": "17.0.35", "resolved": "https://registry.npmjs.org/@types/yargs/-/yargs-17.0.35.tgz", @@ -4581,6 +4623,18 @@ "node": ">= 0.8" } }, + "node_modules/entities": { + "version": "8.1.0", + "resolved": "https://registry.npmjs.org/entities/-/entities-8.1.0.tgz", + "integrity": "sha512-kxL7msIffSuh9aaFAMD7rxAIuTRMAHMeBtgHW2yUdWw732ZNh4MehkF2gdjvtdmikkaIP9bFDDJOPlsvm7avrA==", + "license": "BSD-2-Clause", + "engines": { + "node": ">=20.19.0" + }, + "funding": { + "url": "https://github.com/fb55/entities?sponsor=1" + } + }, "node_modules/error-ex": { "version": "1.3.4", "resolved": "https://registry.npmjs.org/error-ex/-/error-ex-1.3.4.tgz", @@ -7593,6 +7647,25 @@ "dev": true, "license": "MIT" }, + "node_modules/linkify-it": { + "version": "6.1.0", + "resolved": "https://registry.npmjs.org/linkify-it/-/linkify-it-6.1.0.tgz", + "integrity": "sha512-wJ/TwpSDTLepCrQoYWYIExIKg5Zchex2Nn5yk2mFnB+6PtdkHtyLx742md9csRjjOnGkKIS/RrbY7l8D6gT9Vw==", + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/puzrin" + }, + { + "type": "github", + "url": "https://github.com/sponsors/markdown-it" + } + ], + "license": "MIT", + "dependencies": { + "uc.micro": "^3.0.0" + } + }, "node_modules/locate-path": { "version": "5.0.0", "resolved": "https://registry.npmjs.org/locate-path/-/locate-path-5.0.0.tgz", @@ -7689,6 +7762,49 @@ "tmpl": "1.0.5" } }, + "node_modules/markdown-it": { + "version": "15.0.3", + "resolved": "https://registry.npmjs.org/markdown-it/-/markdown-it-15.0.3.tgz", + "integrity": "sha512-+Az7Ojz3iRGu8KYMvJ6xVhvrxP3eE+vEtJX75Ow88XBpcQNV/0lGX5ZynIIBftREo4DC2jsveAMDaeltmm8QvQ==", + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/puzrin" + }, + { + "type": "github", + "url": "https://github.com/sponsors/markdown-it" + } + ], + "license": "MIT", + "dependencies": { + "argparse": "^3.0.3", + "entities": "^8.1.0", + "linkify-it": "^6.1.0", + "mdurl": "^2.1.0", + "punycode.js": "^2.3.1", + "uc.micro": "^3.0.0" + }, + "bin": { + "markdown-it": "bin/markdown-it.mjs" + } + }, + "node_modules/markdown-it/node_modules/argparse": { + "version": "3.0.4", + "resolved": "https://registry.npmjs.org/argparse/-/argparse-3.0.4.tgz", + "integrity": "sha512-fwWK3Zq22l4XJJjx5mcBHGikIk+hJqO+32dPm0Jur7+rtG5x1scOjSfdT9ZKeWHPpsya/l0HHK4tDImBkTrtvA==", + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/puzrin" + }, + { + "type": "github", + "url": "https://github.com/sponsors/nodeca" + } + ], + "license": "PSF-2.0" + }, "node_modules/math-intrinsics": { "version": "1.1.0", "resolved": "https://registry.npmjs.org/math-intrinsics/-/math-intrinsics-1.1.0.tgz", @@ -7698,6 +7814,12 @@ "node": ">= 0.4" } }, + "node_modules/mdurl": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/mdurl/-/mdurl-2.1.0.tgz", + "integrity": "sha512-1+HBaOx0zi/dQWht8rNv9MYf9qqpqL/kxI0hXImU6Y547zM6Sni8BQibt7ifgMcYtQg41ao3Ivd6cnSM86inpg==", + "license": "MIT" + }, "node_modules/media-typer": { "version": "0.3.0", "resolved": "https://registry.npmjs.org/media-typer/-/media-typer-0.3.0.tgz", @@ -8579,6 +8701,15 @@ "node": ">=6" } }, + "node_modules/punycode.js": { + "version": "2.3.1", + "resolved": "https://registry.npmjs.org/punycode.js/-/punycode.js-2.3.1.tgz", + "integrity": "sha512-uxFIHU0YlHYhDQtV4R9J6a52SLx28BCjT+4ieh7IGbgwVJWO+km431c4yRlREUAsAmt/uMjQUyQHNEPf0M39CA==", + "license": "MIT", + "engines": { + "node": ">=6" + } + }, "node_modules/pure-rand": { "version": "6.1.0", "resolved": "https://registry.npmjs.org/pure-rand/-/pure-rand-6.1.0.tgz", @@ -9859,6 +9990,19 @@ "node": ">=4" } }, + "node_modules/turndown": { + "version": "7.2.4", + "resolved": "https://registry.npmjs.org/turndown/-/turndown-7.2.4.tgz", + "integrity": "sha512-I8yFsfRzmzK0WV1pNNOA4A7y4RDfFxPRxb3t+e3ui14qSGOxGtiSP6GjeX+Y6CHb7HYaFj7ECUD7VE5kQMZWGQ==", + "license": "MIT", + "dependencies": { + "@mixmark-io/domino": "^2.2.0" + }, + "engines": { + "node": ">=18", + "npm": ">=9" + } + }, "node_modules/type-check": { "version": "0.4.0", "resolved": "https://registry.npmjs.org/type-check/-/type-check-0.4.0.tgz", @@ -10306,6 +10450,12 @@ "node": ">=10" } }, + "node_modules/uc.micro": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/uc.micro/-/uc.micro-3.0.0.tgz", + "integrity": "sha512-U3PppEkleoTnIfi8BozMx3yju3qc/L6SwqWo2Sw+54PX+PX0q9I+r1Um5HCmqD7n9VDX5/v3vQH/AjA6deDdtw==", + "license": "MIT" + }, "node_modules/uglify-js": { "version": "3.19.3", "resolved": "https://registry.npmjs.org/uglify-js/-/uglify-js-3.19.3.tgz", diff --git a/code/package.json b/code/package.json index 451f86a..c1802ae 100644 --- a/code/package.json +++ b/code/package.json @@ -30,7 +30,9 @@ "@types/body-parser": "^1.19.5", "@types/express": "^4.17.21", "@types/jest": "^29.4.0", + "@types/markdown-it": "14.2.0", "@types/node": "^18.13.0", + "@types/turndown": "5.0.6", "@types/yargs": "^17.0.24", "@typescript-eslint/eslint-plugin": "^8.32.0", "@typescript-eslint/parser": "^8.32.0", @@ -58,12 +60,14 @@ "yargs": "^17.6.2" }, "dependencies": { - "@devrev/airsync-sdk": "2.0.0", + "@devrev/airsync-sdk": "2.1.0-beta.2", "@devrev/typescript-sdk": "1.1.78", "axios": "^1.20.0", "dotenv": "^16.0.3", "jiti": "2.5.1", "js-jsonl": "^1.1.1", + "markdown-it": "15.0.3", + "turndown": "7.2.4", "yargs": "^17.6.2" }, "engines": { diff --git a/code/src/functions/external-system/data-denormalization.ts b/code/src/functions/external-system/data-denormalization.ts index 7949f8d..3646446 100644 --- a/code/src/functions/external-system/data-denormalization.ts +++ b/code/src/functions/external-system/data-denormalization.ts @@ -1,10 +1,17 @@ import { ExternalSystemAttachment, ExternalSystemItem } from '@devrev/airsync-sdk'; +import MarkdownIt from 'markdown-it'; import { ExternalAttachment, ExternalTodo } from './types'; +const markdown = new MarkdownIt(); + export function denormalizeTodo(item: ExternalSystemItem): ExternalTodo { return { id: item.id.devrev, - body: item.data.body, + body: typeof item.data.body === 'string' + ? item.data.body + : markdown.render((item.data.body?.content ?? []).map((part: string | { fallback_record_name?: string; id: string }) => + typeof part === 'string' ? part : part.fallback_record_name ?? part.id + ).join('')), creator: item.data.creator, owner: item.data.owner, title: item.data.title, diff --git a/code/src/functions/external-system/data-normalization.ts b/code/src/functions/external-system/data-normalization.ts index 06a8281..711d6ac 100644 --- a/code/src/functions/external-system/data-normalization.ts +++ b/code/src/functions/external-system/data-normalization.ts @@ -1,6 +1,9 @@ import { ExternalSyncUnit, NormalizedAttachment, NormalizedItem } from '@devrev/airsync-sdk'; +import TurndownService from 'turndown'; import { ExternalAttachment, ExternalTodo, ExternalTodoList, ExternalUser } from './types'; +const turndown = new TurndownService(); + // TODO: Replace with your actual normalization functions that will be used to // normalize the data received from the external system. You can modify the // normalization functions to suit your needs. For example, you might want to @@ -25,7 +28,7 @@ export function normalizeTodo(item: ExternalTodo): NormalizedItem { created_date: item.created_date, modified_date: item.modified_date, data: { - body: item.body, + body: [turndown.turndown(item.body)], creator: item.creator, owner: item.owner, title: item.title, @@ -53,5 +56,6 @@ export function normalizeAttachment(item: ExternalAttachment): NormalizedAttachm file_name: item.file_name, author_id: item.author_id, parent_id: item.parent_id, + inline: false, }; } diff --git a/code/src/functions/external-system/http-client.ts b/code/src/functions/external-system/http-client.ts index bbcd937..cb0082b 100644 --- a/code/src/functions/external-system/http-client.ts +++ b/code/src/functions/external-system/http-client.ts @@ -46,8 +46,8 @@ const TODOS: ExternalTodo[] = [ ]; const ATTACHMENTS: ExternalAttachment[] = [ - { id: 'att-1', url: 'https://www.devrev.ai/favicon.ico', file_name: 'devrev-icon.ico', author_id: 'user-1', parent_id: 'todo-1' }, - { id: 'att-2', url: 'https://www.devrev.ai/favicon.ico', file_name: 'devrev-icon.ico', author_id: 'user-2', parent_id: 'todo-5' }, + { id: 'att-1', url: 'https://raw.githubusercontent.com/devrev/airsync-template/03ab27d406c3afd3286ae8f06a9de48ab9d96664/README.md', file_name: 'airsync-template-readme.md', author_id: 'user-1', parent_id: 'todo-1' }, + { id: 'att-2', url: 'https://raw.githubusercontent.com/devrev/airsync-template/03ab27d406c3afd3286ae8f06a9de48ab9d96664/README.md', file_name: 'airsync-template-readme.md', author_id: 'user-2', parent_id: 'todo-5' }, ]; // --------------------------------------------------------------------------- diff --git a/code/src/functions/external-system/initial_domain_mapping.json b/code/src/functions/external-system/initial_domain_mapping.json index e6642c9..67e62bd 100644 --- a/code/src/functions/external-system/initial_domain_mapping.json +++ b/code/src/functions/external-system/initial_domain_mapping.json @@ -74,7 +74,7 @@ "primary_external_field": "body", "reverse": true, "transformation_method_for_set": { - "transformation_method": "use_directly" + "transformation_method": "use_rich_text" } }, "created_by_id": { diff --git a/code/test/data-normalization.test.ts b/code/test/data-normalization.test.ts new file mode 100644 index 0000000..07e9210 --- /dev/null +++ b/code/test/data-normalization.test.ts @@ -0,0 +1,66 @@ +import { describe, expect, it } from '@jest/globals'; +import { createMockEvent, ExternalSystemItem } from '@devrev/airsync-sdk'; + +import { denormalizeTodo } from '../src/functions/external-system/data-denormalization'; +import { normalizeAttachment, normalizeTodo } from '../src/functions/external-system/data-normalization'; +import { HttpClient } from '../src/functions/external-system/http-client'; +import mapping from '../src/functions/external-system/initial_domain_mapping.json'; +import { ExternalTodo } from '../src/functions/external-system/types'; + +const todo: ExternalTodo = { + id: 'todo-1', + created_date: '2026-01-01T00:00:00Z', + modified_date: '2026-01-01T00:00:00Z', + title: 'Test todo', + body: '

Hello world & friends.

', + creator: 'user-1', + owner: 'user-1', +}; + +describe('Todo rich text', () => { + it('converts HTML to the rich-text Markdown array expected by AirSync', () => { + expect(normalizeTodo(todo).data).toMatchObject({ + body: ['Hello **world** & [friends](https://example.com).'], + }); + expect(mapping.additional_mappings.record_type_mappings.todos + .possible_record_type_mappings[0].shard.stock_field_mappings.body + .transformation_method_for_set.transformation_method).toBe('use_rich_text'); + }); + + it('preserves paragraphs and lists', () => { + expect(normalizeTodo({ ...todo, body: '

First

Second

' }).data) + .toMatchObject({ body: ['First\n\nSecond\n\n* One\n* Two'] }); + }); + + it('accepts an empty body', () => { + expect(normalizeTodo({ ...todo, body: '' }).data).toMatchObject({ body: [''] }); + }); + + it('converts reverse-sync rich text back to HTML', () => { + const item = { + ...todo, + id: { devrev: 'work-1' }, + data: { ...todo, body: { type: 'rich_text', content: ['Hello **world**.'] } }, + } as ExternalSystemItem; + expect(denormalizeTodo(item).body).toBe('

Hello world.

\n'); + }); + + it('preserves legacy string bodies when loading', () => { + const item = { ...todo, id: { devrev: 'work-1' }, data: todo } as ExternalSystemItem; + expect(denormalizeTodo(item).body).toBe(todo.body); + }); +}); + +describe('Todo attachment fixtures', () => { + it('produces downloadable, non-inline attachments linked to their todos', async () => { + const client = new HttpClient(createMockEvent('http://localhost:3001')); + const attachments = (await client.getAttachments()).map(normalizeAttachment); + expect(attachments).toHaveLength(2); + expect(attachments.map((item) => item.parent_id)).toEqual(['todo-1', 'todo-5']); + for (const attachment of attachments) { + expect(attachment.inline).toBe(false); + expect(attachment.url).toMatch(/^https:\/\/raw\.githubusercontent\.com\/devrev\/airsync-template\/[a-f0-9]{40}\/README\.md$/); + expect(attachment.file_name).toBe('airsync-template-readme.md'); + } + }); +}); From e7b9ac02cb5128c980bcd80b509c12efa0ff2bab Mon Sep 17 00:00:00 2001 From: Radovan Jorgic Date: Wed, 4 Nov 2026 13:24:13 +0100 Subject: [PATCH 2/5] fix: consolidate dependency updates and patch nodemon matching --- DEPENDENCY_REVIEW.md | 21 + code/package-lock.json | 571 +++++++++++---------- code/package.json | 11 +- code/test/dependency-compatibility.test.ts | 22 + 4 files changed, 360 insertions(+), 265 deletions(-) create mode 100644 DEPENDENCY_REVIEW.md create mode 100644 code/test/dependency-compatibility.test.ts diff --git a/DEPENDENCY_REVIEW.md b/DEPENDENCY_REVIEW.md new file mode 100644 index 0000000..5c1b9cb --- /dev/null +++ b/DEPENDENCY_REVIEW.md @@ -0,0 +1,21 @@ +# Dependency review — 2026-11-04 + +This change consolidates the pending TypeScript SDK and jiti updates, pins AirSync SDK 2.1.0-beta.2, updates Turndown to 7.2.5, and refreshes dependencies within their existing declared ranges. It preserves the body-parser 1.20.9, handlebars 4.7.10, qs 6.16.2, and follow-redirects 1.16.2 security patches already selected by this branch or main. + +A scoped override selects minimatch 11.0.1 for nodemon. Its CommonJS named `minimatch` export supports nodemon's caller; regression tests exercise watched TypeScript files, dotfiles, ignores, and multiple extensions. Older minimatch consumers retain their versions because v11 replaces the matching engine and is incompatible with legacy callable exports and internal APIs. A global override would require separate caller migrations. + +Fresh Snyk scans against main at 0369f4a and this change include development dependencies. Production dependencies have zero reported vulnerabilities. With development dependencies included, seven unique advisories remain (two high, five medium), across 23 paths versus 24 on main. The nodemon path for SNYK-JS-MINIMATCH-22111072 is removed; the advisory remains through other tooling paths. + +| Remaining advisory | Package | Reason deferred | +| --- | --- | --- | +| [SNYK-JS-BRACES-19963945](https://security.snyk.io/vuln/SNYK-JS-BRACES-19963945) | braces 3.0.3 | No published patch; used by watcher and test tooling. | +| [SNYK-JS-DEEPMERGE-19964053](https://security.snyk.io/vuln/SNYK-JS-DEEPMERGE-19964053) | deepmerge 4.3.1 | No published patch; Jest configuration dependency. | +| [SNYK-JS-INFLIGHT-6095116](https://security.snyk.io/vuln/SNYK-JS-INFLIGHT-6095116) | inflight 1.0.6 | No published patch; removing it requires migrating the Jest/coverage toolchain. | +| [SNYK-JS-MINIMATCH-22111072](https://security.snyk.io/vuln/SNYK-JS-MINIMATCH-22111072) | minimatch 3, 8, 9, 10 | Patched in 11.0.1; remaining consumers need compatible parent upgrades or migrations. | +| [SNYK-JS-URIJS-19963961](https://security.snyk.io/vuln/SNYK-JS-URIJS-19963961) | uri-js 4.4.1 | No published patch; ESLint/Ajv dependency. | +| [SNYK-JS-URIJS-19963963](https://security.snyk.io/vuln/SNYK-JS-URIJS-19963963) | uri-js 4.4.1 | No published patch; ESLint/Ajv dependency. | +| [SNYK-JS-URIJS-20341609](https://security.snyk.io/vuln/SNYK-JS-URIJS-20341609) | uri-js 4.4.1 | No published patch; ESLint/Ajv dependency. | + +Snyk Code returns three existing findings with accepted suppressions: local HTTP in `test/runner.test.ts`, fixture paths in `src/main.ts`, and local server responses in `test/runner.ts`. There are no active Code findings. Existing policies and accepted decisions were preserved. Hosted project inventory pagination failed after 2,100 entries, so these results rely on fresh local scans rather than a complete hosted inventory. + +Validation: reproducible npm install, TypeScript build, lint, all 11 tests, and local SDK extraction/loading and attachment worker checks pass. npm audit reports zero high/critical findings and 37 low/moderate findings. The import fixes were also verified on DEV before this dependency refresh: 15 issues, 10 users, two linked attachments, and no warnings. The refreshed dependencies have local validation; that exact dependency tree has not been redeployed to DEV. diff --git a/code/package-lock.json b/code/package-lock.json index 9eb52a9..743fcaf 100644 --- a/code/package-lock.json +++ b/code/package-lock.json @@ -10,13 +10,13 @@ "license": "ISC", "dependencies": { "@devrev/airsync-sdk": "2.1.0-beta.2", - "@devrev/typescript-sdk": "1.1.78", + "@devrev/typescript-sdk": "1.1.79", "axios": "^1.20.0", "dotenv": "^16.0.3", - "jiti": "2.5.1", + "jiti": "2.7.0", "js-jsonl": "^1.1.1", "markdown-it": "15.0.3", - "turndown": "7.2.4", + "turndown": "7.2.5", "yargs": "^17.6.2" }, "devDependencies": { @@ -117,14 +117,14 @@ } }, "node_modules/@babel/generator": { - "version": "7.29.8", - "resolved": "https://registry.npmjs.org/@babel/generator/-/generator-7.29.8.tgz", - "integrity": "sha512-gZbepsdh3WDtgZKWL+vTPh71LSBrm/Y4/QDZBVCcYfmeTEEuoOYwlSy+G1StfJg+/Zy550u/3TATbm7qDbbMtg==", + "version": "7.29.12", + "resolved": "https://registry.npmjs.org/@babel/generator/-/generator-7.29.12.tgz", + "integrity": "sha512-2W76mhjrpQFO1lK5e8IvGYB2D0YZ7S2R1Z2BjO2ZUYuW+amcpK/z60U6ZZmzskwoa7sJ6XohP/Wg8H5KxXI/IA==", "dev": true, "license": "MIT", "dependencies": { - "@babel/parser": "^7.29.8", - "@babel/types": "^7.29.8", + "@babel/parser": "^7.29.12", + "@babel/types": "^7.29.11", "@jridgewell/gen-mapping": "^0.3.12", "@jridgewell/trace-mapping": "^0.3.28", "jsesc": "^3.0.2" @@ -164,9 +164,9 @@ } }, "node_modules/@babel/helper-create-class-features-plugin": { - "version": "7.29.7", - "resolved": "https://registry.npmjs.org/@babel/helper-create-class-features-plugin/-/helper-create-class-features-plugin-7.29.7.tgz", - "integrity": "sha512-IY3ZD9Tmooqr3TUhc3DUWxiuo8xx1DWLhd5M7hQ+ZWJamqM2BbalrBJb2MisSLoYorOj75U03qULCxQTY9r3hg==", + "version": "7.29.12", + "resolved": "https://registry.npmjs.org/@babel/helper-create-class-features-plugin/-/helper-create-class-features-plugin-7.29.12.tgz", + "integrity": "sha512-ACxGoWMV866q/QlZHeCOaQZAR5QclKsIvkAmlDemqjm6+6Bynijs1mH068BzH2N2e+wSuDmBWY87fqKfvhi1Lw==", "dev": true, "license": "MIT", "dependencies": { @@ -175,7 +175,7 @@ "@babel/helper-optimise-call-expression": "^7.29.7", "@babel/helper-replace-supers": "^7.29.7", "@babel/helper-skip-transparent-expression-wrappers": "^7.29.7", - "@babel/traverse": "^7.29.7", + "@babel/traverse": "^7.29.12", "semver": "^6.3.1" }, "engines": { @@ -186,14 +186,14 @@ } }, "node_modules/@babel/helper-create-regexp-features-plugin": { - "version": "7.29.7", - "resolved": "https://registry.npmjs.org/@babel/helper-create-regexp-features-plugin/-/helper-create-regexp-features-plugin-7.29.7.tgz", - "integrity": "sha512-907Uymvqgg1dwUA+7IGwFAOSYzQOuzPXKNJ1yxzwPffzkYFg2q2eHi1fIOs6sXkG9NbIUMunnUlkYsfRFNvomg==", + "version": "7.29.10", + "resolved": "https://registry.npmjs.org/@babel/helper-create-regexp-features-plugin/-/helper-create-regexp-features-plugin-7.29.10.tgz", + "integrity": "sha512-/YY9soQuWa8TURtHXHT+GbklpbAA+dZErxFGHIr6qgDg96xuGWrTAs1+MfjgVJPF0YLQsOVsOYs8lhgsPbOinQ==", "dev": true, "license": "MIT", "dependencies": { "@babel/helper-annotate-as-pure": "^7.29.7", - "regexpu-core": "^6.3.1", + "regexpu-core": "^6.5.3", "semver": "^6.3.1" }, "engines": { @@ -350,9 +350,9 @@ } }, "node_modules/@babel/helper-string-parser": { - "version": "7.29.7", - "resolved": "https://registry.npmjs.org/@babel/helper-string-parser/-/helper-string-parser-7.29.7.tgz", - "integrity": "sha512-Pb5ijPrZ89GDH8223L4UP8i6QApWxs04RbPQJTeWDV0/keR2E36MeKnyr6LYmUUvqRRI+Iv87SuF1W6ErINzYw==", + "version": "7.29.11", + "resolved": "https://registry.npmjs.org/@babel/helper-string-parser/-/helper-string-parser-7.29.11.tgz", + "integrity": "sha512-snZbO7MEDOof+hvNa97EjEY7qD7h2kwvQr5AJC3ZhQudKW5dnej6k3kP9NQV88hJwaS8vDqRLFo9rivLEhle2g==", "dev": true, "license": "MIT", "engines": { @@ -395,27 +395,27 @@ } }, "node_modules/@babel/helpers": { - "version": "7.29.7", - "resolved": "https://registry.npmjs.org/@babel/helpers/-/helpers-7.29.7.tgz", - "integrity": "sha512-1k2lAGRMfHTcwuNYcCNUmaUffmQv8KWMfh2iJUUeRlwlwH4FdNG7mfPI10NPfLHJFThE4Tyr4mv7kTNZOiPuBg==", + "version": "7.29.10", + "resolved": "https://registry.npmjs.org/@babel/helpers/-/helpers-7.29.10.tgz", + "integrity": "sha512-EMCx3AGZ3WfAl6ht7AyQoPm2Lh+BGYEMdc4Q6Hf7uSCDOZFuLq44qNwL+iaim8VlyYhRAo4X43+weadK8ZB4Yg==", "dev": true, "license": "MIT", "dependencies": { "@babel/template": "^7.29.7", - "@babel/types": "^7.29.7" + "@babel/types": "^7.29.8" }, "engines": { "node": ">=6.9.0" } }, "node_modules/@babel/parser": { - "version": "7.29.8", - "resolved": "https://registry.npmjs.org/@babel/parser/-/parser-7.29.8.tgz", - "integrity": "sha512-E8lTAYNB1KW+FH+VGJuZM1ioAx2E6oVlvQFRrf5P8ZZmsiJXYAD9vTFV7yyEURNzgh1dFqMZuO6tUwcARbqFCA==", + "version": "7.29.12", + "resolved": "https://registry.npmjs.org/@babel/parser/-/parser-7.29.12.tgz", + "integrity": "sha512-WJ7JBp/Q4+z/ImydtI7jS6NVco5++632ExBemSX+Ysb+G1lCwQ5BVo3SY+jGGOcZXI4ZccbZSUSJLNBW6eEpJg==", "dev": true, "license": "MIT", "dependencies": { - "@babel/types": "^7.29.8" + "@babel/types": "^7.29.11" }, "bin": { "parser": "bin/babel-parser.js" @@ -879,9 +879,9 @@ } }, "node_modules/@babel/plugin-transform-block-scoping": { - "version": "7.29.7", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-block-scoping/-/plugin-transform-block-scoping-7.29.7.tgz", - "integrity": "sha512-ONyr4+AZhKh8yKWInVxU9AXA9EbsyeLcL6V0dJy6M2/62vuvpGm29zzuymbTpdc451GEpDIdAyPLP3r+P61yKQ==", + "version": "7.29.12", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-block-scoping/-/plugin-transform-block-scoping-7.29.12.tgz", + "integrity": "sha512-nEreZBofjfd6FG621xe9Rk3+tMGBXf1nAuFrR6NUGF67fkQbSQf3NrbRuhgWRn+zb0qcy9XVok1GVFI/t9wWVQ==", "dev": true, "license": "MIT", "dependencies": { @@ -929,9 +929,9 @@ } }, "node_modules/@babel/plugin-transform-classes": { - "version": "7.29.7", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-classes/-/plugin-transform-classes-7.29.7.tgz", - "integrity": "sha512-qV0OGGBVacduzQHE649JyCneOFI/maT+YKsO+K4Yi3xv2wTPNjM/W2o2gdzMwEAZz7fXNTHAe0NcSg30bIN69g==", + "version": "7.29.11", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-classes/-/plugin-transform-classes-7.29.11.tgz", + "integrity": "sha512-f8kTDM/nTvpLeafb+TJ4jboFr/Y3BbC+QzgPpPGzSKJqWLnj9LW0WLqv4XKA11LX5sr+EgvLE6Ix3YsCEusodw==", "dev": true, "license": "MIT", "dependencies": { @@ -940,7 +940,7 @@ "@babel/helper-globals": "^7.29.7", "@babel/helper-plugin-utils": "^7.29.7", "@babel/helper-replace-supers": "^7.29.7", - "@babel/traverse": "^7.29.7" + "@babel/traverse": "^7.29.10" }, "engines": { "node": ">=6.9.0" @@ -1535,9 +1535,9 @@ } }, "node_modules/@babel/plugin-transform-spread": { - "version": "7.29.8", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-spread/-/plugin-transform-spread-7.29.8.tgz", - "integrity": "sha512-4S9ksMGVWUshvgK0mKfvZky7leuG5/uoFVwMpAomJ8bMoDJiNHRVmc1EglwW/CmGVSqqWpEbXm9FmbRit22qoA==", + "version": "7.29.11", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-spread/-/plugin-transform-spread-7.29.11.tgz", + "integrity": "sha512-5xWGhfuMgbOfIjsk/I2c4uMnoqRwQdKYi4QjvybQrcEVE0G9/p3qmIkp2Sxe8YF8DGNNVs5whfwNqIM5684XoQ==", "dev": true, "license": "MIT", "dependencies": { @@ -1600,9 +1600,9 @@ } }, "node_modules/@babel/plugin-transform-typescript": { - "version": "7.29.7", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-typescript/-/plugin-transform-typescript-7.29.7.tgz", - "integrity": "sha512-jK52h8LaLc7JarhQV2ofeFMts4H7vnOXnqZNA6fYglBTZewRBE51KWt3BUltW1P+KoPsYkHoJeXePuz4zo2LMw==", + "version": "7.29.9", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-typescript/-/plugin-transform-typescript-7.29.9.tgz", + "integrity": "sha512-FFwIwzU+7SCOuxxV4YtJql6T9981ZVTm+FHO5GhVsRqCTdy0WwrEZh3l42ARpXruJUDGOptdduHW6Zr7pNPLNg==", "dev": true, "license": "MIT", "dependencies": { @@ -1823,18 +1823,18 @@ } }, "node_modules/@babel/traverse": { - "version": "7.29.8", - "resolved": "https://registry.npmjs.org/@babel/traverse/-/traverse-7.29.8.tgz", - "integrity": "sha512-I5z7H3bf/41ktsNVLtpN0wAa336HkqIHQ5BuPLEhTkt1jVSyZpeNKIzTgEWmlxjdg81R0IgUCcaE+Ok3NvrfZg==", + "version": "7.29.12", + "resolved": "https://registry.npmjs.org/@babel/traverse/-/traverse-7.29.12.tgz", + "integrity": "sha512-MscXe/NAZcOkYEsRajHZFt3ynsb22PUi6CTrp5U7+RYycR9By84mn9mFN54YgfITiqK4hFx3Ju3tZSyzfpS5ew==", "dev": true, "license": "MIT", "dependencies": { "@babel/code-frame": "^7.29.7", - "@babel/generator": "^7.29.8", + "@babel/generator": "^7.29.12", "@babel/helper-globals": "^7.29.7", - "@babel/parser": "^7.29.8", + "@babel/parser": "^7.29.12", "@babel/template": "^7.29.7", - "@babel/types": "^7.29.8", + "@babel/types": "^7.29.11", "debug": "^4.3.1" }, "engines": { @@ -1842,13 +1842,13 @@ } }, "node_modules/@babel/types": { - "version": "7.29.8", - "resolved": "https://registry.npmjs.org/@babel/types/-/types-7.29.8.tgz", - "integrity": "sha512-Vj1jF3cPfxg7OAfoI7QnVKLoILlm2JF9pnVHrX8qx7AHMiYWT+NDAA7jChlNgRS4WTLc/fD1lXLmPixluj+3Gg==", + "version": "7.29.11", + "resolved": "https://registry.npmjs.org/@babel/types/-/types-7.29.11.tgz", + "integrity": "sha512-WCsemW40Cpc6gouC1SrY6PBaZ+oLRlEVY9XBvZBI7il/HyUrb2nJ505wE1MHEFyDZNnrWDEuy4jL50WVHfTTSQ==", "dev": true, "license": "MIT", "dependencies": { - "@babel/helper-string-parser": "^7.29.7", + "@babel/helper-string-parser": "^7.29.11", "@babel/helper-validator-identifier": "^7.29.7" }, "engines": { @@ -1910,18 +1910,30 @@ } }, "node_modules/@devrev/typescript-sdk": { - "version": "1.1.78", - "resolved": "https://registry.npmjs.org/@devrev/typescript-sdk/-/typescript-sdk-1.1.78.tgz", - "integrity": "sha512-rgku5NFZHp2g31RHdF3BCSriQ62SABmhgMF6EIxw9QnZn7p3T/uckWejGSevPBmobJ49D7kkwqHTcbGFT6sjJg==", + "version": "1.1.79", + "resolved": "https://registry.npmjs.org/@devrev/typescript-sdk/-/typescript-sdk-1.1.79.tgz", + "integrity": "sha512-nxm2EhRYqcRGGA73j11KQuIQD76yIG+OJjFNv1YZduq1omnzbIyP74tg5cGPm8yvEv42Fr68N/slLNTmUrJ9ew==", "license": "MIT", "dependencies": { "@types/yargs": "^17.0.22", - "axios": "^1.15.2", + "axios": "1.20.0", "dotenv": "^16.0.3", - "protobufjs": "^7.3.0", + "protobufjs": "^7.6.3", "yargs": "^17.6.2" } }, + "node_modules/@devrev/typescript-sdk/node_modules/axios": { + "version": "1.20.0", + "resolved": "https://registry.npmjs.org/axios/-/axios-1.20.0.tgz", + "integrity": "sha512-r8aOh8j9cGKpgQAqpzrUHnSIc6a59Y3Xf/cv8sy1DrHCkZHzQGEuoq1tARk6qSyDdtQGSDgpb9kFlruzPvrgwg==", + "license": "MIT", + "dependencies": { + "follow-redirects": "^1.16.0", + "form-data": "^4.0.6", + "https-proxy-agent": "^5.0.1", + "proxy-from-env": "^2.1.0" + } + }, "node_modules/@eslint-community/eslint-utils": { "version": "4.10.1", "resolved": "https://registry.npmjs.org/@eslint-community/eslint-utils/-/eslint-utils-4.10.1.tgz", @@ -2021,9 +2033,9 @@ } }, "node_modules/@eslint/eslintrc": { - "version": "3.3.6", - "resolved": "https://registry.npmjs.org/@eslint/eslintrc/-/eslintrc-3.3.6.tgz", - "integrity": "sha512-l2Ul9PrHsPCKcEY/ac7VgFj9D80C7S68sOKc618SyHDPK36s1XcFebXY0iTzUVn4Yq+YbwvSnDmCz9yxjX+QrA==", + "version": "3.3.7", + "resolved": "https://registry.npmjs.org/@eslint/eslintrc/-/eslintrc-3.3.7.tgz", + "integrity": "sha512-F42g89Qd5oAWtp0k0nnSrjziAKza7w8SVT4mStc18LZMaRb4J1HQAHLCalEtDCxrTuksx7NU9qsmeLwpOfPqWw==", "dev": true, "license": "MIT", "dependencies": { @@ -2033,7 +2045,7 @@ "globals": "^14.0.0", "ignore": "^5.2.0", "import-fresh": "^3.2.1", - "js-yaml": "^4.3.0", + "js-yaml": "^4.3.2", "minimatch": "^3.1.5", "strip-json-comments": "^3.1.1" }, @@ -2231,6 +2243,13 @@ "url": "https://github.com/sponsors/nzakas" } }, + "node_modules/@isaacs/nonrecursive-glob-match": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/@isaacs/nonrecursive-glob-match/-/nonrecursive-glob-match-1.0.3.tgz", + "integrity": "sha512-SI7kyKHq4XXDRozw+r9GlRZkia1ZkFrpLW98r2IC2Bpr8YkFGE3fvjzmxCG0x78A++69HmDNrDvSMYBZmHGpKA==", + "dev": true, + "license": "BlueOak-1.0.0" + }, "node_modules/@istanbuljs/load-nyc-config": { "version": "1.1.0", "resolved": "https://registry.npmjs.org/@istanbuljs/load-nyc-config/-/load-nyc-config-1.1.0.tgz", @@ -2463,9 +2482,9 @@ } }, "node_modules/@jest/reporters/node_modules/semver": { - "version": "7.8.5", - "resolved": "https://registry.npmjs.org/semver/-/semver-7.8.5.tgz", - "integrity": "sha512-Y7/KDsb8LjooZpwaqGyulO6DQlksgCncchHGk+sZIY4SBvUocMBEFH5Ur1fI4dV+Jvl0w6cjvucaIi40puRioA==", + "version": "7.8.6", + "resolved": "https://registry.npmjs.org/semver/-/semver-7.8.6.tgz", + "integrity": "sha512-9lpSSU4Mly3mrtruwLs1eLK6+gzbzqeBFwRNjIjE+9LuDpWdYctrQlQ3ej1Ilgi7gknpsTRnPoLP8DpCHqHIJw==", "dev": true, "license": "ISC", "bin": { @@ -2613,9 +2632,9 @@ } }, "node_modules/@jridgewell/sourcemap-codec": { - "version": "1.5.5", - "resolved": "https://registry.npmjs.org/@jridgewell/sourcemap-codec/-/sourcemap-codec-1.5.5.tgz", - "integrity": "sha512-cYQ9310grqxueWbl+WuIUIaiUaDcj7WOq5fVhEljNVgRfOUhY9fy2zTvfoqWsnebh8Sl70VScFbICvJnLKB0Og==", + "version": "1.6.0", + "resolved": "https://registry.npmjs.org/@jridgewell/sourcemap-codec/-/sourcemap-codec-1.6.0.tgz", + "integrity": "sha512-T7jf+5zgsZHwNJ4lvQ7/aezbyk0nNX+zJVWpmHA7VYsEx7a7qr5Rg5IbtJFqkgze5Y2sruq1RUY8Q837Od7iFw==", "devOptional": true, "license": "MIT" }, @@ -2778,9 +2797,9 @@ } }, "node_modules/@tsconfig/node10": { - "version": "1.0.12", - "resolved": "https://registry.npmjs.org/@tsconfig/node10/-/node10-1.0.12.tgz", - "integrity": "sha512-UCYBaeFvM11aU2y3YPZ//O5Rhj+xKyzy7mvcIoAjASbigy8mHMryP5cK7dgjlz2hWxh1g5pLw084E0a/wlUSFQ==", + "version": "1.0.13", + "resolved": "https://registry.npmjs.org/@tsconfig/node10/-/node10-1.0.13.tgz", + "integrity": "sha512-gcLdvR9HO1ZJBypsOGqaP6TFEzb6vIta0KSTLt9NAQ6pXQO3cRgSVyCN6pzYqI9DlJgY71XKO0dpDhCf08b3pg==", "devOptional": true, "license": "MIT" }, @@ -2872,9 +2891,9 @@ } }, "node_modules/@types/estree": { - "version": "1.0.9", - "resolved": "https://registry.npmjs.org/@types/estree/-/estree-1.0.9.tgz", - "integrity": "sha512-GhdPgy1el4/ImP05X05Uw4cw2/M93BCUmnEvWZNStlCzEKME4Fkk+YpoA5OiHNQmoS7Cafb8Xa3Pya8m1Qrzeg==", + "version": "1.0.10", + "resolved": "https://registry.npmjs.org/@types/estree/-/estree-1.0.10.tgz", + "integrity": "sha512-lTyOMnOcmRBzdCv6/4zUZCrEhV0xrqQiUZBZtVcbmLHBXKLnN8q89v/wKRF/Q0HbwVsqbIG3o5HDoFl9sduM+g==", "dev": true, "license": "MIT" }, @@ -3091,17 +3110,17 @@ "license": "MIT" }, "node_modules/@typescript-eslint/eslint-plugin": { - "version": "8.65.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/eslint-plugin/-/eslint-plugin-8.65.0.tgz", - "integrity": "sha512-IEgob78X12rHpUmtcwFsXhZdVGJtwTVP8FiCLZkR6GlYVrl2PcuB+KhCE5BlVC/eQpQnu8WXRtkHZuPar+gCRA==", + "version": "8.72.1", + "resolved": "https://registry.npmjs.org/@typescript-eslint/eslint-plugin/-/eslint-plugin-8.72.1.tgz", + "integrity": "sha512-5CokTWXpmbylfFabsbvHC0CAw3XLaGnoa+nFJX5FR592h/LoZsENUE6p/rg5xvkKrFEXz6pYmgI29AgXc2N3BQ==", "dev": true, "license": "MIT", "dependencies": { "@eslint-community/regexpp": "^4.12.2", - "@typescript-eslint/scope-manager": "8.65.0", - "@typescript-eslint/type-utils": "8.65.0", - "@typescript-eslint/utils": "8.65.0", - "@typescript-eslint/visitor-keys": "8.65.0", + "@typescript-eslint/scope-manager": "8.72.1", + "@typescript-eslint/type-utils": "8.72.1", + "@typescript-eslint/utils": "8.72.1", + "@typescript-eslint/visitor-keys": "8.72.1", "ignore": "^7.0.5", "natural-compare": "^1.4.0", "ts-api-utils": "^2.5.0" @@ -3114,22 +3133,22 @@ "url": "https://opencollective.com/typescript-eslint" }, "peerDependencies": { - "@typescript-eslint/parser": "^8.65.0", + "@typescript-eslint/parser": "^8.72.1", "eslint": "^8.57.0 || ^9.0.0 || ^10.0.0", "typescript": ">=4.8.4 <6.1.0" } }, "node_modules/@typescript-eslint/parser": { - "version": "8.65.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/parser/-/parser-8.65.0.tgz", - "integrity": "sha512-CZ4nMxWwgu1HEEFNkeaCptra9QCtkmKdgf3sWh1rl1trIhmxLilgTV4cwcbQ4wemnT4sWQN8CaKOmdYx+g2gMA==", + "version": "8.72.1", + "resolved": "https://registry.npmjs.org/@typescript-eslint/parser/-/parser-8.72.1.tgz", + "integrity": "sha512-ZGwZP4OCfyA0AQTpEAMWz+rtX01DRhQWW5hB0ucKDEIX5U7jdmPSaMx94rQfaPAQzIYz2BimOgKOJtjfpRFQ9g==", "dev": true, "license": "MIT", "dependencies": { - "@typescript-eslint/scope-manager": "8.65.0", - "@typescript-eslint/types": "8.65.0", - "@typescript-eslint/typescript-estree": "8.65.0", - "@typescript-eslint/visitor-keys": "8.65.0", + "@typescript-eslint/scope-manager": "8.72.1", + "@typescript-eslint/types": "8.72.1", + "@typescript-eslint/typescript-estree": "8.72.1", + "@typescript-eslint/visitor-keys": "8.72.1", "debug": "^4.4.3" }, "engines": { @@ -3145,14 +3164,14 @@ } }, "node_modules/@typescript-eslint/project-service": { - "version": "8.65.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/project-service/-/project-service-8.65.0.tgz", - "integrity": "sha512-SxnPhbTsGahizDgbu7oqFH/xVtzIqMd/s+WtnSxNxJZJpLbdT5IPdzg8EZxO3+PoKahXmwJLeNQOpKJb3/bi7Q==", + "version": "8.72.1", + "resolved": "https://registry.npmjs.org/@typescript-eslint/project-service/-/project-service-8.72.1.tgz", + "integrity": "sha512-fAuVMkwdO/huI8nyo/WKnNKf6Gag93S56Rh3Ts5mGcavwSdaN8tRg1gCeIGX8PF+nzp1BjGfO4gHhGzW1J6jTg==", "dev": true, "license": "MIT", "dependencies": { - "@typescript-eslint/tsconfig-utils": "^8.65.0", - "@typescript-eslint/types": "^8.65.0", + "@typescript-eslint/tsconfig-utils": "^8.72.1", + "@typescript-eslint/types": "^8.72.1", "debug": "^4.4.3" }, "engines": { @@ -3167,14 +3186,14 @@ } }, "node_modules/@typescript-eslint/scope-manager": { - "version": "8.65.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/scope-manager/-/scope-manager-8.65.0.tgz", - "integrity": "sha512-Esbl8OSYiVxBokYgWPf7VVWg/BE798wXhimnn9ML9Pt5qoDf8bfQlgjlKXR/k98+AcNzlLKYrpCcrcuZ9DZLgg==", + "version": "8.72.1", + "resolved": "https://registry.npmjs.org/@typescript-eslint/scope-manager/-/scope-manager-8.72.1.tgz", + "integrity": "sha512-lC/t6eMCZZQAAKZEYGL6RDVSuFehpdmMT6h+nJIjIa6oylN/PwDgDVtEIbB7O9xFfZYtZAYLoLlDNWKJhtF+uQ==", "dev": true, "license": "MIT", "dependencies": { - "@typescript-eslint/types": "8.65.0", - "@typescript-eslint/visitor-keys": "8.65.0" + "@typescript-eslint/types": "8.72.1", + "@typescript-eslint/visitor-keys": "8.72.1" }, "engines": { "node": "^18.18.0 || ^20.9.0 || >=21.1.0" @@ -3185,9 +3204,9 @@ } }, "node_modules/@typescript-eslint/tsconfig-utils": { - "version": "8.65.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/tsconfig-utils/-/tsconfig-utils-8.65.0.tgz", - "integrity": "sha512-j6GzGqCiRdA7Qhur2VVmKZAkBLfnHFQfx4TaJGL9RMveZqCo48jSHHO0DTgizEnGhtWnqmbtCUSrqSkdiY/0Hg==", + "version": "8.72.1", + "resolved": "https://registry.npmjs.org/@typescript-eslint/tsconfig-utils/-/tsconfig-utils-8.72.1.tgz", + "integrity": "sha512-e4D5R5vpeAEPBxT2BAzsFQL3sbwyeeeo5+aczgNSRK1V734jE7pTqaGFU+fXapWEQwnZbpFaTn32+Z8DwS6OTg==", "dev": true, "license": "MIT", "engines": { @@ -3202,15 +3221,15 @@ } }, "node_modules/@typescript-eslint/type-utils": { - "version": "8.65.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/type-utils/-/type-utils-8.65.0.tgz", - "integrity": "sha512-YjaZ7PRI5qY7ax2L3PbvX0rRyGtipAReCWs0mhhDBHjH/vl0g0BonaGXrKdKpMbIIsMIwDgbk/xzkBTyAltS5g==", + "version": "8.72.1", + "resolved": "https://registry.npmjs.org/@typescript-eslint/type-utils/-/type-utils-8.72.1.tgz", + "integrity": "sha512-iY2wlmyrXJmx4yxUGP3aYCFF3cA/6ShddOKmLU2dx7LnEykbAM8WThlxZEfd1NddqceF6eJmZUayxx9oKIYNlg==", "dev": true, "license": "MIT", "dependencies": { - "@typescript-eslint/types": "8.65.0", - "@typescript-eslint/typescript-estree": "8.65.0", - "@typescript-eslint/utils": "8.65.0", + "@typescript-eslint/types": "8.72.1", + "@typescript-eslint/typescript-estree": "8.72.1", + "@typescript-eslint/utils": "8.72.1", "debug": "^4.4.3", "ts-api-utils": "^2.5.0" }, @@ -3227,9 +3246,9 @@ } }, "node_modules/@typescript-eslint/types": { - "version": "8.65.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/types/-/types-8.65.0.tgz", - "integrity": "sha512-JSSwWNy+H0E/01jJEM+hrX6N0OFDzFzeIhHFSAS01tlVaevpG8cFyYRPhS5yjGOvBUx3sqQHVMjCL1CAZZMxBg==", + "version": "8.72.1", + "resolved": "https://registry.npmjs.org/@typescript-eslint/types/-/types-8.72.1.tgz", + "integrity": "sha512-LmE5IhQet1BWOWEXqBrVtBPsMAOQ6Nzk35d+WLh3mk4EUF33sqlfxjio1MdYeSvKSG5skactKKuixBIKXhL4Rw==", "dev": true, "license": "MIT", "engines": { @@ -3241,16 +3260,16 @@ } }, "node_modules/@typescript-eslint/typescript-estree": { - "version": "8.65.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/typescript-estree/-/typescript-estree-8.65.0.tgz", - "integrity": "sha512-JboAE2swaYt4tb1fHhHTABE2K+OLy09XfcTbhnk4Pw96f9dd2e9iYsJ28gBggHlo5z5x1rkyWvcPoTuNTd4oGg==", + "version": "8.72.1", + "resolved": "https://registry.npmjs.org/@typescript-eslint/typescript-estree/-/typescript-estree-8.72.1.tgz", + "integrity": "sha512-DAlUoUV93hIvrtIQLwCbmZQYVZwOMhiHJrOVUUIWicFZaIYjTRqlY3I/NZevfkLmSqkNHRu2qYDcq9lrn16oOQ==", "dev": true, "license": "MIT", "dependencies": { - "@typescript-eslint/project-service": "8.65.0", - "@typescript-eslint/tsconfig-utils": "8.65.0", - "@typescript-eslint/types": "8.65.0", - "@typescript-eslint/visitor-keys": "8.65.0", + "@typescript-eslint/project-service": "8.72.1", + "@typescript-eslint/tsconfig-utils": "8.72.1", + "@typescript-eslint/types": "8.72.1", + "@typescript-eslint/visitor-keys": "8.72.1", "debug": "^4.4.3", "minimatch": "^10.2.2", "semver": "^7.7.3", @@ -3269,9 +3288,9 @@ } }, "node_modules/@typescript-eslint/typescript-estree/node_modules/semver": { - "version": "7.8.5", - "resolved": "https://registry.npmjs.org/semver/-/semver-7.8.5.tgz", - "integrity": "sha512-Y7/KDsb8LjooZpwaqGyulO6DQlksgCncchHGk+sZIY4SBvUocMBEFH5Ur1fI4dV+Jvl0w6cjvucaIi40puRioA==", + "version": "7.8.6", + "resolved": "https://registry.npmjs.org/semver/-/semver-7.8.6.tgz", + "integrity": "sha512-9lpSSU4Mly3mrtruwLs1eLK6+gzbzqeBFwRNjIjE+9LuDpWdYctrQlQ3ej1Ilgi7gknpsTRnPoLP8DpCHqHIJw==", "dev": true, "license": "ISC", "bin": { @@ -3282,16 +3301,16 @@ } }, "node_modules/@typescript-eslint/utils": { - "version": "8.65.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/utils/-/utils-8.65.0.tgz", - "integrity": "sha512-gXiwIHsYreboxeJucHKPvgwl7dXt50mF8s1/c00cP/WoVTyWKFdtfhRWwZiXYFU5H2O8vVoSLNrexFZjYS/SGA==", + "version": "8.72.1", + "resolved": "https://registry.npmjs.org/@typescript-eslint/utils/-/utils-8.72.1.tgz", + "integrity": "sha512-5v5liypurJBFHCBNqh/RjsymAD+VWcE0djuGY/BUqp5fC3Qn+luWDEksjuTtWjPn6i5zQlUtkZCRG/CYG0yCkA==", "dev": true, "license": "MIT", "dependencies": { "@eslint-community/eslint-utils": "^4.9.1", - "@typescript-eslint/scope-manager": "8.65.0", - "@typescript-eslint/types": "8.65.0", - "@typescript-eslint/typescript-estree": "8.65.0" + "@typescript-eslint/scope-manager": "8.72.1", + "@typescript-eslint/types": "8.72.1", + "@typescript-eslint/typescript-estree": "8.72.1" }, "engines": { "node": "^18.18.0 || ^20.9.0 || >=21.1.0" @@ -3306,13 +3325,13 @@ } }, "node_modules/@typescript-eslint/visitor-keys": { - "version": "8.65.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/visitor-keys/-/visitor-keys-8.65.0.tgz", - "integrity": "sha512-8C71BQkGjiMmXtop7pHVJu1l2NNShFdkCyD6a2ezzs5vU/L3LRtb69EtcteFwz0mYMPzIgOw0n6OV4VBUWZd7A==", + "version": "8.72.1", + "resolved": "https://registry.npmjs.org/@typescript-eslint/visitor-keys/-/visitor-keys-8.72.1.tgz", + "integrity": "sha512-SB8xqipSzZHUePCCLNeYxqnxq83X61/qzNhjQGbTfjxGZIeOEP7tBgWYX05Tcd6CgE02WdTJnh5b8kMZJ/+bnQ==", "dev": true, "license": "MIT", "dependencies": { - "@typescript-eslint/types": "8.65.0", + "@typescript-eslint/types": "8.72.1", "eslint-visitor-keys": "^5.0.0" }, "engines": { @@ -3351,9 +3370,9 @@ } }, "node_modules/acorn": { - "version": "8.18.0", - "resolved": "https://registry.npmjs.org/acorn/-/acorn-8.18.0.tgz", - "integrity": "sha512-lGq+9yr1/GuAWaVYIHRjvvySG5/4VfKIvC8EWxStPdcDh/Ka7FG3twP6v4d5BkravUilhIAsG4Qj83t02LWUPQ==", + "version": "8.19.0", + "resolved": "https://registry.npmjs.org/acorn/-/acorn-8.19.0.tgz", + "integrity": "sha512-oJlA3XiRm7Cyk6qFD2Jn8ak9B7jSy0qy00ADO3+8dpT0LSjFihQYv4C02LFCSYJV3Q37xYwwRy5m+IpIiUzqWw==", "devOptional": true, "license": "MIT", "bin": { @@ -3511,18 +3530,18 @@ "license": "MIT" }, "node_modules/array-includes": { - "version": "3.1.9", - "resolved": "https://registry.npmjs.org/array-includes/-/array-includes-3.1.9.tgz", - "integrity": "sha512-FmeCCAenzH0KH381SPT5FZmiA/TmpndpcaShhfgEN9eCVjnFBqq3l1xrI42y8+PPLI6hypzou4GXw00WHmPBLQ==", + "version": "3.2.0", + "resolved": "https://registry.npmjs.org/array-includes/-/array-includes-3.2.0.tgz", + "integrity": "sha512-VXY5eFRarnXcYxwBjJzPmEhH55+rmP79/+ueDhi0F+TuqfHCItagIHqxeUZrmgrOPa31QTh9H85DjX3FfJ0FTg==", "dev": true, "license": "MIT", "dependencies": { - "call-bind": "^1.0.8", + "call-bind": "^1.0.9", "call-bound": "^1.0.4", "define-properties": "^1.2.1", - "es-abstract": "^1.24.0", - "es-object-atoms": "^1.1.1", - "get-intrinsic": "^1.3.0", + "es-abstract": "^1.24.2", + "es-object-atoms": "^1.1.2", + "es-shim-unscopables": "^1.1.0", "is-string": "^1.1.1", "math-intrinsics": "^1.1.0" }, @@ -3648,9 +3667,9 @@ } }, "node_modules/axios": { - "version": "1.20.0", - "resolved": "https://registry.npmjs.org/axios/-/axios-1.20.0.tgz", - "integrity": "sha512-r8aOh8j9cGKpgQAqpzrUHnSIc6a59Y3Xf/cv8sy1DrHCkZHzQGEuoq1tARk6qSyDdtQGSDgpb9kFlruzPvrgwg==", + "version": "1.21.0", + "resolved": "https://registry.npmjs.org/axios/-/axios-1.21.0.tgz", + "integrity": "sha512-YCzXMB53Q9PZBsh7yN7wtapit4WepwcHS2fP8QhGsBxSz5YtgYobV7GGlWlAJi+RxfU77GQTQi2DSLUma42EYA==", "license": "MIT", "dependencies": { "follow-redirects": "^1.16.0", @@ -3823,9 +3842,9 @@ } }, "node_modules/baseline-browser-mapping": { - "version": "2.11.11", - "resolved": "https://registry.npmjs.org/baseline-browser-mapping/-/baseline-browser-mapping-2.11.11.tgz", - "integrity": "sha512-/yImnXwyTvgMkhgekLHok/Rx5vO6E0BmStWlSqKWMVm2a2ITuZ1Tn+9bgLS+gZRdZmWtd8nxuhHpdmCUOWsTQQ==", + "version": "2.11.35", + "resolved": "https://registry.npmjs.org/baseline-browser-mapping/-/baseline-browser-mapping-2.11.35.tgz", + "integrity": "sha512-GNk8KX52CHqeNKGk8+7tZnQab/2k1t/BgrUHPKNdijzpEhF1saPQZHVKb6m5loSAxB39gyrTYw34Qf9CQ3u1qQ==", "dev": true, "license": "Apache-2.0", "bin": { @@ -3917,9 +3936,9 @@ } }, "node_modules/browserslist": { - "version": "4.28.7", - "resolved": "https://registry.npmjs.org/browserslist/-/browserslist-4.28.7.tgz", - "integrity": "sha512-JxV13hNrFxqjOc8alRbq9dK1MM79NEXYpma2B2J4wAtpWS5zIEIKqWPGCl7N4o7Uc7B7itylh7SuDujATRyyTw==", + "version": "4.29.5", + "resolved": "https://registry.npmjs.org/browserslist/-/browserslist-4.29.5.tgz", + "integrity": "sha512-khTmKu5NGYTotqcYo8Bew2k4RAE9PuXRSFRXG2lQBrCEQHyeQ/vX6gKMxfokwywBsLiXZMnHsmWMG1pnO8J7uQ==", "dev": true, "funding": [ { @@ -3937,11 +3956,11 @@ ], "license": "MIT", "dependencies": { - "baseline-browser-mapping": "^2.10.44", - "caniuse-lite": "^1.0.30001806", - "electron-to-chromium": "^1.5.393", - "node-releases": "^2.0.51", - "update-browserslist-db": "^1.2.3" + "baseline-browser-mapping": "^2.11.33", + "caniuse-lite": "^1.0.30001819", + "electron-to-chromium": "^1.5.464", + "node-releases": "^2.0.60", + "update-browserslist-db": "^1.3.4" }, "bin": { "browserslist": "cli.js" @@ -3964,11 +3983,11 @@ } }, "node_modules/bser": { - "version": "2.1.1", - "resolved": "https://registry.npmjs.org/bser/-/bser-2.1.1.tgz", - "integrity": "sha512-gQxTNE/GAfIIrmHLUE3oJyp5FO6HRBfhjnw4/wMmA63ZGDJnWBmgY/lyQBpnDUkGmAhbSe39tx2d/iTOAfglwQ==", + "version": "2.1.2", + "resolved": "https://registry.npmjs.org/bser/-/bser-2.1.2.tgz", + "integrity": "sha512-V2o8YS2EhrKMO9AumnkK0ynynfFlsajpYupwq7S46H5mhcanwxDkNTw3K67wPIcKTH1ffkA4vhMOtAc7gRmPZw==", "dev": true, - "license": "Apache-2.0", + "license": "MIT", "dependencies": { "node-int64": "^0.4.0" } @@ -4060,9 +4079,9 @@ } }, "node_modules/caniuse-lite": { - "version": "1.0.30001806", - "resolved": "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001806.tgz", - "integrity": "sha512-72Cuvd95zbSYPKq6Fhg8eDJRlzgWDf7/mtoZv6Qe/DYNCEBdNxoA3+rZAU2ZhGCpZlns3EssFavaZomckT5Uuw==", + "version": "1.0.30001820", + "resolved": "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001820.tgz", + "integrity": "sha512-gfWD6MxqVCqAOwmODfZf7DchWvlrA+SRdNX7ceLfg3xRqe5ssjjpF7EgslC/0tiLiNTajdaNN/q8c/5u/7Gz8w==", "dev": true, "funding": [ { @@ -4285,13 +4304,16 @@ "license": "MIT" }, "node_modules/core-js-compat": { - "version": "3.49.0", - "resolved": "https://registry.npmjs.org/core-js-compat/-/core-js-compat-3.49.0.tgz", - "integrity": "sha512-VQXt1jr9cBz03b331DFDCCP90b3fanciLkgiOoy8SBHy06gNf+vQ1A3WFLqG7I8TipYIKeYK9wxd0tUrvHcOZA==", + "version": "3.51.0", + "resolved": "https://registry.npmjs.org/core-js-compat/-/core-js-compat-3.51.0.tgz", + "integrity": "sha512-52r6fkXgxv4GLMjmFcMWRx7X9bw071xTTdrDcdyPGRqU2oE+9pCG0bAOMifSBdLw0JRBZKEF0q3B55qPlLuE8g==", "dev": true, "license": "MIT", "dependencies": { - "browserslist": "^4.28.1" + "browserslist": "^4.29.3" + }, + "engines": { + "node": ">=6.4.0" }, "funding": { "type": "opencollective", @@ -4588,9 +4610,9 @@ "license": "MIT" }, "node_modules/electron-to-chromium": { - "version": "1.5.399", - "resolved": "https://registry.npmjs.org/electron-to-chromium/-/electron-to-chromium-1.5.399.tgz", - "integrity": "sha512-lEcqhErbHjXRvd41rnWLpzbyU/IXfIYo7QwaFWmxGeLiLyY2TBCdHnWY88vB+p3ubnihRypDm66panXl7TylLA==", + "version": "1.5.476", + "resolved": "https://registry.npmjs.org/electron-to-chromium/-/electron-to-chromium-1.5.476.tgz", + "integrity": "sha512-LnPnRZ0esKB9NjsSIaC+mffW+5dAtBui6kbK5f9Qykblj4Q33cn6yIhuCcTVjwpvL3YJPqqQ4IlsNyriGNpyFQ==", "dev": true, "license": "ISC" }, @@ -4614,13 +4636,17 @@ "license": "MIT" }, "node_modules/encodeurl": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/encodeurl/-/encodeurl-2.0.0.tgz", - "integrity": "sha512-Q0n9HRi4m6JuGIV1eFlmvJB7ZEVxu93IrMyiMsGC0lrMJMWzRgx6WGquyfQgZVb31vhGgXnfmPNNXmxnOkRBrg==", + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/encodeurl/-/encodeurl-2.0.1.tgz", + "integrity": "sha512-Ev/hIyePLZtpL98x562lvPtenrUfGr0lfaf44HFZ+hDEwso7ccV9QAZrEVLg0hxNAzygaAFxy2dYaAKKM0G06A==", "dev": true, "license": "MIT", "engines": { "node": ">= 0.8" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/express" } }, "node_modules/entities": { @@ -4845,6 +4871,7 @@ "version": "9.32.0", "resolved": "https://registry.npmjs.org/eslint/-/eslint-9.32.0.tgz", "integrity": "sha512-LSehfdpgMeWcTZkWZVIJl+tkZ2nuSkyyB9C27MZqFWXuph7DvaowgcTvKqxvpLW1JZIk8PN7hFY3Rj9LQ7m7lg==", + "deprecated": "This version is no longer supported. Please see https://eslint.org/version-support for other options.", "dev": true, "license": "MIT", "dependencies": { @@ -5573,9 +5600,9 @@ "license": "MIT" }, "node_modules/fastq": { - "version": "1.20.1", - "resolved": "https://registry.npmjs.org/fastq/-/fastq-1.20.1.tgz", - "integrity": "sha512-GGToxJ/w1x32s/D2EKND7kTil4n8OVk/9mycTc4VDza13lOvpUZTGX3mFSCtV9ksdGBVzvsyAVLM6mHFThxXxw==", + "version": "1.20.3", + "resolved": "https://registry.npmjs.org/fastq/-/fastq-1.20.3.tgz", + "integrity": "sha512-XKv5nnLs6nLF71NgiKJLIZFLkPyIEuOselLG7ujZnGrRfQK8HpvY+WqKhAJUAdLomwVHErVS4LfxFlPq0/FTAw==", "dev": true, "license": "ISC", "dependencies": { @@ -5583,13 +5610,13 @@ } }, "node_modules/fb-watchman": { - "version": "2.0.2", - "resolved": "https://registry.npmjs.org/fb-watchman/-/fb-watchman-2.0.2.tgz", - "integrity": "sha512-p5161BqbuCaSnB8jIbzQHOlpgsPmK5rJVDfDKO91Axs5NC1uu3HRQm6wt9cd9/+GtQQIO53JdGXXoyDpTAsgYA==", + "version": "2.0.4", + "resolved": "https://registry.npmjs.org/fb-watchman/-/fb-watchman-2.0.4.tgz", + "integrity": "sha512-tGQtaoYisPDriJBN0mT5yZSyNETnJGA1gTYxaVRAE5KUO3LI9kPUc9WIu8JXcxaIci+faIKlzXqXyPgrmubtBQ==", "dev": true, - "license": "Apache-2.0", + "license": "MIT", "dependencies": { - "bser": "2.1.1" + "bser": "2.1.2" } }, "node_modules/file-entry-cache": { @@ -6233,9 +6260,9 @@ } }, "node_modules/ignore": { - "version": "7.0.6", - "resolved": "https://registry.npmjs.org/ignore/-/ignore-7.0.6.tgz", - "integrity": "sha512-BAg6QkE8W+TuQLrrw0Ugr7HegXduRuuj8/ti2kSOc+jz1dmx8/WNcjr6XGnq5YpDWxFwwaavqD0+jIUOKelTsw==", + "version": "7.0.14", + "resolved": "https://registry.npmjs.org/ignore/-/ignore-7.0.14.tgz", + "integrity": "sha512-wCBiZ77u1tuWde6G/nfOtLaCTYcFDU5yCzARzK10y+rLhzYoL7a7yEemcopcc2Mzow7gZOIjnV2ym1NYmdiJOQ==", "dev": true, "license": "MIT", "engines": { @@ -6455,13 +6482,13 @@ } }, "node_modules/is-core-module": { - "version": "2.16.2", - "resolved": "https://registry.npmjs.org/is-core-module/-/is-core-module-2.16.2.tgz", - "integrity": "sha512-evOr8xfXKxE6qSR0hSXL2r3sd7ALj8+7jQEUvPYcm5sgZFdJ+AYzT6yNmJenvIYQBgIGwfwz08sL8zoL7yq2BA==", + "version": "2.18.0", + "resolved": "https://registry.npmjs.org/is-core-module/-/is-core-module-2.18.0.tgz", + "integrity": "sha512-qyax9fgaKOEC4qK8WZn7Q4IcoZC9RC1O1fFxRcRTq/oMMkWT/uXpqpXa12kzWR409zAt1drYN9N9BO26UmBCmw==", "dev": true, "license": "MIT", "dependencies": { - "hasown": "^2.0.3" + "hasown": "^2.0.4" }, "engines": { "node": ">= 0.4" @@ -7390,9 +7417,9 @@ } }, "node_modules/jest-snapshot/node_modules/semver": { - "version": "7.8.5", - "resolved": "https://registry.npmjs.org/semver/-/semver-7.8.5.tgz", - "integrity": "sha512-Y7/KDsb8LjooZpwaqGyulO6DQlksgCncchHGk+sZIY4SBvUocMBEFH5Ur1fI4dV+Jvl0w6cjvucaIi40puRioA==", + "version": "7.8.6", + "resolved": "https://registry.npmjs.org/semver/-/semver-7.8.6.tgz", + "integrity": "sha512-9lpSSU4Mly3mrtruwLs1eLK6+gzbzqeBFwRNjIjE+9LuDpWdYctrQlQ3ej1Ilgi7gknpsTRnPoLP8DpCHqHIJw==", "dev": true, "license": "ISC", "bin": { @@ -7504,9 +7531,9 @@ } }, "node_modules/jiti": { - "version": "2.5.1", - "resolved": "https://registry.npmjs.org/jiti/-/jiti-2.5.1.tgz", - "integrity": "sha512-twQoecYPiVA5K/h6SxtORw/Bs3ar+mLUtoPSc7iMXzQzK8d7eJ/R09wmTwAjiamETn1cXYPGfNnu7DMoHgu12w==", + "version": "2.7.0", + "resolved": "https://registry.npmjs.org/jiti/-/jiti-2.7.0.tgz", + "integrity": "sha512-AC/7JofJvZGrrneWNaEnJeOLUx+JlGt7tNa0wZiRPT4MY1wmfKjt2+6O2p2uz2+skll8OZZmJMNqeke7kKbNgQ==", "license": "MIT", "bin": { "jiti": "lib/jiti-cli.mjs" @@ -7733,9 +7760,9 @@ } }, "node_modules/make-dir/node_modules/semver": { - "version": "7.8.5", - "resolved": "https://registry.npmjs.org/semver/-/semver-7.8.5.tgz", - "integrity": "sha512-Y7/KDsb8LjooZpwaqGyulO6DQlksgCncchHGk+sZIY4SBvUocMBEFH5Ur1fI4dV+Jvl0w6cjvucaIi40puRioA==", + "version": "7.8.6", + "resolved": "https://registry.npmjs.org/semver/-/semver-7.8.6.tgz", + "integrity": "sha512-9lpSSU4Mly3mrtruwLs1eLK6+gzbzqeBFwRNjIjE+9LuDpWdYctrQlQ3ej1Ilgi7gknpsTRnPoLP8DpCHqHIJw==", "dev": true, "license": "ISC", "bin": { @@ -8018,9 +8045,9 @@ "license": "MIT" }, "node_modules/node-releases": { - "version": "2.0.51", - "resolved": "https://registry.npmjs.org/node-releases/-/node-releases-2.0.51.tgz", - "integrity": "sha512-wRNIrw4DmVLKQlbgOMdkMx27Wrpzes2hh5Jtbi2bjPd+4wJstWIqP5A+lscnqbm0xxmT5Bpg8Lec5ItEBwx6BQ==", + "version": "2.0.63", + "resolved": "https://registry.npmjs.org/node-releases/-/node-releases-2.0.63.tgz", + "integrity": "sha512-6li2QanLsAXpIH2R6j77MzRyvOyrvdTqlKtO4CgBdHGNvN99ZZfyxszHc5o5+IZBWD5u6Hzwg83JoGXmqZNG9Q==", "dev": true, "license": "MIT", "engines": { @@ -8066,10 +8093,27 @@ "node": ">=4" } }, + "node_modules/nodemon/node_modules/minimatch": { + "version": "11.0.1", + "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-11.0.1.tgz", + "integrity": "sha512-t+Vn6DX4wPCxS23y03C0uhF7S1jpi1GfqPrnlEipCJaA2ykiNbMkVlDutZtmvLfRcUN6R8AYVlzTsQrT4RZoLQ==", + "dev": true, + "license": "BlueOak-1.0.0", + "dependencies": { + "@isaacs/nonrecursive-glob-match": "^1.0.1", + "brace-expansion": "^5.0.12" + }, + "engines": { + "node": "18 || 20 || >=22" + }, + "funding": { + "url": "https://github.com/sponsors/isaacs" + } + }, "node_modules/nodemon/node_modules/semver": { - "version": "7.8.5", - "resolved": "https://registry.npmjs.org/semver/-/semver-7.8.5.tgz", - "integrity": "sha512-Y7/KDsb8LjooZpwaqGyulO6DQlksgCncchHGk+sZIY4SBvUocMBEFH5Ur1fI4dV+Jvl0w6cjvucaIi40puRioA==", + "version": "7.8.6", + "resolved": "https://registry.npmjs.org/semver/-/semver-7.8.6.tgz", + "integrity": "sha512-9lpSSU4Mly3mrtruwLs1eLK6+gzbzqeBFwRNjIjE+9LuDpWdYctrQlQ3ej1Ilgi7gknpsTRnPoLP8DpCHqHIJw==", "dev": true, "license": "ISC", "bin": { @@ -8229,9 +8273,9 @@ } }, "node_modules/on-finished": { - "version": "2.4.1", - "resolved": "https://registry.npmjs.org/on-finished/-/on-finished-2.4.1.tgz", - "integrity": "sha512-oVlzkg3ENAhCk2zdv7IJwd/QUD4z2RxRwpkcGY8psCVcCYZNq4wYnVWALHM+brtuJjePWiYF/ClmuDr8Ch5+kg==", + "version": "2.4.2", + "resolved": "https://registry.npmjs.org/on-finished/-/on-finished-2.4.2.tgz", + "integrity": "sha512-ATWUv387i+nLD49EiDoOft5scf32Vsdz3ktrQJG9bi7jRFmaXTssvyvj1EmeKVVgvesbqUtvQQvaS2TpTukAZQ==", "dev": true, "license": "MIT", "dependencies": { @@ -8239,6 +8283,10 @@ }, "engines": { "node": ">= 0.8" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/express" } }, "node_modules/once": { @@ -8635,9 +8683,9 @@ } }, "node_modules/protobufjs": { - "version": "7.6.5", - "resolved": "https://registry.npmjs.org/protobufjs/-/protobufjs-7.6.5.tgz", - "integrity": "sha512-/FPD0nUc9jH6rfFjji9IBqOz4pcSE3CsT1m7Ep6Mdb0LxSUMj8hgl6GomOvZzpNpAqqGaXA0P3VSrZLFzIhQrw==", + "version": "7.6.6", + "resolved": "https://registry.npmjs.org/protobufjs/-/protobufjs-7.6.6.tgz", + "integrity": "sha512-dYDWdjSl5RNb7SgPxGQcRU+GtvP7s2fpkrY0r432PcOIaZ0/rBcxEZnQN67iJhFuQiVw754JDoPruPCNdGsbjg==", "hasInstallScript": true, "license": "BSD-3-Clause", "dependencies": { @@ -8835,16 +8883,16 @@ } }, "node_modules/regenerate": { - "version": "1.4.2", - "resolved": "https://registry.npmjs.org/regenerate/-/regenerate-1.4.2.tgz", - "integrity": "sha512-zrceR/XhGYU/d/opr2EKO7aRHUeiBI8qjtfHqADTwZd6Szfy16la6kqD0MIUs5z5hx6AaKa+PixpPrR289+I0A==", + "version": "1.5.0", + "resolved": "https://registry.npmjs.org/regenerate/-/regenerate-1.5.0.tgz", + "integrity": "sha512-1s+CxXjJ71i7LNVy8nYwg47XV4y6lAnOEhsMtSKq3WpmPfhl9LuKlTqKIn/3yUpE8lBz+W+TT88Bxyhnr0U4yw==", "dev": true, "license": "MIT" }, "node_modules/regenerate-unicode-properties": { - "version": "10.2.2", - "resolved": "https://registry.npmjs.org/regenerate-unicode-properties/-/regenerate-unicode-properties-10.2.2.tgz", - "integrity": "sha512-m03P+zhBeQd1RGnYxrGyDAPpWX/epKirLrp8e3qevZdVkKtnCrjjWczIbYc8+xd6vcTStVlqfycTx1KR4LOr0g==", + "version": "10.3.0", + "resolved": "https://registry.npmjs.org/regenerate-unicode-properties/-/regenerate-unicode-properties-10.3.0.tgz", + "integrity": "sha512-9ns8odR8e9q3otKeHj3DE80jZYKg6zVeZKE+zQmRKXFoVUcuiTGeO6iusDhPRoIQQPVPRvH+SfBhrTud4eczuw==", "dev": true, "license": "MIT", "dependencies": { @@ -8876,14 +8924,14 @@ } }, "node_modules/regexpu-core": { - "version": "6.4.0", - "resolved": "https://registry.npmjs.org/regexpu-core/-/regexpu-core-6.4.0.tgz", - "integrity": "sha512-0ghuzq67LI9bLXpOX/ISfve/Mq33a4aFRzoQYhnnok1JOFpmE/A2TBGkNVenOGEeSBCjIiWcc6MVOG5HEQv0sA==", + "version": "6.5.3", + "resolved": "https://registry.npmjs.org/regexpu-core/-/regexpu-core-6.5.3.tgz", + "integrity": "sha512-E8VgUoSK+LMQrLboDxavm76MTBGrQhx9RiNuomRmYnZ10Uw12HrI8fkxOOncktb2hBpzIZ9SV/347euQHG5z+g==", "dev": true, "license": "MIT", "dependencies": { - "regenerate": "^1.4.2", - "regenerate-unicode-properties": "^10.2.2", + "regenerate": "^1.5.0", + "regenerate-unicode-properties": "^10.3.0", "regjsgen": "^0.8.0", "regjsparser": "^0.13.0", "unicode-match-property-ecmascript": "^2.0.0", @@ -8901,9 +8949,9 @@ "license": "MIT" }, "node_modules/regjsparser": { - "version": "0.13.2", - "resolved": "https://registry.npmjs.org/regjsparser/-/regjsparser-0.13.2.tgz", - "integrity": "sha512-NgRBy2Nx/bE+9F27nVHnqcN5HjyLmecqsqx2PJHu3/IEtADD4WuxuXIVExD5PoSDFVrl78dOonfcOe5O+5nbzQ==", + "version": "0.13.4", + "resolved": "https://registry.npmjs.org/regjsparser/-/regjsparser-0.13.4.tgz", + "integrity": "sha512-EWV80YgFaVgFrjGCAsV7oybp4GOxbls5RzBg8OB0nKEVXsBJR1JlV8Di1JhCROg3MzTfe1RI8yitIm1eOs68iA==", "dev": true, "license": "BSD-2-Clause", "dependencies": { @@ -8933,14 +8981,14 @@ } }, "node_modules/resolve": { - "version": "1.22.12", - "resolved": "https://registry.npmjs.org/resolve/-/resolve-1.22.12.tgz", - "integrity": "sha512-TyeJ1zif53BPfHootBGwPRYT1RUt6oGWsaQr8UyZW/eAm9bKoijtvruSDEmZHm92CwS9nj7/fWttqPCgzep8CA==", + "version": "1.22.14", + "resolved": "https://registry.npmjs.org/resolve/-/resolve-1.22.14.tgz", + "integrity": "sha512-1ZjYvR9sbkiwC5+9QHetqW5HmA2pHRMaoupD01t2HlYnV/vydC2zPwLixhsMieSWVZt0JJRg5LVIk0Ow1D/TrA==", "dev": true, "license": "MIT", "dependencies": { "es-errors": "^1.3.0", - "is-core-module": "^2.16.1", + "is-core-module": "^2.18.0", "path-parse": "^1.0.7", "supports-preserve-symlinks-flag": "^1.0.0" }, @@ -8978,9 +9026,9 @@ } }, "node_modules/resolve.exports": { - "version": "2.0.3", - "resolved": "https://registry.npmjs.org/resolve.exports/-/resolve.exports-2.0.3.tgz", - "integrity": "sha512-OcXjMsGdhL4XnbShKpAcSqPMzQoYkYyhbEaeSko47MjRP9NfEQMhZkXL1DoFlt9LWQn4YttrdnV6X2OiyzBi+A==", + "version": "2.0.4", + "resolved": "https://registry.npmjs.org/resolve.exports/-/resolve.exports-2.0.4.tgz", + "integrity": "sha512-zepuGL0ulf+nt+XaFrlKeaiTJeyPFPLLY62+ncq1/VTHBdt3HsfXOH60priZ6tnXQozdGcDeIF5JVTanvIcYWQ==", "dev": true, "license": "MIT", "engines": { @@ -9178,9 +9226,9 @@ "license": "MIT" }, "node_modules/semver": { - "version": "6.3.1", - "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.1.tgz", - "integrity": "sha512-BR7VvDCVHO+q2xBEWskxS6DJE1qRnb7DxzUrogb71CWoSficBxYsiAGd+Kl0mmq/MprG9yArRkyrQxTO6XjMzA==", + "version": "6.3.2", + "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.2.tgz", + "integrity": "sha512-GYrCADwpu6yV5OAvchkQ27Z5wwMxWAEMg5NNWjyHh/5DboFFqbdbvYNIvZouQpxXyeMPoTOh0vdPYKlf0ZswdQ==", "dev": true, "license": "ISC", "bin": { @@ -9421,9 +9469,9 @@ } }, "node_modules/simple-update-notifier/node_modules/semver": { - "version": "7.8.5", - "resolved": "https://registry.npmjs.org/semver/-/semver-7.8.5.tgz", - "integrity": "sha512-Y7/KDsb8LjooZpwaqGyulO6DQlksgCncchHGk+sZIY4SBvUocMBEFH5Ur1fI4dV+Jvl0w6cjvucaIi40puRioA==", + "version": "7.8.6", + "resolved": "https://registry.npmjs.org/semver/-/semver-7.8.6.tgz", + "integrity": "sha512-9lpSSU4Mly3mrtruwLs1eLK6+gzbzqeBFwRNjIjE+9LuDpWdYctrQlQ3ej1Ilgi7gknpsTRnPoLP8DpCHqHIJw==", "dev": true, "license": "ISC", "bin": { @@ -9766,9 +9814,9 @@ } }, "node_modules/tinyglobby/node_modules/picomatch": { - "version": "4.0.5", - "resolved": "https://registry.npmjs.org/picomatch/-/picomatch-4.0.5.tgz", - "integrity": "sha512-RvwwcruNjI1ncT5xRakeyS9Lf8lcItv34KD+aif+VH9kduAyfYBipGh12274xtenIPZ119/R9BdTBa8gAwSh0A==", + "version": "4.0.7", + "resolved": "https://registry.npmjs.org/picomatch/-/picomatch-4.0.7.tgz", + "integrity": "sha512-qcJu88Q2IWqJsDD529JKMdwGm/dvInW4HvQnRwiH9JtihJvzGOscDtHE3x1pBKeUOTysQ8kVmLnJ2kJu7yhcGA==", "dev": true, "license": "MIT", "engines": { @@ -9832,15 +9880,15 @@ } }, "node_modules/ts-jest": { - "version": "29.4.12", - "resolved": "https://registry.npmjs.org/ts-jest/-/ts-jest-29.4.12.tgz", - "integrity": "sha512-Ov6ClY53Fflh6BGAnY2DlTq1hYDrTycz2PVTXBWFW2CU+9zrEqAp9fWdGXl42EXO5RLSFAcAZ2JFKbP+zBTFfw==", + "version": "29.4.15", + "resolved": "https://registry.npmjs.org/ts-jest/-/ts-jest-29.4.15.tgz", + "integrity": "sha512-s2qmEUYFRqbjz1wv0EmccNPVOb45HOFpFuhzQJLKShYVisuTbCFPIIAIV2EuK5rIxb4BejLDbH7dnBZfYjybUQ==", "dev": true, "license": "MIT", "dependencies": { "bs-logger": "^0.2.6", "fast-json-stable-stringify": "^2.1.0", - "handlebars": "^4.7.9", + "handlebars": "^4.7.10", "json5": "^2.2.3", "lodash.memoize": "^4.1.2", "make-error": "^1.3.6", @@ -9855,7 +9903,7 @@ "node": "^14.15.0 || ^16.10.0 || ^18.0.0 || >=20.0.0" }, "peerDependencies": { - "@babel/core": ">=7.0.0-beta.0 <8", + "@babel/core": ">=7.0.0-beta.0 <9", "@jest/transform": "^29.0.0 || ^30.0.0", "@jest/types": "^29.0.0 || ^30.0.0", "babel-jest": "^29.0.0 || ^30.0.0", @@ -9885,9 +9933,9 @@ } }, "node_modules/ts-jest/node_modules/semver": { - "version": "7.8.5", - "resolved": "https://registry.npmjs.org/semver/-/semver-7.8.5.tgz", - "integrity": "sha512-Y7/KDsb8LjooZpwaqGyulO6DQlksgCncchHGk+sZIY4SBvUocMBEFH5Ur1fI4dV+Jvl0w6cjvucaIi40puRioA==", + "version": "7.8.6", + "resolved": "https://registry.npmjs.org/semver/-/semver-7.8.6.tgz", + "integrity": "sha512-9lpSSU4Mly3mrtruwLs1eLK6+gzbzqeBFwRNjIjE+9LuDpWdYctrQlQ3ej1Ilgi7gknpsTRnPoLP8DpCHqHIJw==", "dev": true, "license": "ISC", "bin": { @@ -9991,9 +10039,9 @@ } }, "node_modules/turndown": { - "version": "7.2.4", - "resolved": "https://registry.npmjs.org/turndown/-/turndown-7.2.4.tgz", - "integrity": "sha512-I8yFsfRzmzK0WV1pNNOA4A7y4RDfFxPRxb3t+e3ui14qSGOxGtiSP6GjeX+Y6CHb7HYaFj7ECUD7VE5kQMZWGQ==", + "version": "7.2.5", + "resolved": "https://registry.npmjs.org/turndown/-/turndown-7.2.5.tgz", + "integrity": "sha512-EKZvCCFHh8sWttpAMs10U6niZFJ2cpz8LkCPlylxoG4JcHF50J7EHnnBW3AY1qXtUMu7kDjCp7dnggB1sIbqEQ==", "license": "MIT", "dependencies": { "@mixmark-io/domino": "^2.2.0" @@ -10089,19 +10137,18 @@ } }, "node_modules/typed-array-byte-offset": { - "version": "1.0.4", - "resolved": "https://registry.npmjs.org/typed-array-byte-offset/-/typed-array-byte-offset-1.0.4.tgz", - "integrity": "sha512-bTlAFB/FBYMcuX81gbL4OcpH5PmlFHqlCCpAl8AlEzMz5k53oNDvN8p1PNOWLEmI2x4orp3raOFB51tv9X+MFQ==", + "version": "1.0.5", + "resolved": "https://registry.npmjs.org/typed-array-byte-offset/-/typed-array-byte-offset-1.0.5.tgz", + "integrity": "sha512-0FHJvLPqZ7KJzp17O13jfsAjsqazgrxBu2zEK95PmUz8lv2+GjRuxUInCr2Rk9Dms3ihN21zJ929ZO43yJ95QQ==", "dev": true, "license": "MIT", "dependencies": { "available-typed-arrays": "^1.0.7", - "call-bind": "^1.0.8", - "for-each": "^0.3.3", + "call-bind": "^1.0.9", + "for-each": "^0.3.5", "gopd": "^1.2.0", - "has-proto": "^1.2.0", "is-typed-array": "^1.1.15", - "reflect.getprototypeof": "^1.0.9" + "reflect.getprototypeof": "^1.0.10" }, "engines": { "node": ">= 0.4" @@ -10438,9 +10485,9 @@ } }, "node_modules/typescript-eslint/node_modules/semver": { - "version": "7.8.5", - "resolved": "https://registry.npmjs.org/semver/-/semver-7.8.5.tgz", - "integrity": "sha512-Y7/KDsb8LjooZpwaqGyulO6DQlksgCncchHGk+sZIY4SBvUocMBEFH5Ur1fI4dV+Jvl0w6cjvucaIi40puRioA==", + "version": "7.8.6", + "resolved": "https://registry.npmjs.org/semver/-/semver-7.8.6.tgz", + "integrity": "sha512-9lpSSU4Mly3mrtruwLs1eLK6+gzbzqeBFwRNjIjE+9LuDpWdYctrQlQ3ej1Ilgi7gknpsTRnPoLP8DpCHqHIJw==", "dev": true, "license": "ISC", "bin": { @@ -10557,9 +10604,9 @@ } }, "node_modules/update-browserslist-db": { - "version": "1.2.3", - "resolved": "https://registry.npmjs.org/update-browserslist-db/-/update-browserslist-db-1.2.3.tgz", - "integrity": "sha512-Js0m9cx+qOgDxo0eMiFGEueWztz+d4+M3rGlmKPT+T4IS/jP4ylw3Nwpu6cpTTP8R1MAC1kF4VbdLt3ARf209w==", + "version": "1.3.4", + "resolved": "https://registry.npmjs.org/update-browserslist-db/-/update-browserslist-db-1.3.4.tgz", + "integrity": "sha512-t8wonIOdQyOjtPd2VktlBu6QjTVTks6v8bSi7kd0r2Vll8TK1JYDZtRRdbmCHOAMphkZgrzK+L+vXK4pyZ8t4A==", "dev": true, "funding": [ { @@ -10733,9 +10780,9 @@ } }, "node_modules/which-typed-array": { - "version": "1.1.22", - "resolved": "https://registry.npmjs.org/which-typed-array/-/which-typed-array-1.1.22.tgz", - "integrity": "sha512-fvO4ExWMFsqyhG3AiPAObMuY1lxaqgYcxbc49CNdWDDECOJNgQyvsOWVwbZc+qf3rzRtxojBK+CMEv0Ld5CYpw==", + "version": "1.1.24", + "resolved": "https://registry.npmjs.org/which-typed-array/-/which-typed-array-1.1.24.tgz", + "integrity": "sha512-wk4Mf4pR5mRP7eYuuTBCIQ9d0ud2Fv2jRLQpfgnRjbOxAFHmjKFValgTpitVKzJJS8ajnYQV2Du1SZ8j6b/EUQ==", "dev": true, "license": "MIT", "dependencies": { diff --git a/code/package.json b/code/package.json index c1802ae..b3db0cf 100644 --- a/code/package.json +++ b/code/package.json @@ -61,16 +61,21 @@ }, "dependencies": { "@devrev/airsync-sdk": "2.1.0-beta.2", - "@devrev/typescript-sdk": "1.1.78", + "@devrev/typescript-sdk": "1.1.79", "axios": "^1.20.0", "dotenv": "^16.0.3", - "jiti": "2.5.1", + "jiti": "2.7.0", "js-jsonl": "^1.1.1", "markdown-it": "15.0.3", - "turndown": "7.2.4", + "turndown": "7.2.5", "yargs": "^17.6.2" }, "engines": { "node": ">=20" + }, + "overrides": { + "nodemon": { + "minimatch": "11.0.1" + } } } diff --git a/code/test/dependency-compatibility.test.ts b/code/test/dependency-compatibility.test.ts new file mode 100644 index 0000000..8cfce00 --- /dev/null +++ b/code/test/dependency-compatibility.test.ts @@ -0,0 +1,22 @@ +import path from 'node:path'; + +const match = require('nodemon/lib/monitor/match'); + +describe('nodemon with patched minimatch', () => { + it('watches TypeScript and dotfiles while respecting ignored paths', () => { + const result = match( + ['src/main.ts', 'src/main.js', 'test/runner.ts', 'src/.hidden.ts'], + ['!**/test/**', '**/src/**'], + 'ts' + ); + + expect(result.result).toEqual([path.resolve('src/main.ts'), path.resolve('src/.hidden.ts')]); + expect(result.ignored).toBe(1); + }); + + it('matches multiple watched extensions', () => { + const result = match(['src/main.ts', 'src/config.json', 'src/readme.md'], ['**/src/**'], 'ts,json'); + + expect(result.result).toEqual([path.resolve('src/main.ts'), path.resolve('src/config.json')]); + }); +}); From 63928c375166d49fe4f2afd6080d02f16b9c5518 Mon Sep 17 00:00:00 2001 From: Radovan Jorgic Date: Wed, 4 Nov 2026 13:27:16 +0100 Subject: [PATCH 3/5] refactor: use Markdown sample bodies without conversion dependencies --- DEPENDENCY_REVIEW.md | 21 --- README.md | 8 - code/package-lock.json | 150 ------------------ code/package.json | 4 - .../external-system/data-denormalization.ts | 7 +- .../external-system/data-normalization.ts | 5 +- .../functions/external-system/http-client.ts | 30 ++-- code/test/data-normalization.test.ts | 21 ++- 8 files changed, 33 insertions(+), 213 deletions(-) delete mode 100644 DEPENDENCY_REVIEW.md diff --git a/DEPENDENCY_REVIEW.md b/DEPENDENCY_REVIEW.md deleted file mode 100644 index 5c1b9cb..0000000 --- a/DEPENDENCY_REVIEW.md +++ /dev/null @@ -1,21 +0,0 @@ -# Dependency review — 2026-11-04 - -This change consolidates the pending TypeScript SDK and jiti updates, pins AirSync SDK 2.1.0-beta.2, updates Turndown to 7.2.5, and refreshes dependencies within their existing declared ranges. It preserves the body-parser 1.20.9, handlebars 4.7.10, qs 6.16.2, and follow-redirects 1.16.2 security patches already selected by this branch or main. - -A scoped override selects minimatch 11.0.1 for nodemon. Its CommonJS named `minimatch` export supports nodemon's caller; regression tests exercise watched TypeScript files, dotfiles, ignores, and multiple extensions. Older minimatch consumers retain their versions because v11 replaces the matching engine and is incompatible with legacy callable exports and internal APIs. A global override would require separate caller migrations. - -Fresh Snyk scans against main at 0369f4a and this change include development dependencies. Production dependencies have zero reported vulnerabilities. With development dependencies included, seven unique advisories remain (two high, five medium), across 23 paths versus 24 on main. The nodemon path for SNYK-JS-MINIMATCH-22111072 is removed; the advisory remains through other tooling paths. - -| Remaining advisory | Package | Reason deferred | -| --- | --- | --- | -| [SNYK-JS-BRACES-19963945](https://security.snyk.io/vuln/SNYK-JS-BRACES-19963945) | braces 3.0.3 | No published patch; used by watcher and test tooling. | -| [SNYK-JS-DEEPMERGE-19964053](https://security.snyk.io/vuln/SNYK-JS-DEEPMERGE-19964053) | deepmerge 4.3.1 | No published patch; Jest configuration dependency. | -| [SNYK-JS-INFLIGHT-6095116](https://security.snyk.io/vuln/SNYK-JS-INFLIGHT-6095116) | inflight 1.0.6 | No published patch; removing it requires migrating the Jest/coverage toolchain. | -| [SNYK-JS-MINIMATCH-22111072](https://security.snyk.io/vuln/SNYK-JS-MINIMATCH-22111072) | minimatch 3, 8, 9, 10 | Patched in 11.0.1; remaining consumers need compatible parent upgrades or migrations. | -| [SNYK-JS-URIJS-19963961](https://security.snyk.io/vuln/SNYK-JS-URIJS-19963961) | uri-js 4.4.1 | No published patch; ESLint/Ajv dependency. | -| [SNYK-JS-URIJS-19963963](https://security.snyk.io/vuln/SNYK-JS-URIJS-19963963) | uri-js 4.4.1 | No published patch; ESLint/Ajv dependency. | -| [SNYK-JS-URIJS-20341609](https://security.snyk.io/vuln/SNYK-JS-URIJS-20341609) | uri-js 4.4.1 | No published patch; ESLint/Ajv dependency. | - -Snyk Code returns three existing findings with accepted suppressions: local HTTP in `test/runner.test.ts`, fixture paths in `src/main.ts`, and local server responses in `test/runner.ts`. There are no active Code findings. Existing policies and accepted decisions were preserved. Hosted project inventory pagination failed after 2,100 entries, so these results rely on fresh local scans rather than a complete hosted inventory. - -Validation: reproducible npm install, TypeScript build, lint, all 11 tests, and local SDK extraction/loading and attachment worker checks pass. npm audit reports zero high/critical findings and 37 low/moderate findings. The import fixes were also verified on DEV before this dependency refresh: 15 issues, 10 users, two linked attachments, and no warnings. The refreshed dependencies have local validation; that exact dependency tree has not been redeployed to DEV. diff --git a/README.md b/README.md index 8ef8913..d00ef3c 100644 --- a/README.md +++ b/README.md @@ -14,11 +14,6 @@ See the [AirSync snap-in documentation](https://developer.devrev.ai/airsync) for The template uses `@devrev/airsync-sdk` and requires Node.js 20 or newer. -Todo HTML bodies are converted to Markdown rich-text arrays and mapped with -`use_rich_text`. Reverse sync renders rich text back to HTML. The sample -attachments download a README pinned to a repository commit; replace these URLs -with downloadable files from your external system. - ## Local Fixture Testing From the `code/` directory, you can run the built-in fixture runner to test the @@ -35,6 +30,3 @@ The runner reads `code/.env` and resolves `${TODO_API_KEY}` in fixture files, so copy `code/.env.example` before running the fixtures. The fixture runner and local test server set `AIRSYNC_LOCAL_DEVELOPMENT=1` to enable local logging and artifact copies in `code/extracted_files/`. - -Run the rich-text and attachment fixture regression tests from `code/` with -`npm test -- --runInBand`. diff --git a/code/package-lock.json b/code/package-lock.json index 743fcaf..4200dcb 100644 --- a/code/package-lock.json +++ b/code/package-lock.json @@ -15,8 +15,6 @@ "dotenv": "^16.0.3", "jiti": "2.7.0", "js-jsonl": "^1.1.1", - "markdown-it": "15.0.3", - "turndown": "7.2.5", "yargs": "^17.6.2" }, "devDependencies": { @@ -27,9 +25,7 @@ "@types/body-parser": "^1.19.5", "@types/express": "^4.17.21", "@types/jest": "^29.4.0", - "@types/markdown-it": "14.2.0", "@types/node": "^18.13.0", - "@types/turndown": "5.0.6", "@types/yargs": "^17.0.24", "@typescript-eslint/eslint-plugin": "^8.32.0", "@typescript-eslint/parser": "^8.32.0", @@ -2649,12 +2645,6 @@ "@jridgewell/sourcemap-codec": "^1.4.14" } }, - "node_modules/@mixmark-io/domino": { - "version": "2.2.0", - "resolved": "https://registry.npmjs.org/@mixmark-io/domino/-/domino-2.2.0.tgz", - "integrity": "sha512-Y28PR25bHXUg88kCV7nivXrP2Nj2RueZ3/l/jdx6J9f8J4nsEGcgX0Qe6lt7Pa+J79+kPiJU3LguR6O/6zrLOw==", - "license": "BSD-2-Clause" - }, "node_modules/@nodelib/fs.scandir": { "version": "2.1.5", "resolved": "https://registry.npmjs.org/@nodelib/fs.scandir/-/fs.scandir-2.1.5.tgz", @@ -2992,31 +2982,6 @@ "dev": true, "license": "MIT" }, - "node_modules/@types/linkify-it": { - "version": "5.0.0", - "resolved": "https://registry.npmjs.org/@types/linkify-it/-/linkify-it-5.0.0.tgz", - "integrity": "sha512-sVDA58zAw4eWAffKOaQH5/5j3XeayukzDk+ewSsnv3p4yJEZHCCzMDiZM8e0OUrRvmpGZ85jf4yDHkHsgBNr9Q==", - "dev": true, - "license": "MIT" - }, - "node_modules/@types/markdown-it": { - "version": "14.2.0", - "resolved": "https://registry.npmjs.org/@types/markdown-it/-/markdown-it-14.2.0.tgz", - "integrity": "sha512-NoQ2yGlLWj4wpxMs+TYmRKk3thDrQ97agr7sFqfLsAlvoS8SNQuTrlObhFqG9iugdTtgOE9jpJ6FNM4ZGsa5xQ==", - "dev": true, - "license": "MIT", - "dependencies": { - "@types/linkify-it": "^5", - "@types/mdurl": "^2" - } - }, - "node_modules/@types/mdurl": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/@types/mdurl/-/mdurl-2.0.0.tgz", - "integrity": "sha512-RGdgjQUZba5p6QEFAVx2OGb8rQDL/cPRG7GiedRzMcJ1tYnUANBncjbSB1NRGwbvjcPeikRABz2nshyPk1bhWg==", - "dev": true, - "license": "MIT" - }, "node_modules/@types/mime": { "version": "1.3.5", "resolved": "https://registry.npmjs.org/@types/mime/-/mime-1.3.5.tgz", @@ -3087,13 +3052,6 @@ "dev": true, "license": "MIT" }, - "node_modules/@types/turndown": { - "version": "5.0.6", - "resolved": "https://registry.npmjs.org/@types/turndown/-/turndown-5.0.6.tgz", - "integrity": "sha512-ru00MoyeeouE5BX4gRL+6m/BsDfbRayOskWqUvh7CLGW+UXxHQItqALa38kKnOiZPqJrtzJUgAC2+F0rL1S4Pg==", - "dev": true, - "license": "MIT" - }, "node_modules/@types/yargs": { "version": "17.0.35", "resolved": "https://registry.npmjs.org/@types/yargs/-/yargs-17.0.35.tgz", @@ -4649,18 +4607,6 @@ "url": "https://opencollective.com/express" } }, - "node_modules/entities": { - "version": "8.1.0", - "resolved": "https://registry.npmjs.org/entities/-/entities-8.1.0.tgz", - "integrity": "sha512-kxL7msIffSuh9aaFAMD7rxAIuTRMAHMeBtgHW2yUdWw732ZNh4MehkF2gdjvtdmikkaIP9bFDDJOPlsvm7avrA==", - "license": "BSD-2-Clause", - "engines": { - "node": ">=20.19.0" - }, - "funding": { - "url": "https://github.com/fb55/entities?sponsor=1" - } - }, "node_modules/error-ex": { "version": "1.3.4", "resolved": "https://registry.npmjs.org/error-ex/-/error-ex-1.3.4.tgz", @@ -7674,25 +7620,6 @@ "dev": true, "license": "MIT" }, - "node_modules/linkify-it": { - "version": "6.1.0", - "resolved": "https://registry.npmjs.org/linkify-it/-/linkify-it-6.1.0.tgz", - "integrity": "sha512-wJ/TwpSDTLepCrQoYWYIExIKg5Zchex2Nn5yk2mFnB+6PtdkHtyLx742md9csRjjOnGkKIS/RrbY7l8D6gT9Vw==", - "funding": [ - { - "type": "github", - "url": "https://github.com/sponsors/puzrin" - }, - { - "type": "github", - "url": "https://github.com/sponsors/markdown-it" - } - ], - "license": "MIT", - "dependencies": { - "uc.micro": "^3.0.0" - } - }, "node_modules/locate-path": { "version": "5.0.0", "resolved": "https://registry.npmjs.org/locate-path/-/locate-path-5.0.0.tgz", @@ -7789,49 +7716,6 @@ "tmpl": "1.0.5" } }, - "node_modules/markdown-it": { - "version": "15.0.3", - "resolved": "https://registry.npmjs.org/markdown-it/-/markdown-it-15.0.3.tgz", - "integrity": "sha512-+Az7Ojz3iRGu8KYMvJ6xVhvrxP3eE+vEtJX75Ow88XBpcQNV/0lGX5ZynIIBftREo4DC2jsveAMDaeltmm8QvQ==", - "funding": [ - { - "type": "github", - "url": "https://github.com/sponsors/puzrin" - }, - { - "type": "github", - "url": "https://github.com/sponsors/markdown-it" - } - ], - "license": "MIT", - "dependencies": { - "argparse": "^3.0.3", - "entities": "^8.1.0", - "linkify-it": "^6.1.0", - "mdurl": "^2.1.0", - "punycode.js": "^2.3.1", - "uc.micro": "^3.0.0" - }, - "bin": { - "markdown-it": "bin/markdown-it.mjs" - } - }, - "node_modules/markdown-it/node_modules/argparse": { - "version": "3.0.4", - "resolved": "https://registry.npmjs.org/argparse/-/argparse-3.0.4.tgz", - "integrity": "sha512-fwWK3Zq22l4XJJjx5mcBHGikIk+hJqO+32dPm0Jur7+rtG5x1scOjSfdT9ZKeWHPpsya/l0HHK4tDImBkTrtvA==", - "funding": [ - { - "type": "github", - "url": "https://github.com/sponsors/puzrin" - }, - { - "type": "github", - "url": "https://github.com/sponsors/nodeca" - } - ], - "license": "PSF-2.0" - }, "node_modules/math-intrinsics": { "version": "1.1.0", "resolved": "https://registry.npmjs.org/math-intrinsics/-/math-intrinsics-1.1.0.tgz", @@ -7841,12 +7725,6 @@ "node": ">= 0.4" } }, - "node_modules/mdurl": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/mdurl/-/mdurl-2.1.0.tgz", - "integrity": "sha512-1+HBaOx0zi/dQWht8rNv9MYf9qqpqL/kxI0hXImU6Y547zM6Sni8BQibt7ifgMcYtQg41ao3Ivd6cnSM86inpg==", - "license": "MIT" - }, "node_modules/media-typer": { "version": "0.3.0", "resolved": "https://registry.npmjs.org/media-typer/-/media-typer-0.3.0.tgz", @@ -8749,15 +8627,6 @@ "node": ">=6" } }, - "node_modules/punycode.js": { - "version": "2.3.1", - "resolved": "https://registry.npmjs.org/punycode.js/-/punycode.js-2.3.1.tgz", - "integrity": "sha512-uxFIHU0YlHYhDQtV4R9J6a52SLx28BCjT+4ieh7IGbgwVJWO+km431c4yRlREUAsAmt/uMjQUyQHNEPf0M39CA==", - "license": "MIT", - "engines": { - "node": ">=6" - } - }, "node_modules/pure-rand": { "version": "6.1.0", "resolved": "https://registry.npmjs.org/pure-rand/-/pure-rand-6.1.0.tgz", @@ -10038,19 +9907,6 @@ "node": ">=4" } }, - "node_modules/turndown": { - "version": "7.2.5", - "resolved": "https://registry.npmjs.org/turndown/-/turndown-7.2.5.tgz", - "integrity": "sha512-EKZvCCFHh8sWttpAMs10U6niZFJ2cpz8LkCPlylxoG4JcHF50J7EHnnBW3AY1qXtUMu7kDjCp7dnggB1sIbqEQ==", - "license": "MIT", - "dependencies": { - "@mixmark-io/domino": "^2.2.0" - }, - "engines": { - "node": ">=18", - "npm": ">=9" - } - }, "node_modules/type-check": { "version": "0.4.0", "resolved": "https://registry.npmjs.org/type-check/-/type-check-0.4.0.tgz", @@ -10497,12 +10353,6 @@ "node": ">=10" } }, - "node_modules/uc.micro": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/uc.micro/-/uc.micro-3.0.0.tgz", - "integrity": "sha512-U3PppEkleoTnIfi8BozMx3yju3qc/L6SwqWo2Sw+54PX+PX0q9I+r1Um5HCmqD7n9VDX5/v3vQH/AjA6deDdtw==", - "license": "MIT" - }, "node_modules/uglify-js": { "version": "3.19.3", "resolved": "https://registry.npmjs.org/uglify-js/-/uglify-js-3.19.3.tgz", diff --git a/code/package.json b/code/package.json index b3db0cf..67c1bfd 100644 --- a/code/package.json +++ b/code/package.json @@ -30,9 +30,7 @@ "@types/body-parser": "^1.19.5", "@types/express": "^4.17.21", "@types/jest": "^29.4.0", - "@types/markdown-it": "14.2.0", "@types/node": "^18.13.0", - "@types/turndown": "5.0.6", "@types/yargs": "^17.0.24", "@typescript-eslint/eslint-plugin": "^8.32.0", "@typescript-eslint/parser": "^8.32.0", @@ -66,8 +64,6 @@ "dotenv": "^16.0.3", "jiti": "2.7.0", "js-jsonl": "^1.1.1", - "markdown-it": "15.0.3", - "turndown": "7.2.5", "yargs": "^17.6.2" }, "engines": { diff --git a/code/src/functions/external-system/data-denormalization.ts b/code/src/functions/external-system/data-denormalization.ts index 3646446..083a2db 100644 --- a/code/src/functions/external-system/data-denormalization.ts +++ b/code/src/functions/external-system/data-denormalization.ts @@ -1,17 +1,14 @@ import { ExternalSystemAttachment, ExternalSystemItem } from '@devrev/airsync-sdk'; -import MarkdownIt from 'markdown-it'; import { ExternalAttachment, ExternalTodo } from './types'; -const markdown = new MarkdownIt(); - export function denormalizeTodo(item: ExternalSystemItem): ExternalTodo { return { id: item.id.devrev, body: typeof item.data.body === 'string' ? item.data.body - : markdown.render((item.data.body?.content ?? []).map((part: string | { fallback_record_name?: string; id: string }) => + : (item.data.body?.content ?? []).map((part: string | { fallback_record_name?: string; id: string }) => typeof part === 'string' ? part : part.fallback_record_name ?? part.id - ).join('')), + ).join(''), creator: item.data.creator, owner: item.data.owner, title: item.data.title, diff --git a/code/src/functions/external-system/data-normalization.ts b/code/src/functions/external-system/data-normalization.ts index 711d6ac..4a2950d 100644 --- a/code/src/functions/external-system/data-normalization.ts +++ b/code/src/functions/external-system/data-normalization.ts @@ -1,9 +1,6 @@ import { ExternalSyncUnit, NormalizedAttachment, NormalizedItem } from '@devrev/airsync-sdk'; -import TurndownService from 'turndown'; import { ExternalAttachment, ExternalTodo, ExternalTodoList, ExternalUser } from './types'; -const turndown = new TurndownService(); - // TODO: Replace with your actual normalization functions that will be used to // normalize the data received from the external system. You can modify the // normalization functions to suit your needs. For example, you might want to @@ -28,7 +25,7 @@ export function normalizeTodo(item: ExternalTodo): NormalizedItem { created_date: item.created_date, modified_date: item.modified_date, data: { - body: [turndown.turndown(item.body)], + body: [item.body], creator: item.creator, owner: item.owner, title: item.title, diff --git a/code/src/functions/external-system/http-client.ts b/code/src/functions/external-system/http-client.ts index cb0082b..501bb4f 100644 --- a/code/src/functions/external-system/http-client.ts +++ b/code/src/functions/external-system/http-client.ts @@ -28,21 +28,21 @@ const TODO_LISTS: ExternalTodoList[] = [ ]; const TODOS: ExternalTodo[] = [ - { id: 'todo-1', created_date: '2018-06-01T08:00:00Z', modified_date: '2018-06-01T08:00:00Z', title: 'Set up development environment', body: '

Install Node.js, configure editor, clone repos.

', creator: 'user-1', owner: 'user-1' }, - { id: 'todo-2', created_date: '2019-09-15T10:00:00Z', modified_date: '2019-09-15T10:00:00Z', title: 'Write project proposal', body: '

Draft the initial project proposal document.

', creator: 'user-2', owner: 'user-2' }, - { id: 'todo-3', created_date: '2020-02-20T09:00:00Z', modified_date: '2020-02-20T09:00:00Z', title: 'Design database schema', body: '

Define entities, relationships and indexes.

', creator: 'user-1', owner: 'user-3' }, - { id: 'todo-4', created_date: '2021-05-10T14:00:00Z', modified_date: '2021-05-10T14:00:00Z', title: 'Implement authentication', body: '

Add JWT-based authentication to the API.

', creator: 'user-3', owner: 'user-4' }, - { id: 'todo-5', created_date: '2022-01-18T11:30:00Z', modified_date: '2022-03-05T16:00:00Z', title: 'Add unit tests', body: '

Achieve 80% test coverage for the core module.

', creator: 'user-2', owner: 'user-5' }, - { id: 'todo-6', created_date: '2022-08-22T08:00:00Z', modified_date: '2023-02-14T09:00:00Z', title: 'Performance profiling', body: '

Profile API endpoints and fix bottlenecks.

', creator: 'user-4', owner: 'user-4' }, - { id: 'todo-7', created_date: '2023-04-05T10:00:00Z', modified_date: '2023-07-01T13:00:00Z', title: 'Integrate third-party payment provider', body: '

Connect Stripe for billing.

', creator: 'user-5', owner: 'user-6' }, - { id: 'todo-8', created_date: '2023-11-01T08:30:00Z', modified_date: '2024-02-10T10:00:00Z', title: 'Migrate to TypeScript', body: '

Convert remaining JS files to TypeScript.

', creator: 'user-6', owner: 'user-7' }, - { id: 'todo-9', created_date: '2024-03-12T09:00:00Z', modified_date: '2024-06-20T15:00:00Z', title: 'Implement dark mode', body: '

Add dark mode toggle and persist preference.

', creator: 'user-7', owner: 'user-8' }, - { id: 'todo-10', created_date: '2024-07-01T11:00:00Z', modified_date: '2024-09-30T12:00:00Z', title: 'Set up CI/CD pipeline', body: '

Configure GitHub Actions for build and deploy.

', creator: 'user-8', owner: 'user-9' }, - { id: 'todo-11', created_date: '2024-10-15T08:00:00Z', modified_date: '2025-01-08T09:30:00Z', title: 'Refactor API error handling', body: '

Standardise error responses across all endpoints.

', creator: 'user-9', owner: 'user-10' }, - { id: 'todo-12', created_date: '2025-02-01T10:00:00Z', modified_date: '2025-03-15T11:00:00Z', title: 'Add search functionality', body: '

Implement full-text search with filters.

', creator: 'user-10', owner: 'user-1' }, - { id: 'todo-13', created_date: '2025-05-20T09:00:00Z', modified_date: '2025-07-10T14:00:00Z', title: 'Optimise database queries', body: '

Add missing indexes and rewrite slow queries.

', creator: 'user-1', owner: 'user-2' }, - { id: 'todo-14', created_date: '2025-09-01T08:00:00Z', modified_date: '2025-11-20T16:30:00Z', title: 'Write API documentation', body: '

Document all public endpoints using OpenAPI spec.

', creator: 'user-2', owner: 'user-3' }, - { id: 'todo-15', created_date: '2026-01-10T09:00:00Z', modified_date: '2026-03-01T10:00:00Z', title: 'Launch v2.0', body: '

Final QA pass and production deployment.

', creator: 'user-3', owner: 'user-4' }, + { id: 'todo-1', created_date: '2018-06-01T08:00:00Z', modified_date: '2018-06-01T08:00:00Z', title: 'Set up development environment', body: 'Install Node.js, configure editor, clone repos.', creator: 'user-1', owner: 'user-1' }, + { id: 'todo-2', created_date: '2019-09-15T10:00:00Z', modified_date: '2019-09-15T10:00:00Z', title: 'Write project proposal', body: 'Draft the initial project proposal document.', creator: 'user-2', owner: 'user-2' }, + { id: 'todo-3', created_date: '2020-02-20T09:00:00Z', modified_date: '2020-02-20T09:00:00Z', title: 'Design database schema', body: 'Define entities, relationships and indexes.', creator: 'user-1', owner: 'user-3' }, + { id: 'todo-4', created_date: '2021-05-10T14:00:00Z', modified_date: '2021-05-10T14:00:00Z', title: 'Implement authentication', body: 'Add JWT-based authentication to the API.', creator: 'user-3', owner: 'user-4' }, + { id: 'todo-5', created_date: '2022-01-18T11:30:00Z', modified_date: '2022-03-05T16:00:00Z', title: 'Add unit tests', body: 'Achieve 80% test coverage for the core module.', creator: 'user-2', owner: 'user-5' }, + { id: 'todo-6', created_date: '2022-08-22T08:00:00Z', modified_date: '2023-02-14T09:00:00Z', title: 'Performance profiling', body: 'Profile API endpoints and fix bottlenecks.', creator: 'user-4', owner: 'user-4' }, + { id: 'todo-7', created_date: '2023-04-05T10:00:00Z', modified_date: '2023-07-01T13:00:00Z', title: 'Integrate third-party payment provider', body: 'Connect Stripe for billing.', creator: 'user-5', owner: 'user-6' }, + { id: 'todo-8', created_date: '2023-11-01T08:30:00Z', modified_date: '2024-02-10T10:00:00Z', title: 'Migrate to TypeScript', body: 'Convert remaining JS files to TypeScript.', creator: 'user-6', owner: 'user-7' }, + { id: 'todo-9', created_date: '2024-03-12T09:00:00Z', modified_date: '2024-06-20T15:00:00Z', title: 'Implement dark mode', body: 'Add dark mode toggle and persist preference.', creator: 'user-7', owner: 'user-8' }, + { id: 'todo-10', created_date: '2024-07-01T11:00:00Z', modified_date: '2024-09-30T12:00:00Z', title: 'Set up CI/CD pipeline', body: 'Configure GitHub Actions for build and deploy.', creator: 'user-8', owner: 'user-9' }, + { id: 'todo-11', created_date: '2024-10-15T08:00:00Z', modified_date: '2025-01-08T09:30:00Z', title: 'Refactor API error handling', body: 'Standardise error responses across all endpoints.', creator: 'user-9', owner: 'user-10' }, + { id: 'todo-12', created_date: '2025-02-01T10:00:00Z', modified_date: '2025-03-15T11:00:00Z', title: 'Add search functionality', body: 'Implement full-text search with filters.', creator: 'user-10', owner: 'user-1' }, + { id: 'todo-13', created_date: '2025-05-20T09:00:00Z', modified_date: '2025-07-10T14:00:00Z', title: 'Optimise database queries', body: 'Add missing indexes and rewrite slow queries.', creator: 'user-1', owner: 'user-2' }, + { id: 'todo-14', created_date: '2025-09-01T08:00:00Z', modified_date: '2025-11-20T16:30:00Z', title: 'Write API documentation', body: 'Document all public endpoints using OpenAPI spec.', creator: 'user-2', owner: 'user-3' }, + { id: 'todo-15', created_date: '2026-01-10T09:00:00Z', modified_date: '2026-03-01T10:00:00Z', title: 'Launch v2.0', body: 'Final QA pass and production deployment.', creator: 'user-3', owner: 'user-4' }, ]; const ATTACHMENTS: ExternalAttachment[] = [ diff --git a/code/test/data-normalization.test.ts b/code/test/data-normalization.test.ts index 07e9210..50cd239 100644 --- a/code/test/data-normalization.test.ts +++ b/code/test/data-normalization.test.ts @@ -12,13 +12,13 @@ const todo: ExternalTodo = { created_date: '2026-01-01T00:00:00Z', modified_date: '2026-01-01T00:00:00Z', title: 'Test todo', - body: '

Hello world & friends.

', + body: 'Hello **world** & [friends](https://example.com).', creator: 'user-1', owner: 'user-1', }; describe('Todo rich text', () => { - it('converts HTML to the rich-text Markdown array expected by AirSync', () => { + it('wraps Markdown in the rich-text array expected by AirSync', () => { expect(normalizeTodo(todo).data).toMatchObject({ body: ['Hello **world** & [friends](https://example.com).'], }); @@ -28,21 +28,30 @@ describe('Todo rich text', () => { }); it('preserves paragraphs and lists', () => { - expect(normalizeTodo({ ...todo, body: '

First

Second

  • One
  • Two
' }).data) - .toMatchObject({ body: ['First\n\nSecond\n\n* One\n* Two'] }); + expect(normalizeTodo({ ...todo, body: 'First\n\nSecond\n\n- One\n- Two' }).data) + .toMatchObject({ body: ['First\n\nSecond\n\n- One\n- Two'] }); }); it('accepts an empty body', () => { expect(normalizeTodo({ ...todo, body: '' }).data).toMatchObject({ body: [''] }); }); - it('converts reverse-sync rich text back to HTML', () => { + it('loads reverse-sync rich text as Markdown', () => { const item = { ...todo, id: { devrev: 'work-1' }, data: { ...todo, body: { type: 'rich_text', content: ['Hello **world**.'] } }, } as ExternalSystemItem; - expect(denormalizeTodo(item).body).toBe('

Hello world.

\n'); + expect(denormalizeTodo(item).body).toBe('Hello **world**.'); + }); + + it('uses reference names when loading mixed rich-text content', () => { + const item = { + ...todo, + id: { devrev: 'work-1' }, + data: { ...todo, body: { type: 'rich_text', content: ['Hello ', { id: 'user-1', fallback_record_name: 'Alice' }, ' and ', { id: 'user-2' }] } }, + } as ExternalSystemItem; + expect(denormalizeTodo(item).body).toBe('Hello Alice and user-2'); }); it('preserves legacy string bodies when loading', () => { From 5eb65b26ba33218281cc7a5ef0dba290b2b7fe55 Mon Sep 17 00:00:00 2001 From: Radovan Jorgic Date: Wed, 4 Nov 2026 13:29:50 +0100 Subject: [PATCH 4/5] test: remove dependency compatibility checks --- code/test/dependency-compatibility.test.ts | 22 ---------------------- 1 file changed, 22 deletions(-) delete mode 100644 code/test/dependency-compatibility.test.ts diff --git a/code/test/dependency-compatibility.test.ts b/code/test/dependency-compatibility.test.ts deleted file mode 100644 index 8cfce00..0000000 --- a/code/test/dependency-compatibility.test.ts +++ /dev/null @@ -1,22 +0,0 @@ -import path from 'node:path'; - -const match = require('nodemon/lib/monitor/match'); - -describe('nodemon with patched minimatch', () => { - it('watches TypeScript and dotfiles while respecting ignored paths', () => { - const result = match( - ['src/main.ts', 'src/main.js', 'test/runner.ts', 'src/.hidden.ts'], - ['!**/test/**', '**/src/**'], - 'ts' - ); - - expect(result.result).toEqual([path.resolve('src/main.ts'), path.resolve('src/.hidden.ts')]); - expect(result.ignored).toBe(1); - }); - - it('matches multiple watched extensions', () => { - const result = match(['src/main.ts', 'src/config.json', 'src/readme.md'], ['**/src/**'], 'ts,json'); - - expect(result.result).toEqual([path.resolve('src/main.ts'), path.resolve('src/config.json')]); - }); -}); From 588ed6190eba04ee3bbca7df5cee5a361ba1d6e9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Radovan=20Jorgi=C4=87?= Date: Thu, 5 Nov 2026 14:57:11 +0100 Subject: [PATCH 5/5] fix: upgrade SDK and preserve template sync identities (#118) Upgrade AirSync SDK to 2.1.0, use external Todo IDs for reverse updates, and skip already-mapped immutable attachments. All 20 tests and deployed reruns pass, with stable issue/file IDs and clean Grafana logs. This PR is stacked on #117 and should merge after it. Linked issue: https://app.devrev.ai/devrev/works/ISS-394860 Co-authored-by: Radovan Jorgic --- .gitignore | 1 + code/eslint.config.mts | 2 +- code/package-lock.json | 8 +- code/package.json | 2 +- .../external-system/data-denormalization.ts | 2 +- .../extraction/workers/data-extraction.ts | 16 +- code/test/sdk.integration.test.ts | 159 ++++++++++++++++++ 7 files changed, 181 insertions(+), 9 deletions(-) create mode 100644 code/test/sdk.integration.test.ts diff --git a/.gitignore b/.gitignore index 0647ebd..33a215d 100644 --- a/.gitignore +++ b/.gitignore @@ -16,3 +16,4 @@ code/logs .airsync/ +code/coverage/ diff --git a/code/eslint.config.mts b/code/eslint.config.mts index 15f44a7..e769749 100644 --- a/code/eslint.config.mts +++ b/code/eslint.config.mts @@ -5,7 +5,7 @@ import { defineConfig } from "eslint/config"; import prettierConfig from "eslint-config-prettier"; export default defineConfig([ - { ignores: ["dist/**", "test/**"] }, + { ignores: ["dist/**", "coverage/**", "test/**"] }, { files: ["**/*.{js,mjs,cjs,ts,mts,cts}"], plugins: { js }, extends: ["js/recommended"], languageOptions: { globals: globals.browser } }, ...tseslint.configs.recommended, prettierConfig, diff --git a/code/package-lock.json b/code/package-lock.json index 4200dcb..10534a6 100644 --- a/code/package-lock.json +++ b/code/package-lock.json @@ -9,7 +9,7 @@ "version": "1.1.6", "license": "ISC", "dependencies": { - "@devrev/airsync-sdk": "2.1.0-beta.2", + "@devrev/airsync-sdk": "2.1.0", "@devrev/typescript-sdk": "1.1.79", "axios": "^1.20.0", "dotenv": "^16.0.3", @@ -1883,9 +1883,9 @@ } }, "node_modules/@devrev/airsync-sdk": { - "version": "2.1.0-beta.2", - "resolved": "https://registry.npmjs.org/@devrev/airsync-sdk/-/airsync-sdk-2.1.0-beta.2.tgz", - "integrity": "sha512-mZ9zJL7MK7gK5Zyb1QKeXZZkRBbxuadJscL1S4J9HtELacaC+6z4KJI9xHlFxuz0fmCExk7yZ5CeT68/ivRcTg==", + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/@devrev/airsync-sdk/-/airsync-sdk-2.1.0.tgz", + "integrity": "sha512-K8uqf3BQ+EH5JlbzODuQHETkXxCyQzSQYaCjG5SJSmlgK2R4mQ59Ajp6w5SWKDq1z8NbXabO7uDZgKwgcV9zJQ==", "license": "ISC", "dependencies": { "axios": "^1.20.0", diff --git a/code/package.json b/code/package.json index 67c1bfd..d409a32 100644 --- a/code/package.json +++ b/code/package.json @@ -58,7 +58,7 @@ "yargs": "^17.6.2" }, "dependencies": { - "@devrev/airsync-sdk": "2.1.0-beta.2", + "@devrev/airsync-sdk": "2.1.0", "@devrev/typescript-sdk": "1.1.79", "axios": "^1.20.0", "dotenv": "^16.0.3", diff --git a/code/src/functions/external-system/data-denormalization.ts b/code/src/functions/external-system/data-denormalization.ts index 083a2db..b75579b 100644 --- a/code/src/functions/external-system/data-denormalization.ts +++ b/code/src/functions/external-system/data-denormalization.ts @@ -3,7 +3,7 @@ import { ExternalAttachment, ExternalTodo } from './types'; export function denormalizeTodo(item: ExternalSystemItem): ExternalTodo { return { - id: item.id.devrev, + id: item.id.external ?? item.id.devrev, body: typeof item.data.body === 'string' ? item.data.body : (item.data.body?.content ?? []).map((part: string | { fallback_record_name?: string; id: string }) => diff --git a/code/src/functions/extraction/workers/data-extraction.ts b/code/src/functions/extraction/workers/data-extraction.ts index 5c4b88d..18f4c53 100644 --- a/code/src/functions/extraction/workers/data-extraction.ts +++ b/code/src/functions/extraction/workers/data-extraction.ts @@ -1,4 +1,4 @@ -import { processExtractionTask } from '@devrev/airsync-sdk'; +import { processExtractionTask, SyncMapperRecordTargetType } from '@devrev/airsync-sdk'; import { normalizeAttachment, normalizeTodo, normalizeUser } from '../../external-system/data-normalization'; import { HttpClient } from '../../external-system/http-client'; @@ -69,7 +69,19 @@ processExtractionTask({ continue; } - const items = await itemTypeToExtract.extractFunction(httpClient); + let items = await itemTypeToExtract.extractFunction(httpClient); + if (itemTypeToExtract.name === 'attachments') { + const unmapped = []; + for (const item of items as ExternalAttachment[]) { + const mapped = await adapter.mappers.getByExternalId({ + sync_unit: adapter.event.payload.event_context.sync_unit, + external_id: item.id, + target_type: SyncMapperRecordTargetType.ARTIFACT, + }); + if (!mapped?.sync_mapper_record) unmapped.push(item); + } + items = unmapped; + } await adapter.getRepo(itemTypeToExtract.name)?.push(items); adapter.state[itemTypeToExtract.name].completed = true; } diff --git a/code/test/sdk.integration.test.ts b/code/test/sdk.integration.test.ts new file mode 100644 index 0000000..39b2503 --- /dev/null +++ b/code/test/sdk.integration.test.ts @@ -0,0 +1,159 @@ +import { Worker } from 'node:worker_threads'; +import { gzipSync } from 'node:zlib'; +import path from 'path'; +import { createMockEvent, EventType, MockServer } from '@devrev/airsync-sdk'; + +import { initialExtractorState } from '../src/functions/extraction'; + +const bootstrap = ` + const { workerData } = require('node:worker_threads'); + require('ts-node/register/transpile-only'); + require(workerData.workerPath); +`; + +type Callback = { event_type: string; event_data: Record }; + +jest.setTimeout(15000); + +describe('template workers with the real SDK', () => { + const server = new MockServer(0); + + beforeAll(() => server.start()); + afterAll(() => server.stop()); + beforeEach(() => { + server.resetRoutes(); + server.setRoute({ method: 'GET', path: '/internal/airdrop.sync-mapper-record.get-by-external-id', status: 404, body: {} }); + seedState({ ...structuredClone(initialExtractorState), snapInVersionId: 'test_snap_in_version_id' }); + }); + + function seedState(state: unknown, objects = { todos: { extract: true }, users: { extract: true }, attachments: { extract: true } }) { + server.setRoute({ method: 'GET', path: '/worker_data_url.get', status: 200, + body: { state: JSON.stringify(state), objects: JSON.stringify(objects) } }); + } + + async function runWorker(name: string, eventType: EventType) { + const worker = new Worker(bootstrap, { + eval: true, stdout: true, stderr: true, + workerData: { + event: createMockEvent(server.baseUrl, { payload: { event_type: eventType, event_data: { stats_file: 'stats' } } }), + initialState: structuredClone(initialExtractorState), + workerPath: path.join(__dirname, '../src/functions', name.startsWith('load-') ? 'loading' : 'extraction', 'workers', `${name}.ts`), + }, + }); + const logs: string[] = []; + worker.on('message', (message) => { + if (message.subject === 'log') logs.push(message.payload.stringifiedArgs); + }); + worker.stderr?.on('data', (data: Buffer) => logs.push(data.toString())); + const deadline = setTimeout(() => void worker.terminate(), 12000); + try { + await new Promise((resolve, reject) => { + worker.once('error', reject); + worker.once('exit', (code) => code === 0 ? resolve() : reject(new Error(`Worker exited ${code}: ${logs.slice(-5).join('\n')}`))); + }); + const callbacks = server.getCallbackRequests(); + expect(callbacks).toHaveLength(1); + const updates = server.getRequests('POST', '/worker_data_url.update'); + const state = updates.length ? JSON.parse((updates[updates.length - 1].body as { state: string }).state) : undefined; + return { callback: callbacks[0].body as Callback, state, logs }; + } finally { + clearTimeout(deadline); + } + } + + it.each([ + ['external-sync-units-extraction', EventType.StartExtractingExternalSyncUnits, 'EXTERNAL_SYNC_UNIT_EXTRACTION_DONE'], + ['metadata-extraction', EventType.StartExtractingMetadata, 'METADATA_EXTRACTION_DONE'], + ] as const)('uploads %s and emits one completion', async (name, type, completion) => { + const result = await runWorker(name, type); + expect(result.callback.event_type).toBe(completion); + expect(server.getRequestCount('GET', '/internal/airdrop.artifacts.upload-url')).toBeGreaterThan(0); + expect(server.getRequestCount('POST', '/file-upload-url')).toBeGreaterThan(0); + }); + + it('extracts all demo entities and persists the v2 state envelope', async () => { + const result = await runWorker('data-extraction', EventType.StartExtractingData); + expect(result.callback.event_type).toBe('DATA_EXTRACTION_DONE'); + expect(result.state).toMatchObject({ stateVersion: 2, connectorState: { + todos: { completed: true }, users: { completed: true }, attachments: { completed: true }, + } }); + expect(server.getRequestCount('GET', '/internal/airdrop.artifacts.upload-url')).toBe(3); + }); + + it('does not upload unselected entities', async () => { + seedState({ ...structuredClone(initialExtractorState), snapInVersionId: 'test_snap_in_version_id' }, { + todos: { extract: true }, users: { extract: false }, attachments: { extract: false }, + }); + const result = await runWorker('data-extraction', EventType.StartExtractingData); + expect(result.callback.event_type).toBe('DATA_EXTRACTION_DONE'); + expect(server.getRequestCount('GET', '/internal/airdrop.artifacts.upload-url')).toBe(1); + }); + + it('does not re-upload immutable attachments that already have artifact mappers', async () => { + server.setRoute({ method: 'GET', path: '/internal/airdrop.sync-mapper-record.get-by-external-id', status: 200, + body: { sync_mapper_record: { id: 'mapper-1', targets: ['artifact-1'], status: 'operational' } } }); + const result = await runWorker('data-extraction', EventType.StartExtractingData); + expect(result.callback.event_type).toBe('DATA_EXTRACTION_DONE'); + expect(server.getRequestCount('GET', '/internal/airdrop.artifacts.upload-url')).toBe(2); + expect(result.state.connectorState.attachments.completed).toBe(true); + }); + + function serveLoadingBatch(itemType: string, item: unknown) { + seedState({ ...structuredClone(initialExtractorState), snapInVersionId: 'test_snap_in_version_id', + fromDevRev: { filesToLoad: [{ id: 'batch', file_name: 'batch.jsonl', itemType, count: 1, lineToProcess: 0, completed: false }] } }); + const downloadPath = '/internal/airdrop.artifacts.download-url'; + server.setRoute({ method: 'GET', path: downloadPath, status: 200, + body: { get download_url() { return `${server.baseUrl}/${server.getRequestCount('GET', downloadPath) === 1 ? 'stats' : 'batch'}`; } } }); + server.setRoute({ method: 'GET', path: '/stats', status: 200, + bodyBuffer: Buffer.from(`${JSON.stringify({ id: 'batch', file_name: 'batch.jsonl', item_type: itemType, count: '1' })}\n`) }); + server.setRoute({ method: 'GET', path: '/batch', status: 200, bodyBuffer: gzipSync(`${JSON.stringify(item)}\n`) }); + server.setRoute({ method: 'GET', path: '/internal/airdrop.sync-mapper-record.get-by-target', status: 404, body: {} }); + } + + it('loads a transformed Todo and creates its mapper', async () => { + serveLoadingBatch('todos', { id: { devrev: 'work-1' }, data: { title: 'SDK integration', body: { type: 'rich_text', content: ['**Markdown**'] } } }); + const result = await runWorker('load-data', EventType.StartLoadingData); + expect(result.callback.event_type).toBe('DATA_LOADING_DONE'); + const mappers = server.getRequests('POST', '/internal/airdrop.sync-mapper-record.create'); + expect(mappers).toHaveLength(1); + expect(mappers[0].body).toMatchObject({ external_ids: [expect.stringMatching(/^todo-/)] }); + expect(result.state.sdkState.fromDevRev.filesToLoad[0]).toMatchObject({ completed: true, lineToProcess: 1 }); + }); + + it('loads an attachment and creates its mapper', async () => { + serveLoadingBatch('attachment', { reference_id: 'file-1', parent_id: 'work-1', file_name: 'sample.txt', url: `${server.baseUrl}/file` }); + const result = await runWorker('load-attachments', EventType.StartLoadingAttachments); + expect(result.callback.event_type).toBe('ATTACHMENT_LOADING_DONE'); + expect(server.getRequestCount('POST', '/internal/airdrop.sync-mapper-record.create')).toBe(1); + }); + + it('updates the mapped external Todo rather than the DevRev ID', async () => { + serveLoadingBatch('todos', { id: { devrev: 'work-1', external: 'todo-1' }, data: { title: 'Updated SDK Todo', body: 'Updated body' } }); + server.setRoute({ method: 'GET', path: '/internal/airdrop.sync-mapper-record.get-by-target', status: 200, + body: { sync_mapper_record: { id: 'mapper-1', external_ids: ['todo-1'], targets: ['work-1'] } } }); + const result = await runWorker('load-data', EventType.StartLoadingData); + expect(result.callback.event_type).toBe('DATA_LOADING_DONE'); + expect(result.callback.event_data.reports).toEqual([expect.objectContaining({ item_type: 'todos', updated: 1 })]); + expect(server.getRequestCount('POST', '/internal/airdrop.sync-mapper-record.update')).toBe(1); + }); + + it.each([200, 429] as const)('streams attachment bytes or preserves the cursor on HTTP %s', async (status) => { + seedState({ ...structuredClone(initialExtractorState), snapInVersionId: 'test_snap_in_version_id', + toDevRev: { attachmentsMetadata: { artifactIds: ['metadata'], lastProcessed: 0 } } }); + server.setRoute({ method: 'GET', path: '/internal/airdrop.artifacts.download-url', status: 200, + body: { download_url: `${server.baseUrl}/metadata` } }); + server.setRoute({ method: 'GET', path: '/metadata', status: 200, + bodyBuffer: gzipSync(`${JSON.stringify({ id: 'file-1', url: `${server.baseUrl}/file`, file_name: 'sample.txt', parent_id: 'todo-1' })}\n`) }); + server.setRoute({ method: 'GET', path: '/file', status, + headers: { 'content-length': '5', 'content-type': 'text/plain', 'retry-after': '3' }, bodyBuffer: Buffer.from('hello') }); + const result = await runWorker('attachments-extraction', EventType.StartExtractingAttachments); + expect(result.callback.event_type).toBe(status === 200 ? 'ATTACHMENT_EXTRACTION_DONE' : 'ATTACHMENT_EXTRACTION_DELAYED'); + if (status === 200) { + expect(server.getRequestCount('POST', '/file-upload-url')).toBeGreaterThan(0); + expect(result.state.sdkState.toDevRev.attachmentsMetadata.artifactIds).toEqual([]); + } else { + expect(result.callback.event_data.delay).toBe(3); + expect(result.state.sdkState.toDevRev.attachmentsMetadata.artifactIds).toEqual(['metadata']); + } + }); +});