File tree 2 files changed +1
-17
lines changed
2 files changed +1
-17
lines changed Original file line number Diff line number Diff line change @@ -72,6 +72,7 @@ Go to the `v1` branch to see the changelog of Lume 1.
72
72
- ` variable ` option of Lume components. It's always ` comp ` .
73
73
- ` name ` special variable of components to customize the name. It's always the filename.
74
74
- ` slugify_urls ` plugin no longer handle unicode characters by default. Use the ` transliterate ` option to configure it.
75
+ - Internal variable ` page._data ` because it's useless.
75
76
76
77
### Fixed
77
78
- The resolution of npm and jsr specifiers by esbuild plugin have been improved.
Original file line number Diff line number Diff line change @@ -18,11 +18,6 @@ export class Page<D extends Data = Data> {
18
18
/** Used to save the page data */
19
19
data : D = { } as D ;
20
20
21
- /**
22
- * Internal data. Used to save arbitrary data by plugins and processors
23
- */
24
- #_data = { } ;
25
-
26
21
/** The page content (string or Uint8Array) */
27
22
#content?: Content ;
28
23
@@ -52,18 +47,6 @@ export class Page<D extends Data = Data> {
52
47
this . src = { path : "" , ext : "" , ...src } ;
53
48
}
54
49
55
- /**
56
- * The property _data is to store internal data,
57
- * used by plugins, processors, etc to save arbitrary values
58
- */
59
- set _data ( data : Record < string , unknown > ) {
60
- this . #_data = data ;
61
- }
62
-
63
- get _data ( ) {
64
- return this . #_data;
65
- }
66
-
67
50
/** Duplicate this page. */
68
51
duplicate ( index : number | undefined , data : D ) : Page < D > {
69
52
const page = new Page < D > ( { ...this . src } ) ;
You can’t perform that action at this time.
0 commit comments