noxcturnal 0.1.1 → 0.1.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +11 -0
- package/dist/noxcturnal.d.ts +416 -23
- package/dist/noxcturnal.js +2678 -2049
- package/dist/noxcturnal.js.map +1 -1
- package/dist/noxcturnal.mjs +2259 -1632
- package/dist/noxcturnal.mjs.map +1 -1
- package/package.json +11 -11
package/README.md
CHANGED
|
@@ -63,6 +63,17 @@ Every plugin in a phase observes the same immutable input. Its edits become visi
|
|
|
63
63
|
phase boundary, after validation and an optional reparse. Split dependent transforms into separate
|
|
64
64
|
phases when a later transform must observe an earlier transform's output.
|
|
65
65
|
|
|
66
|
+
`path.matchesPattern()` uses native AST facts. Declare `fields: ['memberPath']` for static or
|
|
67
|
+
computed member expressions or `fields: ['name']` for identifiers, including in child contracts.
|
|
68
|
+
Missing declarations throw. An identifier reached through a `memberPath` declaration returns false,
|
|
69
|
+
as do other nodes such as a `super()` callee or a spread argument. Matching never reparses source
|
|
70
|
+
in JavaScript. For fixed patterns, prefer a native
|
|
71
|
+
`where: { memberPath: { equals: 'process.env.NODE_ENV' } }` predicate. Predicates share chain
|
|
72
|
+
prefixes without transferring full paths for every nested member.
|
|
73
|
+
|
|
74
|
+
Generated UIDs avoid decoded AST identifier names and names already reserved in the phase. Text
|
|
75
|
+
inside comments and string literals does not reserve names.
|
|
76
|
+
|
|
66
77
|
### Configuration and per-file data
|
|
67
78
|
|
|
68
79
|
Pipeline definitions describe reusable program configuration:
|