Skip to content

Commit

Permalink
enhance: add tslib to dependencies to reduce bundle size
Browse files Browse the repository at this point in the history
  • Loading branch information
ardatan committed Mar 9, 2022
1 parent d32a1c2 commit b481fbc
Show file tree
Hide file tree
Showing 46 changed files with 139 additions and 45 deletions.
49 changes: 49 additions & 0 deletions .changeset/rude-mugs-invent.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
---
'@graphql-mesh/cache-file': patch
'@graphql-mesh/cache-inmemory-lru': patch
'@graphql-mesh/cache-localforage': patch
'@graphql-mesh/cache-redis': patch
'@graphql-mesh/cache-store': patch
'@graphql-mesh/cli': patch
'@graphql-mesh/config': patch
'@graphql-mesh/container': patch
'@graphql-mesh/graphql': patch
'@graphql-mesh/grpc': patch
'@graphql-mesh/json-schema': patch
'@graphql-mesh/mongoose': patch
'@graphql-mesh/mysql': patch
'@graphql-mesh/neo4j': patch
'@graphql-mesh/new-openapi': patch
'@graphql-mesh/odata': patch
'@graphql-mesh/openapi': patch
'@graphql-mesh/postgraphile': patch
'@graphql-mesh/raml': patch
'@graphql-mesh/soap': patch
'@graphql-mesh/thrift': patch
'@graphql-mesh/tuql': patch
'json-machete': patch
'@omnigraph/json-schema': patch
'@omnigraph/openapi': patch
'@graphql-mesh/merger-bare': patch
'@graphql-mesh/merger-federation': patch
'@graphql-mesh/merger-stitching': patch
'@graphql-mesh/runtime': patch
'@graphql-mesh/store': patch
'@graphql-mesh/transform-cache': patch
'@graphql-mesh/transform-encapsulate': patch
'@graphql-mesh/transform-extend': patch
'@graphql-mesh/transform-federation': patch
'@graphql-mesh/transform-filter-schema': patch
'@graphql-mesh/transform-mock': patch
'@graphql-mesh/transform-naming-convention': patch
'@graphql-mesh/transform-prefix': patch
'@graphql-mesh/transform-rename': patch
'@graphql-mesh/transform-replace-field': patch
'@graphql-mesh/transform-resolvers-composition': patch
'@graphql-mesh/transform-snapshot': patch
'@graphql-mesh/transform-type-merging': patch
'@graphql-mesh/types': patch
'@graphql-mesh/utils': patch
---

