apostrophe 2.227.3 → 2.227.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,43 @@
1
+ name: Tests
2
+
3
+ # Controls when the action will run.
4
+ on:
5
+ push:
6
+ branches: ["main"]
7
+ pull_request:
8
+ branches: ["*"]
9
+
10
+ # Allows you to run this workflow manually from the Actions tab
11
+ workflow_dispatch:
12
+
13
+ # A workflow run is made up of one or more jobs that can run sequentially or in parallel
14
+ jobs:
15
+ # This workflow contains a single job called "build"
16
+ build:
17
+ # The type of runner that the job will run on
18
+ runs-on: ubuntu-latest
19
+ strategy:
20
+ matrix:
21
+ node-version: [18, 20]
22
+ mongodb-version: [4.4, 5.0, 6.0, 7.0]
23
+
24
+ # Steps represent a sequence of tasks that will be executed as part of the job
25
+ steps:
26
+ - name: Git checkout
27
+ uses: actions/checkout@v2
28
+
29
+ - name: Use Node.js ${{ matrix.node-version }}
30
+ uses: actions/setup-node@v1
31
+ with:
32
+ node-version: ${{ matrix.node-version }}
33
+
34
+ - name: Start MongoDB
35
+ uses: supercharge/mongodb-github-action@1.3.0
36
+ with:
37
+ mongodb-version: ${{ matrix.mongodb-version }}
38
+
39
+ - run: npm install
40
+
41
+ - run: npm test
42
+ env:
43
+ CI: true
package/CHANGELOG.md CHANGED
@@ -1,5 +1,18 @@
1
1
  # Changelog
2
2
 
3
+ ## 2.227.5 (2024-04-18)
4
+
5
+ ### Changes
6
+
7
+ * Update `emulate-mongo-2-driver`dependency to keep supporting `mongodb@2.x` queries while using `mongodb@6.x`.
8
+
9
+ ## 2.227.4 2023-09-27
10
+
11
+ ### Fixes
12
+
13
+ * Bump dependency on `oembetter` to ensure support for Vimeo after they
14
+ decided to remove oembed meta tags from their video pages.
15
+
3
16
  ## 2.227.3 (2023-06-08)
4
17
 
5
18
  ### Fixes
package/package.json CHANGED
@@ -1,10 +1,10 @@
1
1
  {
2
2
  "name": "apostrophe",
3
- "version": "2.227.3",
3
+ "version": "2.227.5",
4
4
  "description": "The Apostrophe Content Management System.",
5
5
  "main": "index.js",
6
6
  "scripts": {
7
- "test": "npm run build-test-package-json && npm run lint && npm run audit && mocha --timeout 50000",
7
+ "test": "npm run build-test-package-json && npm run lint && mocha --timeout 50000",
8
8
  "audit": "npm audit --production",
9
9
  "lint": "eslint .",
10
10
  "build-test-package-json": "node ./test-lib/build-test-package-json.js"
@@ -39,7 +39,7 @@
39
39
  "credentials": "^3.0.2",
40
40
  "cuid": "^1.3.8",
41
41
  "diff": "^4.0.1",
42
- "emulate-mongo-2-driver": "^1.2.3",
42
+ "emulate-mongo-2-driver": "^1.3.3",
43
43
  "express": "^4.17.1",
44
44
  "express-session": "^1.17.0",
45
45
  "glob": "^5.0.15",
@@ -59,7 +59,7 @@
59
59
  "moment": "^2.29.1",
60
60
  "moog-require": "^1.1.0",
61
61
  "nodemailer": "^6.6.2",
62
- "oembetter": "^1.0.1",
62
+ "oembetter": "^1.1.1",
63
63
  "passport": "^0.6.0",
64
64
  "passport-local": "^1.0.0",
65
65
  "passport-totp": "0.0.2",
@@ -93,4 +93,4 @@
93
93
  "eslint-plugin-standard": "^3.1.0",
94
94
  "mocha": "^7.0.0"
95
95
  }
96
- }
96
+ }
@@ -13,6 +13,12 @@ describe('APOS_BASE_URL environment variable', function() {
13
13
  apos = require('../index.js')({
14
14
  root: module,
15
15
  shortName: 'test',
16
+ modules: {
17
+ 'apostrophe-express': {
18
+ secret: 'xxx',
19
+ port: 7900
20
+ }
21
+ },
16
22
  afterInit: function(callback) {
17
23
  // In tests this will be the name of the test file,
18
24
  // so override that in order to get apostrophe to