@effected/templates 0.8.0 → 0.9.0
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/ManagedSection.js +7 -6
- package/package.json +2 -2
package/ManagedSection.js
CHANGED
|
@@ -36,12 +36,13 @@ const notFound = (error) => error.reason._tag === "NotFound";
|
|
|
36
36
|
*
|
|
37
37
|
* @remarks
|
|
38
38
|
* `FileSystem.readFileString` decodes through a default `TextDecoder`, which
|
|
39
|
-
* strips a leading BOM
|
|
40
|
-
*
|
|
41
|
-
*
|
|
42
|
-
*
|
|
43
|
-
*
|
|
44
|
-
*
|
|
39
|
+
* strips a leading BOM. Reading through it would make the first sync of a
|
|
40
|
+
* BOM-carrying file silently delete the BOM, which violates this package's
|
|
41
|
+
* central promise that every byte outside a managed span survives. Reading
|
|
42
|
+
* bytes and decoding with `ignoreBOM: true` keeps the mark in the leading
|
|
43
|
+
* text span, where it is preserved like any other content — pinned by
|
|
44
|
+
* `__test__/integration/ManagedSection.int.test.ts`'s "preserves a
|
|
45
|
+
* byte-order mark through a sync".
|
|
45
46
|
*/
|
|
46
47
|
const decoder = new TextDecoder("utf-8", { ignoreBOM: true });
|
|
47
48
|
const make = (options = {}) => Effect.gen(function* () {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@effected/templates",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.9.0",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "Managed-section blocks in user-editable files: parse, reconcile, sync and check delimited regions.",
|
|
6
6
|
"keywords": [
|
|
@@ -37,7 +37,7 @@
|
|
|
37
37
|
"./package.json": "./package.json"
|
|
38
38
|
},
|
|
39
39
|
"peerDependencies": {
|
|
40
|
-
"effect": "4.0.0-rc.
|
|
40
|
+
"effect": "4.0.0-rc.118"
|
|
41
41
|
},
|
|
42
42
|
"engines": {
|
|
43
43
|
"node": ">=24.11.0"
|