enhance: add tslib to dependencies to reduce bundle size
3 changes: 2 additions & 1 deletion packages/cache/file/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,8 @@
"@graphql-mesh/types": "0.65.0",
"@graphql-mesh/utils": "0.27.9",
"dataloader": "2.0.0",
"lodash": "4.17.21"
"lodash": "4.17.21",
"tslib": "^2.3.1"
},
"publishConfig": {
"access": "public",
Expand Down
3 changes: 2 additions & 1 deletion packages/cache/inmemory-lru/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,8 @@
},
"dependencies": {
"@graphql-mesh/types": "0.65.0",
"@graphql-mesh/utils": "0.27.9"
"@graphql-mesh/utils": "0.27.9",
"tslib": "^2.3.1"
},
"publishConfig": {
"access": "public",
Expand Down
3 changes: 2 additions & 1 deletion packages/cache/localforage/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,8 @@
},
"dependencies": {
"@graphql-mesh/types": "0.65.0",
"localforage": "1.10.0"
"localforage": "1.10.0",
"tslib": "^2.3.1"
},
"publishConfig": {
"access": "public",
Expand Down
3 changes: 2 additions & 1 deletion packages/cache/redis/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,8 @@
"@graphql-mesh/utils": "0.27.9",
"@graphql-mesh/cache-inmemory-lru": "0.5.52",
"dataloader": "2.0.0",
"ioredis": "4.28.5"
"ioredis": "4.28.5",
"tslib": "^2.3.1"
},
"devDependencies": {
"@types/ioredis": "4.28.8"
Expand Down
3 changes: 2 additions & 1 deletion packages/cache/store/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,8 @@
},
"dependencies": {
"@graphql-mesh/types": "0.65.0",
"@graphql-mesh/store": "0.3.22"
"@graphql-mesh/store": "0.3.22",
"tslib": "^2.3.1"
},
"publishConfig": {
"access": "public",
Expand Down
3 changes: 2 additions & 1 deletion packages/cli/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,8 @@
"typescript": "4.6.2",
"ts-node": "10.7.0",
"tsconfig-paths": "3.13.0",
"ws": "8.5.0"
"ws": "8.5.0",
"tslib": "^2.3.1"
},
"devDependencies": {
"@types/cors": "2.8.12",
Expand Down
3 changes: 2 additions & 1 deletion packages/config/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,8 @@
"@graphql-tools/code-file-loader": "7.2.4",
"@graphql-tools/graphql-file-loader": "7.3.4",
"param-case": "3.0.4",
"@envelop/core": "2.1.0"
"@envelop/core": "2.1.0",
"tslib": "^2.3.1"
},
"devDependencies": {
"@types/ajv": "1.0.0"
Expand Down
3 changes: 2 additions & 1 deletion packages/container/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,8 @@
"@graphql-mesh/transform-filter-schema": "0.14.23",
"@graphql-mesh/transform-extend": "0.9.22",
"@graphql-mesh/transform-rename": "0.12.12",
"@graphql-mesh/transform-resolvers-composition": "0.12.22"
"@graphql-mesh/transform-resolvers-composition": "0.12.22",
"tslib": "^2.3.1"
},
"publishConfig": {
"access": "public"
Expand Down
3 changes: 2 additions & 1 deletion packages/handlers/graphql/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,8 @@
"@graphql-mesh/types": "0.65.0",
"@graphql-tools/url-loader": "7.8.0",
"@graphql-tools/wrap": "8.4.3",
"@graphql-tools/delegate": "8.5.1"
"@graphql-tools/delegate": "8.5.1",
"tslib": "^2.3.1"
},
"publishConfig": {
"access": "public",
Expand Down
3 changes: 2 additions & 1 deletion packages/handlers/grpc/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,8 @@
"globby": "11.1.0",
"long": "4.0.0",
"protobufjs": "6.11.2",
"lodash": "4.17.21"
"lodash": "4.17.21",
"tslib": "^2.3.1"
},
"publishConfig": {
"access": "public",
Expand Down
3 changes: 2 additions & 1 deletion packages/handlers/json-schema/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,8 @@
"@graphql-mesh/store": "0.3.22",
"@graphql-tools/utils": "8.6.2",
"graphql-compose": "9.0.7",
"@omnigraph/json-schema": "0.17.0"
"@omnigraph/json-schema": "0.17.0",
"tslib": "^2.3.1"
},
"publishConfig": {
"access": "public",
Expand Down
3 changes: 2 additions & 1 deletion packages/handlers/mongoose/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,8 @@
"graphql-compose-mongoose": "9.7.1",
"graphql-compose-connection": "8.2.1",
"graphql-compose-pagination": "8.3.0",
"@graphql-tools/stitching-directives": "2.2.2"
"@graphql-tools/stitching-directives": "2.2.2",
"tslib": "^2.3.1"
},
"publishConfig": {
"access": "public",
Expand Down
3 changes: 2 additions & 1 deletion packages/handlers/mysql/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,8 @@
"graphql-fields": "2.0.3",
"mysql": "2.18.1",
"mysql-utilities": "1.1.3",
"graphql-scalars": "1.15.0"
"graphql-scalars": "1.15.0",
"tslib": "^2.3.1"
},
"devDependencies": {
"@types/graphql-fields": "1.3.4",
Expand Down
3 changes: 2 additions & 1 deletion packages/handlers/neo4j/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,8 @@
"@graphql-mesh/utils": "0.27.9",
"@graphql-mesh/types": "0.65.0",
"neo4j-driver": "4.4.3",
"neo4j-graphql-js": "2.19.4"
"neo4j-graphql-js": "2.19.4",
"tslib": "^2.3.1"
},
"publishConfig": {
"access": "public",
Expand Down
3 changes: 2 additions & 1 deletion packages/handlers/new-openapi/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,8 @@
"@graphql-mesh/store": "0.3.22",
"@graphql-mesh/types": "0.65.0",
"@omnigraph/openapi": "0.3.12",
"@graphql-mesh/utils": "0.27.9"
"@graphql-mesh/utils": "0.27.9",
"tslib": "^2.3.1"
},
"publishConfig": {
"access": "public",
Expand Down
3 changes: 2 additions & 1 deletion packages/handlers/odata/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,8 @@
"graphql-parse-resolve-info": "4.12.0",
"graphql-scalars": "1.15.0",
"pascal-case": "3.1.2",
"url-join": "4.0.1"
"url-join": "4.0.1",
"tslib": "^2.3.1"
},
"publishConfig": {
"access": "public",
Expand Down
3 changes: 2 additions & 1 deletion packages/handlers/openapi/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,8 @@
"pluralize": "8.0.0",
"swagger2openapi": "7.0.8",
"url-join": "4.0.1",
"openapi-types": "10.0.0"
"openapi-types": "10.0.0",
"tslib": "^2.3.1"
},
"publishConfig": {
"access": "public",
Expand Down
3 changes: 2 additions & 1 deletion packages/handlers/postgraphile/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,8 @@
"@graphql-mesh/utils": "0.27.9",
"postgraphile-core": "4.12.2",
"postgraphile": "4.12.9",
"pg": "^8.6.0"
"pg": "^8.6.0",
"tslib": "^2.3.1"
},
"publishConfig": {
"access": "public",
Expand Down
3 changes: 2 additions & 1 deletion packages/handlers/raml/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,8 @@
"@graphql-mesh/store": "0.3.22",
"@graphql-mesh/types": "0.65.0",
"@omnigraph/raml": "0.5.5",
"@graphql-mesh/utils": "0.27.9"
"@graphql-mesh/utils": "0.27.9",
"tslib": "^2.3.1"
},
"publishConfig": {
"access": "public",
Expand Down
3 changes: 2 additions & 1 deletion packages/handlers/soap/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,8 @@
"@graphql-mesh/utils": "0.27.9",
"@graphql-tools/utils": "8.6.2",
"graphql-scalars": "1.15.0",
"soap": "0.43.0"
"soap": "0.43.0",
"tslib": "^2.3.1"
},
"publishConfig": {
"access": "public",
Expand Down
3 changes: 2 additions & 1 deletion packages/handlers/thrift/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,8 @@
"fetchache": "0.1.1",
"graphql-scalars": "1.15.0",
"url-join": "4.0.1",
"thrift": "0.16.0"
"thrift": "0.16.0",
"tslib": "^2.3.1"
},
"publishConfig": {
"access": "public",
Expand Down
3 changes: 2 additions & 1 deletion packages/handlers/tuql/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,8 @@
},
"dependencies": {
"@graphql-mesh/types": "0.65.0",
"tuql": "1.7.0"
"tuql": "1.7.0",
"tslib": "^2.3.1"
},
"publishConfig": {
"access": "public",
Expand Down
3 changes: 2 additions & 1 deletion packages/json-machete/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,8 @@
"json-ptr": "3.1.0",
"@graphql-mesh/utils": "0.27.9",
"url-join": "4.0.1",
"to-json-schema": "0.2.5"
"to-json-schema": "0.2.5",
"tslib": "^2.3.1"
},
"publishConfig": {
"access": "public",
Expand Down
3 changes: 2 additions & 1 deletion packages/loaders/json-schema/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,8 @@
"url-join": "4.0.1",
"qs": "6.10.3",
"pascal-case": "3.1.2",
"lodash": "4.17.21"
"lodash": "4.17.21",
"tslib": "^2.3.1"
},
"publishConfig": {
"access": "public",
Expand Down
3 changes: 2 additions & 1 deletion packages/loaders/openapi/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,8 @@
"@graphql-mesh/utils": "0.27.9",
"json-machete": "0.5.10",
"openapi-types": "10.0.0",
"change-case": "4.1.2"
"change-case": "4.1.2",
"tslib": "^2.3.1"
},
"publishConfig": {
"access": "public",
Expand Down
3 changes: 2 additions & 1 deletion packages/mergers/bare/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,8 @@
"fetchache": "0.1.1",
"@graphql-tools/schema": "8.3.2",
"@graphql-tools/wrap": "8.4.3",
"@graphql-tools/utils": "8.6.2"
"@graphql-tools/utils": "8.6.2",
"tslib": "^2.3.1"
},
"publishConfig": {
"access": "public",
Expand Down
3 changes: 2 additions & 1 deletion packages/mergers/federation/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,8 @@
"@graphql-tools/schema": "8.3.2",
"@graphql-mesh/utils": "0.27.9",
"@graphql-tools/utils": "8.6.2",
"@graphql-mesh/store": "0.3.22"
"@graphql-mesh/store": "0.3.22",
"tslib": "^2.3.1"
},
"publishConfig": {
"access": "public",
Expand Down
3 changes: 2 additions & 1 deletion packages/mergers/stitching/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,8 @@
"@graphql-tools/delegate": "8.5.1",
"@graphql-tools/stitching-directives": "2.2.2",
"@graphql-tools/schema": "8.3.2",
"@graphql-mesh/store": "0.3.22"
"@graphql-mesh/store": "0.3.22",
"tslib": "^2.3.1"
},
"publishConfig": {
"access": "public",
Expand Down
3 changes: 2 additions & 1 deletion packages/runtime/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,8 @@
"@graphql-tools/wrap": "8.4.3",
"@graphql-tools/utils": "8.6.2",
"@envelop/core": "2.1.0",
"@envelop/live-query": "3.1.0"
"@envelop/live-query": "3.1.0",
"tslib": "^2.3.1"
},
"publishConfig": {
"access": "public",
Expand Down
3 changes: 2 additions & 1 deletion packages/store/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,8 @@
"dependencies": {
"@graphql-inspector/core": "3.1.1",
"@graphql-mesh/utils": "0.27.9",
"@graphql-tools/utils": "8.6.2"
"@graphql-tools/utils": "8.6.2",
"tslib": "^2.3.1"
},
"publishConfig": {
"access": "public",
Expand Down
3 changes: 2 additions & 1 deletion packages/transforms/cache/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,8 @@
"date-fns": "2.28.0",
"@graphql-tools/resolvers-composition": "6.4.2",
"@graphql-tools/schema": "8.3.2",
"@graphql-tools/utils": "8.6.2"
"@graphql-tools/utils": "8.6.2",
"tslib": "^2.3.1"
},
"publishConfig": {
"access": "public",
Expand Down
3 changes: 2 additions & 1 deletion packages/transforms/encapsulate/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,8 @@
"@graphql-mesh/utils": "0.27.9",
"@graphql-tools/delegate": "8.5.1",
"@graphql-tools/wrap": "8.4.3",
"@graphql-tools/utils": "8.6.2"
"@graphql-tools/utils": "8.6.2",
"tslib": "^2.3.1"
},
"publishConfig": {
"access": "public",
Expand Down
3 changes: 2 additions & 1 deletion packages/transforms/extend/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,8 @@
"@graphql-tools/load": "7.5.2",
"@graphql-tools/code-file-loader": "7.2.4",
"@graphql-tools/graphql-file-loader": "7.3.4",
"@graphql-tools/schema": "8.3.2"
"@graphql-tools/schema": "8.3.2",
"tslib": "^2.3.1"
},
"publishConfig": {
"access": "public",
Expand Down
3 changes: 2 additions & 1 deletion packages/transforms/federation/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,8 @@
"lodash": "4.17.21",
"@graphql-tools/utils": "8.6.2",
"@graphql-tools/stitching-directives": "2.2.2",
"@graphql-tools/delegate": "8.5.1"
"@graphql-tools/delegate": "8.5.1",
"tslib": "^2.3.1"
},
"publishConfig": {
"access": "public",
Expand Down
3 changes: 2 additions & 1 deletion packages/transforms/filter-schema/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,8 @@
"micromatch": "4.0.4",
"@graphql-tools/wrap": "8.4.3",
"@graphql-tools/delegate": "8.5.1",
"@graphql-tools/utils": "8.6.2"
"@graphql-tools/utils": "8.6.2",
"tslib": "^2.3.1"
},
"publishConfig": {
"access": "public",
Expand Down

1 comment on commit b481fbc

@vercel
Copy link

@vercel vercel bot commented on b481fbc Mar 9, 2022

Choose a reason for hiding this comment

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

Please sign in to comment.