Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

deps: @sap/hana-client optional peer dependency #631

Merged
merged 2 commits into from
May 13, 2024
Merged

Conversation

swaldmann
Copy link
Contributor

@swaldmann swaldmann commented May 7, 2024

Currently noticing the huge package is still coming in @sap/cds-dk with @sap/hdi-deploy version 5 because@cap-js/hana defines it as a non-optional peer dependency.

@swaldmann swaldmann changed the title Make @sap/hana-client optional peer dependency deps: @sap/hana-client optional peer dependency May 7, 2024
@swaldmann swaldmann marked this pull request as ready for review May 7, 2024 16:20
@BobdenOs
Copy link
Contributor

BobdenOs commented May 7, 2024

The npm documentation is very un clear about its behavior in relation to peer dependencies. It states that it gives warnings when peer dependencies are missing. Which can be disabled by making the peer dependencies optional, but it doesn't mention installing peer dependencies. https://docs.npmjs.com/cli/v7/configuring-npm/package-json#optionaldependencies

@swaldmann
Copy link
Contributor Author

It says that in the section about peerDependencies

In npm versions 3 through 6, peerDependencies were not automatically installed, and would raise a warning if an invalid version of the peer dependency was found in the tree. As of npm v7, peerDependencies are installed by default.

Copy link
Member

@patricebender patricebender left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fine by me, @BobdenOs please confirm

@swaldmann swaldmann enabled auto-merge (squash) May 13, 2024 13:58
@swaldmann swaldmann merged commit 89d7149 into main May 13, 2024
4 of 6 checks passed
@swaldmann swaldmann deleted the hana-client-optional branch May 13, 2024 14:00
@cap-bots cap-bots mentioned this pull request May 13, 2024
johannes-vogel pushed a commit that referenced this pull request May 17, 2024
🤖 I have created a release *beep* *boop*
---


<details><summary>db-service: 1.9.1</summary>

##
[1.9.1](db-service-v1.9.0...db-service-v1.9.1)
(2024-05-16)


### Fixed

* dont mistake non-key access with foreign key
([#642](#642))
([2cd2349](2cd2349))
</details>

<details><summary>sqlite: 1.7.1</summary>

##
[1.7.1](sqlite-v1.7.0...sqlite-v1.7.1)
(2024-05-16)


### Fixed

* **deps:** update dependency better-sqlite3 to v10
([#636](#636))
([0cc60e7](0cc60e7))
</details>

<details><summary>hana: 0.4.0</summary>

##
[0.4.0](hana-v0.3.0...hana-v0.4.0)
(2024-05-16)


### Added

* Allow hex engine to be used
([#641](#641))
([bca0c01](bca0c01))


### Fixed

* Improve comparator check for combined and nested expressions
([#632](#632))
([8e1cb4b](8e1cb4b))
* Support multi byte characters
([#639](#639))
([4cfa77f](4cfa77f))


### Changed

* `@sap/hana-client` optional peer dependency
([#631](#631))
([89d7149](89d7149))
</details>

---
This PR was generated with [Release
Please](https://github.com/googleapis/release-please). See
[documentation](https://github.com/googleapis/release-please#release-please).
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