Browse Source

fix(skills): Replace deprecated import assert with import attributes (with)

Co-Authored-By: Claude <noreply@anthropic.com>
0xDarkMatter 6 days ago
parent
commit
df16013e11
1 changed files with 1 additions and 1 deletions
  1. 1 1
      skills/javascript-ops/SKILL.md

+ 1 - 1
skills/javascript-ops/SKILL.md

@@ -144,7 +144,7 @@ Node.js event loop PHASES (libuv):
 | `Promise.withResolvers()` | ES2024 | Deferred pattern |
 | `ArrayBuffer.prototype.resize()` | ES2024 | Grow/shrink buffer in-place |
 | `String.prototype.isWellFormed()` | ES2024 | Check valid Unicode |
-| `import assert { type: 'json' }` | ES2024 | Import attributes |
+| `import x from './f.json' with { type: 'json' }` | ES2024 | Import attributes (`assert {…}` is the deprecated legacy syntax) |
 | `Set.prototype.union(other)` | ES2025 | Set algebra methods |
 | `Set.prototype.intersection(other)` | ES2025 | Set algebra methods |
 | `Set.prototype.difference(other)` | ES2025 | Set algebra methods |