Skip to content

Commit 1812151

Browse files
authored
Merge pull request #52 from digitalmaas/next
2 parents eacc092 + c56cce2 commit 1812151

File tree

7 files changed

+14540
-4468
lines changed

7 files changed

+14540
-4468
lines changed

.circleci/config.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,15 @@ version: 2
22
jobs:
33
run_tests:
44
docker:
5-
- image: circleci/node:10
5+
- image: circleci/node:14
66
steps:
77
- checkout
88
- run: npm ci --verbose
99
- run: npm test
1010

1111
release:
1212
docker:
13-
- image: circleci/node:10
13+
- image: circleci/node:14
1414
steps:
1515
- checkout
1616
- run: npm ci --verbose

.npmrc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
11
loglevel=error
2+
legacy-peer-deps=true

CHANGELOG.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,11 @@
1+
### [3.1.1-rc.1](https://github.com/digitalmaas/serverless-plugin-browserifier/compare/v3.1.0...v3.1.1-rc.1) (2022-03-29)
2+
3+
4+
### Bug Fixes
5+
6+
* update dependencies to address high severity vulnerabilities ([5ba17e4](https://github.com/digitalmaas/serverless-plugin-browserifier/commit/5ba17e48460908227c9de156afc5fc1b170d36af))
7+
* update dependencies to remove security warnings ([0089e68](https://github.com/digitalmaas/serverless-plugin-browserifier/commit/0089e6843286eadac4dad3e26aeedd8aeb996f04))
8+
19
## [3.1.0](https://github.com/digitalmaas/serverless-plugin-browserifier/compare/v3.0.0...v3.1.0) (2021-08-09)
210

311

README.md

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ Serverless Browserifier Plugin
77
[![NPM downloads][downloads-badge]][npm-url]
88
[![standardjs][standardjs-badge]][standardjs-url]
99

10-
> A [Serverless](https://serverless.com) v1 and v2 plugin that uses [`browserify`][browserify-url] to bundle your Node.js Lambda functions.
10+
> A [Serverless](https://serverless.com) plugin that uses [`browserify`][browserify-url] to bundle your Node.js Lambda functions. Works with serverless versions 1 to 3.
1111
1212
1. [Supported Commands](#supported-commands)
1313
1. [Motivation](#motivation)
@@ -190,9 +190,9 @@ const s3 = new S3()
190190

191191
#### Ignore AWS SDK v2!
192192

193-
Although you can use discrete clients (see item above), AWS Lambda service always bundles up the latest SDK version in its Lambda container image. That means that, even if you don't add AWS SDK to your bundle, it will still be available in runtime.
193+
Although you can use discrete clients (see item above), AWS Lambda service always bundles up the latest v2 SDK version in its Lambda container image. That means that, even if you don't add AWS SDK to your bundle, it will still be available in for your code in runtime.
194194

195-
Therefore, if you don't need any specific AWS SDK version, you can add the following to your plugin config:
195+
Therefore, if you don't need any specific AWS SDK v2 version, you can add the following to your plugin config:
196196

197197
```yml
198198
custom:
@@ -218,8 +218,9 @@ const fs = require('fs')
218218
const path = require('path')
219219
220220
module.exports = function browserifyOptions () {
221+
// may contain any option defined in
222+
// https://github.com/substack/node-browserify#browserifyfiles--opts
221223
return {
222-
// any other valid browserify configuration...
223224
noParse: ['/**/*.json'],
224225
exclude: ['aws-sdk', ...getAllAwsSdkClients()]
225226
}
@@ -246,7 +247,7 @@ You should be able to use [`uglify-es`][uglify-url] through [`uglifyify`][uglify
246247

247248
__This other plugin I use is not playing ball with `serverless-plugin-browserifier`! What's up?__
248249

249-
This plugin _hijacks_ the normal serverless packaging process, so it will probably conflict with other plugins that use similar mechanisms. Please avoid mixing this plugin with other plugins that modify serverless' packaging behaviour.
250+
This plugin *hijacks* the normal serverless packaging process, so it will probably conflict with other plugins that use similar mechanisms. Please avoid mixing this plugin with other plugins that modify serverless' packaging behaviour.
250251

251252

252253
Useful Information

lib/bundle.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -84,8 +84,7 @@ function prepareIncludes (data) {
8484
const includeFiles = globby.sync(data.functionBrowserifyConfig.include, {
8585
cwd: this._s.config.servicePath,
8686
dot: true,
87-
silent: true,
88-
follow: true
87+
followSymbolicLinks: true
8988
})
9089
if (includeFiles && includeFiles.length) {
9190
if (this._b.debugOn) {

0 commit comments

Comments
 (0)