@enonic-types/core 8.0.4 → 8.1.0-B1

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.
Files changed (2) hide show
  1. package/index.d.ts +16 -0
  2. package/package.json +1 -1
package/index.d.ts CHANGED
@@ -278,6 +278,13 @@ export interface DefaultRequestHeaders
278
278
  export interface RequestConstructorParams {
279
279
  body?: string;
280
280
  branch?: LiteralUnion<RequestBranch>;
281
+ /**
282
+ * Path of the content being rendered. Set by the site service.
283
+ *
284
+ * Assigning it in a site mapping filter, on the request passed to `next`, re-routes rendering to
285
+ * that content: the requested URL is unchanged, but content, site and context path are re-resolved.
286
+ */
287
+ contentPath?: string;
281
288
  contentType?: string;
282
289
  contextPath?: string;
283
290
  cookies: RequestCookies;
@@ -834,6 +841,15 @@ export type ByteSource = Brand<object, 'ByteSource'>;
834
841
  export interface Resource {
835
842
  getSize(): number;
836
843
 
844
+ /**
845
+ * @deprecated Not a dependable measure of when a resource last changed. A resource served from an
846
+ * application bundle reports the time recorded in its jar entry, and build tools normalize that value
847
+ * to a constant so that builds are reproducible — Gradle does so by default as of version 9. Two
848
+ * different builds of an application therefore report identical timestamps, making the value a
849
+ * property of the build rather than of the file. Only resources backed by a repository node carry a
850
+ * genuine modification time; for file-backed resources the value is meaningful in development mode
851
+ * alone.
852
+ */
837
853
  getTimestamp(): number;
838
854
 
839
855
  getStream(): ByteSource;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@enonic-types/core",
3
- "version": "8.0.4",
3
+ "version": "8.1.0-B1",
4
4
  "description": "Shared type definition for core libraries.",
5
5
  "types": "index.d.ts",
6
6
  "files": [