File tree Expand file tree Collapse file tree 2 files changed +14
-0
lines changed Expand file tree Collapse file tree 2 files changed +14
-0
lines changed Original file line number Diff line number Diff line change @@ -330,6 +330,13 @@ class Resource {
330330
331331 /**
332332 * Retrieve the project assigned to the resource
333+ * <br/>
334+ * <b>Note for UI5 Tooling extensions (i.e. custom tasks, custom middleware):</b>
335+ * In order to ensure compatibility across UI5 Tooling versions, consider using the
336+ * <code>getProject(resource)</code> method provided by
337+ * [TaskUtil]{@link module:@ui5/project/build/helpers/TaskUtil} and
338+ * [MiddlewareUtil]{@link module:@ui5/server.middleware.MiddlewareUtil}, which will
339+ * return a Specification Version-compatible Project interface.
333340 *
334341 * @public
335342 * @returns {@ui5/project/specifications/Project } Project this resource is associated with
Original file line number Diff line number Diff line change @@ -187,6 +187,13 @@ class ResourceFacade {
187187
188188 /**
189189 * Retrieve the project assigned to the resource
190+ * <br/>
191+ * <b>Note for UI5 Tooling extensions (i.e. custom tasks, custom middleware):</b>
192+ * In order to ensure compatibility across UI5 Tooling versions, consider using the
193+ * <code>getProject(resource)</code> method provided by
194+ * [TaskUtil]{@link module:@ui5/project/build/helpers/TaskUtil} and
195+ * [MiddlewareUtil]{@link module:@ui5/server.middleware.MiddlewareUtil}, which will
196+ * return a Specification Version-compatible Project interface.
190197 *
191198 * @public
192199 * @returns {@ui5/project/specifications/Project } Project this resource is associated with
You can’t perform that action at this time.
0 commit comments