Skip to content

Commit

Permalink
fix: move non-mandatory deps to peerDependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
kirillgroshkov committed Dec 26, 2023
1 parent 7207966 commit 6e188e0
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 9 deletions.
14 changes: 12 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,19 @@

This is the fork of [snowflake-connector-nodejs](https://github.com/snowflakedb/snowflake-connector-nodejs)
with the following changes:

- Fixes https://github.com/snowflakedb/snowflake-connector-nodejs/issues/449 by moving non-mandatory dependencies to peerDependencies. So, folks who don't need e.g AWS SDK don't have to "download the whole internet".

Published as [@naturalcycles/snowflake-sdk](https://www.npmjs.com/package/@naturalcycles/snowflake-sdk).

## Readme

********************************************************************************
NodeJS Driver for Snowflake
********************************************************************************
<p>
<a href="https://github.com/snowflakedb/snowflake-connector-nodejs/actions?query=workflow%3A%22Build+and+Test%22+branch%3Amaster" target="_blank"><img src="https://github.com/snowflakedb/snowflake-connector-nodejs/workflows/Build%20and%20Test/badge.svg?branch=master" alt="master" /></a>
<a href="https://www.npmjs.com/package/snowflake-sdk" target="_blank"><img src="https://img.shields.io/npm/v/snowflake-sdk.svg" alt="npm" /></a>
<a href="https://www.npmjs.com/package/@naturalcycles/snowflake-sdk" target="_blank"><img src="https://img.shields.io/npm/v/@naturalcycles/snowflake-sdk.svg" alt="npm" /></a>
<a href="http://www.apache.org/licenses/LICENSE-2.0.txt" target="_blank"><img src="http://img.shields.io/:license-Apache%202-brightgreen.svg" alt="apache" /> </a>
<a href="https://codecov.io/gh/snowflakedb/snowflake-connector-nodejs" target="_blank"><img src="https://codecov.io/gh/snowflakedb/snowflake-connector-nodejs/branch/master/graph/badge.svg?token=QZMWDu35ds" alt="codecov" /></a>
</p>
Expand All @@ -15,7 +25,7 @@ NodeJS Driver for Snowflake
Install
======================================================================

Run `npm i snowflake-sdk` in your existing NodeJs project.
Run `npm i @naturalcycles/snowflake-sdk` in your existing NodeJs project.

Docs
======================================================================
Expand Down
17 changes: 10 additions & 7 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,11 +1,8 @@
{
"name": "snowflake-sdk",
"version": "1.9.2",
"name": "@naturalcycles/snowflake-sdk",
"version": "1.9.3",
"description": "Node.js driver for Snowflake",
"dependencies": {
"@aws-sdk/client-s3": "^3.388.0",
"@azure/storage-blob": "^12.11.0",
"@google-cloud/storage": "^6.9.3",
"@techteamer/ocsp": "1.0.1",
"agent-base": "^6.0.2",
"asn1.js-rfc2560": "^5.0.0",
Expand Down Expand Up @@ -46,14 +43,20 @@
"test-console": "^2.0.0"
},
"peerDependencies": {
"asn1.js": "^5.4.1"
"asn1.js": "^5.4.1",
"@aws-sdk/client-s3": "^3.388.0",
"@azure/storage-blob": "^12.11.0",
"@google-cloud/storage": "^6.9.3"
},
"overrides": {
"semver": "^7.5.2"
},
"repository": {
"type": "git",
"url": "https://github.com/snowflakedb/snowflake-connector-nodejs"
"url": "https://github.com/NaturalCycles/snowflake-connector-nodejs"
},
"publishConfig": {
"access": "public"
},
"scripts": {
"lint:check": "eslint",
Expand Down

0 comments on commit 6e188e0

Please sign in to comment.