Skip to content

Commit 355605c

Browse files
authored
Merge pull request #92 from neonexus/master
v4.1.0 update
2 parents a5e6541 + 37a6d88 commit 355605c

File tree

126 files changed

+1975
-827
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

126 files changed

+1975
-827
lines changed

.idea/runConfigurations/Run_Tests.xml

+13-8
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/runConfigurations/test_startTests_js.xml

-17
This file was deleted.

.mocharc.yaml

+2-2
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@ async-only: true # require use of "done" cb or an async function (a Promise)
33
require:
44
- 'test/startTests.js' # starting point for tests
55
spec:
6-
- 'test/unit/**/*.test.js'
7-
- 'test/integration/**/*.test.js'
6+
- 'test/unit/index.js'
7+
- 'test/integration/index.js'
88
timeout: 10000 # Give Sails some breathing room... We are building schemas / data fixtures.
99
checkLeaks: true
1010
global:

.travis.yml

+5-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
1-
dist: focal
1+
dist: jammy
22
language: node_js
3-
node_js: '18'
3+
node_js: node
4+
cache:
5+
directories: [ node_modules ]
6+
install: npm install
47
services: mysql
58
before_install:
69
- mysql -e 'CREATE DATABASE IF NOT EXISTS testing;'

CHANGELOG.md

+28-2
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,34 @@
11
# Changelog
22

3+
## [v4.1.0](https://github.com/neonexus/sails-react-bootstrap-webpack/compare/v4.0.1...v4.1.0) (2023-03-13)
4+
### Features
5+
6+
* Alphabetized the scripts in `package.json`.
7+
* Added custom configuration options to the main `README`.
8+
* Updated dependencies.
9+
* Reworked how tests are run, so they are a bit more organized in a nested tree for reporting.
10+
* Added JSDoc comments to most helpers to aid with auto-completion (some helpers aren't meant to be used outside of automation).
11+
* Added some `README` files to a few key folders.
12+
* Added table of contents to README.
13+
14+
### Breaking Changes
15+
16+
* Renamed `sails.config.logSensitiveData` -> `sails.config.security.requestLogger.logSensitiveData`.
17+
* Rewrote the [`keepModelsSafe` helper](api/helpers/keep-models-safe.js) to better handle dates (Javascript or Moment).
18+
* Changed `sails.helpers.getErrorMessages` to be a synchronous function.
19+
* Changed `sails.helpers.simplifyErrors` to be a synchronous function.
20+
* Changed `sails.helpers.generateToken` to use `SHA512` instead of `SHA256`, doubling the size of tokens (64 -> 128).
21+
22+
### Future Plans
23+
24+
* Switching [`Moment.js`](https://momentjs.com) -> [`Luxon`](https://moment.github.io/luxon/) per [Moment's recommendations](https://momentjs.com/docs/#/-project-status/recommendations/). There are a few difference to be aware of: [https://moment.github.io/luxon/#/moment](https://moment.github.io/luxon/#/moment). Display formats are also different between the 2.
25+
326
## [v4.0.1](https://github.com/neonexus/sails-react-bootstrap-webpack/compare/v4.0.0...v4.0.1) (2023-02-19)
427
### Features
528

629
* Updated GitHub CodeQL config.
730
* Regenerated package-lock.json to use version 3.
8-
* Manually updated package-lock.json to clear `npm audit` issues.
31+
* Manually updated `package-lock.json` to clear `npm audit` issues.
932
* Updated dependencies.
1033
* Updated Node min requirement to 18.14.
1134

@@ -14,10 +37,13 @@
1437
### Features
1538

1639
* More work on automated tests and utilities.
17-
* Renamed tests entry point (hooks.js -> startTests.js).
1840
* Updated dependencies.
1941
* Removed `md5` / `sha1` / `uuid` packages, in favor of Node built-ins.
2042

43+
### Breaking Changes
44+
45+
* Renamed tests entry point (`hooks.js` -> `startTests.js`).
46+
2147
## [v3.2.1](https://github.com/neonexus/sails-react-bootstrap-webpack/compare/v3.2.0...v3.2.1) (2022-11-16)
2248

2349
### Features

Dockerfile

+6-13
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
1-
FROM node:18.14
1+
FROM node:18.15
22
MAINTAINER NeoNexus DeMortis
33

4-
RUN apt-get update && apt-get upgrade -y
5-
RUN apt-get install -y curl ntp nano
64
RUN mkdir /var/www && mkdir /var/www/myapp
75
WORKDIR /var/www/myapp
86

@@ -12,20 +10,15 @@ EXPOSE 1337
1210
ENV PORT=1337 DB_HOSTNAME=dockerdb DB_USERNAME=dockeruser DB_PASSWORD=dockerpass DB_NAME=docker DB_PORT=3306 DB_SSL=true DATA_ENCRYPTION_KEY=1234abcd4321asdf0987lkjh SESSION_SECRET=0987poiuqwer1234zxcvmnbv
1311

1412
# This keeps builds more efficient, because we can use Docker cache more effectively.
15-
COPY package.json /var/www/myapp/package.json
13+
COPY package.json package.json
14+
COPY package-lock.json package-lock.json
1615
RUN npm install
1716

18-
# More caching help
19-
COPY ./* /var/www/myapp/
20-
COPY config /var/www/myapp/config
21-
COPY assets /var/www/myapp/assets
22-
COPY webpack /var/www/myapp/webpack
17+
# Build the PRODUCTION assets
18+
COPY . .
2319
RUN npm run build
2420

25-
# Copy the rest of the app
26-
COPY . /var/www/myapp/
27-
2821
# Expose the compiled public assets, so Nginx can route to them, instead of using Sails to do the file serving.
29-
VOLUME /var/www/myapp/.tmp/public
22+
VOLUME .tmp/public
3023

3124
CMD NODE_ENV=production node app.js --max-stack-size 32000

LICENSE

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
THIS LICENSE APPLIES ONLY TO THIS PARTICULAR COLLECTION AND
22
CONFIGURATION OF SOFTWARE, AND DOES NOT NEGATE, OVERRIDE OR
3-
SUPERSEDE THE LICENSES OF THE OPEN SOURCE SOFTWARE USED IN
4-
THIS REPOSITORY.
3+
SUPERSEDE THE LICENSES OF THE OPEN SOURCE SOFTWARE DEPENDENCIES
4+
USED IN THIS REPOSITORY.
55

66
This is free and unencumbered software released into the public domain.
77

@@ -20,7 +20,7 @@ software under copyright law.
2020

2121
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
2222
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
23-
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
23+
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT.
2424
IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR
2525
OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
2626
ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR

0 commit comments

Comments
 (0)