Skip to content

[BREAKING] Adapt to ui5-project changes. Add Link-reader, WriterCollection#381

Merged
RandomByte merged 10 commits intonextfrom
ui5-fs-3.0
Jun 13, 2022
Merged

[BREAKING] Adapt to ui5-project changes. Add Link-reader, WriterCollection#381
RandomByte merged 10 commits intonextfrom
ui5-fs-3.0

Conversation

@RandomByte
Copy link
Copy Markdown
Member

@RandomByte RandomByte commented Jun 13, 2022

Nicer version of #302

Remove super-collection system from ResourceTagCollection
Link reader:
Allows automatic rewriting of paths and glob patterns to other paths.
I.e. a path "/" can be rewritten to "/resorces/project/namespace"

WriterCollection:
Allows to define a collection of writers mapped to a set of path
prefixes.
I.e. one writer should be used when writing a resource with the path
prefix "/resources/project/namespace/*" and another one for all other
paths ("/")
Resource readers are now created during project graph creation in the
corresponding specification implementation
@RandomByte RandomByte changed the title [INTERNAL] resourceFactory: Add #createReader and #reateReaderCollection [BREAKING] Adapt to ui5-project changes. Add Link-reader, WriterCollection Jun 13, 2022
@RandomByte RandomByte requested review from matz3 June 13, 2022 12:15
@RandomByte RandomByte merged commit 5a693fe into next Jun 13, 2022
@RandomByte RandomByte deleted the ui5-fs-3.0 branch June 13, 2022 15:10
@coveralls
Copy link
Copy Markdown

Coverage Status

Coverage decreased (-12.2%) to 75.256% when pulling 24e2b35 on ui5-fs-3.0 into 7ced04a on next.

RandomByte added a commit to SAP/ui5-builder that referenced this pull request Jun 13, 2022
Build execution is moved to ui5-project (see SAP/ui5-project#457).
Going forward, ui5-builder shall only provide task implementations and selected helper
modules like TaskUtil.

TaskUtil will provide a new `getProject()` function to custom tasks defining specVersion 2.7 and above.

BREAKING CHANGE:
* builder.js has been removed. Use ui5-project builder instead
* Tasks now rely on Project instances being available on Resources (see SAP/ui5-fs#381)
* TaskRepository#addTask has been removed. Custom tasks need to be added to the project graph instead
* TaskUtil#get/set/clearTag now requires a Project instance to be provided. Path strings are no longer sufficient
  and will cause an exception to be thrown

Co-authored-by: Matthias Osswald <mat.osswald@sap.com>
RandomByte added a commit to SAP/ui5-server that referenced this pull request Jun 13, 2022
Adapt to new Project Graph API (see SAP/ui5-project#457)

BREAKING CHANGE:
* Server now requires a Project Graph instance instead.
* Standard middleware now rely on Project instances being available on Resources (see SAP/ui5-fs#381)
* MiddlewareRepository#addMiddleware has been removed. Custom middleware need to be added to the project graph instead
flovogt pushed a commit to SAP/ui5-builder that referenced this pull request Jun 14, 2022
Build execution is moved to ui5-project (see SAP/ui5-project#457).
Going forward, ui5-builder shall only provide task implementations and selected helper
modules like TaskUtil.

TaskUtil will provide a new `getProject()` function to custom tasks defining specVersion 2.7 and above.

BREAKING CHANGE:
* builder.js has been removed. Use ui5-project builder instead
* Tasks now rely on Project instances being available on Resources (see SAP/ui5-fs#381)
* TaskRepository#addTask has been removed. Custom tasks need to be added to the project graph instead
* TaskUtil#get/set/clearTag now requires a Project instance to be provided. Path strings are no longer sufficient
  and will cause an exception to be thrown

Co-authored-by: Matthias Osswald <mat.osswald@sap.com>
d3xter666 pushed a commit to UI5/cli that referenced this pull request Sep 24, 2025
Build execution is moved to ui5-project (see SAP/ui5-project#457).
Going forward, ui5-builder shall only provide task implementations and selected helper
modules like TaskUtil.

TaskUtil will provide a new `getProject()` function to custom tasks defining specVersion 2.7 and above.

BREAKING CHANGE:
* builder.js has been removed. Use ui5-project builder instead
* Tasks now rely on Project instances being available on Resources (see SAP/ui5-fs#381)
* TaskRepository#addTask has been removed. Custom tasks need to be added to the project graph instead
* TaskUtil#get/set/clearTag now requires a Project instance to be provided. Path strings are no longer sufficient
  and will cause an exception to be thrown

Co-authored-by: Matthias Osswald <mat.osswald@sap.com>
d3xter666 pushed a commit to UI5/cli that referenced this pull request Sep 24, 2025
Adapt to new Project Graph API (see SAP/ui5-project#457)

BREAKING CHANGE:
* Server now requires a Project Graph instance instead.
* Standard middleware now rely on Project instances being available on Resources (see SAP/ui5-fs#381)
* MiddlewareRepository#addMiddleware has been removed. Custom middleware need to be added to the project graph instead
d3xter666 pushed a commit to UI5/cli that referenced this pull request Sep 25, 2025
Build execution is moved to ui5-project (see SAP/ui5-project#457).
Going forward, ui5-builder shall only provide task implementations and selected helper
modules like TaskUtil.

TaskUtil will provide a new `getProject()` function to custom tasks defining specVersion 2.7 and above.

BREAKING CHANGE:
* builder.js has been removed. Use ui5-project builder instead
* Tasks now rely on Project instances being available on Resources (see SAP/ui5-fs#381)
* TaskRepository#addTask has been removed. Custom tasks need to be added to the project graph instead
* TaskUtil#get/set/clearTag now requires a Project instance to be provided. Path strings are no longer sufficient
  and will cause an exception to be thrown

Co-authored-by: Matthias Osswald <mat.osswald@sap.com>
d3xter666 pushed a commit to UI5/cli that referenced this pull request Sep 25, 2025
Adapt to new Project Graph API (see SAP/ui5-project#457)

BREAKING CHANGE:
* Server now requires a Project Graph instance instead.
* Standard middleware now rely on Project instances being available on Resources (see SAP/ui5-fs#381)
* MiddlewareRepository#addMiddleware has been removed. Custom middleware need to be added to the project graph instead
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants