Skip to content

Commit b6c0154

Browse files
Merge remote-tracking branch 'upstream/master'
2 parents d0b644d + f1642f1 commit b6c0154

File tree

440 files changed

+40940
-11524
lines changed

Some content is hidden

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

440 files changed

+40940
-11524
lines changed

.circleci/config.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ jobs:
77
build:
88
docker:
99
# specify the version you desire here
10-
- image: circleci/node:7.10
10+
- image: circleci/node:8.9.0
1111

1212
# Specify service dependencies here if necessary
1313
# CircleCI maintains a library of pre-built images

.eslintrc.js

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
2+
const allowedModules = require("./allowedModules");
3+
14
module.exports = {
25
"env": {
36
"browser": true,
@@ -11,6 +14,9 @@ module.exports = {
1114
}
1215
},
1316
"extends": "standard",
17+
"plugins": [
18+
"prebid"
19+
],
1420
"globals": {
1521
"$$PREBID_GLOBAL$$": false
1622
},
@@ -31,5 +37,11 @@ module.exports = {
3137
"no-throw-literal": "off",
3238
"no-undef": "off",
3339
"no-useless-escape": "off",
34-
}
40+
},
41+
"overrides": Object.keys(allowedModules).map((key) => ({
42+
"files": key + "/**/*.js",
43+
"rules": {
44+
"prebid/validate-imports": ["error", allowedModules[key]]
45+
}
46+
}))
3547
};

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,9 @@ build/coverage/
2828
.idea/
2929
# if you remove the above rule, at least ignore the following:
3030

31+
# VS Code
32+
.vscode/
33+
3134
# User-specific stuff:
3235
# .idea/workspace.xml
3336
# .idea/tasks.xml

.nvmrc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
7.0
1+
8.9

CONTRIBUTING.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ commit your changes, and [open a pull request](https://help.github.com/articles/
44
master branch.
55

66
Pull requests must have 80% code coverage before beign considered for merge.
7-
Additional details about the process can be found [here](./pr_review.md).
7+
Additional details about the process can be found [here](./PR_REVIEW.md).
88

99
## Issues
1010
[prebid.org](http://prebid.org/) contains documentation that may help answer questions you have about using Prebid.js.

PR_REVIEW.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,11 @@ For modules and core platform updates, the initial reviewer should request an ad
1414
- Review for obvious errors or bad coding practice / use best judgement here.
1515
- If the change is a new feature / change to core prebid.js - review the change with a Tech Lead on the project and make sure they agree with the nature of change.
1616
- If the change results in needing updates to docs (such as public API change, module interface etc), add a label for "needs docs" and inform the submitter they must submit a docs PR to update the appropriate area of Prebid.org **before the PR can merge**. Help them with finding where the docs are located on prebid.org if needed.
17+
- Below are some examples of bidder specific updates that should require docs update (in their dev-docs/bidders/bidder.md file):
18+
- Add support for GDPR consentManagement module > add `gdpr_supported: true`
19+
- Add support for userId module > add `userId: pubCommon, digitrust, newProviderHere`
20+
- Add support for video and/or native mediaTypes > add `media_types: video, native`
21+
- Add support for COPPA > add `coppa_supported: true`
1722
- If all above is good, add a `LGTM` comment and request 1 additional core member to review.
1823
- Once there is 2 `LGTM` on the PR, merge to master
1924
- Ask the submitter to add a PR for documentation if applicable.

README.md

Lines changed: 17 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ module.exports = {
6666
}
6767
```
6868

69-
Or for Babel 6 and/or Node v8.6.0 and less:
69+
Or for Babel 6:
7070
```javascript
7171
// you must manually install and specify the presets and plugins yourself
7272
options: {
@@ -112,11 +112,11 @@ prebid.requestBids({
112112
$ cd Prebid.js
113113
$ npm install
114114

115-
*Note:* You need to have `NodeJS` 6.x or greater installed.
115+
*Note:* You need to have `NodeJS` 8.9.x or greater installed.
116116

117-
*Note:* In the 1.24.0 release of Prebid.js we have transitioned to using gulp 4.0 from using gulp 3.9.1. To compily with gulp's recommended setup for 4.0, you'll need to have `gulp-cli` installed globally prior to running the general `npm install`. This shouldn't impact any other projects you may work on that use an earlier version of gulp in it's setup.
117+
*Note:* In the 1.24.0 release of Prebid.js we have transitioned to using gulp 4.0 from using gulp 3.9.1. To comply with gulp's recommended setup for 4.0, you'll need to have `gulp-cli` installed globally prior to running the general `npm install`. This shouldn't impact any other projects you may work on that use an earlier version of gulp in its setup.
118118

119-
If you have a previous version of `gulp` installed globally, you'll need to remove it before installing `gulp-cli`. You can check if this is installed by running `gulp -v` and seeing the version that's listed in the `CLI` field of the output. If you have the `gulp` package installd globally, it's likely the same version that you'll see in the `Local` field. If you already have `gulp-cli` installed, it should be a lower major version (it's at version `2.0.1` at the time of the transition).
119+
If you have a previous version of `gulp` installed globally, you'll need to remove it before installing `gulp-cli`. You can check if this is installed by running `gulp -v` and seeing the version that's listed in the `CLI` field of the output. If you have the `gulp` package installed globally, it's likely the same version that you'll see in the `Local` field. If you already have `gulp-cli` installed, it should be a lower major version (it's at version `2.0.1` at the time of the transition).
120120

121121
To remove the old package, you can use the command: `npm rm gulp -g`
122122

@@ -207,10 +207,20 @@ gulp test-coverage
207207
gulp view-coverage
208208
```
209209

210-
For end-to-end testing, edit the example file `./integrationExamples/gpt/pbjs_example_gpt.html`:
210+
For Prebid.org members with access to BrowserStack, additional end-to-end testing can be done with:
211211

212-
1. Change `{id}` values appropriately to set up ad units and bidders
213-
2. Set the path to Prebid.js in your example file as shown below (see `pbs.src`).
212+
```bash
213+
gulp e2e-test --host=test.localhost
214+
```
215+
216+
To run these tests, the following items are required:
217+
- setup an alias of localhost in your `hosts` file (eg `127.0.0.1 test.localhost`); note - you can use any alias. Use this alias in the command-line argument above.
218+
- access to [BrowserStack](https://www.browserstack.com/) account. Assign the following variables in your bash_profile:
219+
```bash
220+
export BROWSERSTACK_USERNAME='YourUserNameHere'
221+
export BROWSERSTACK_ACCESS_KEY='YourAccessKeyHere'
222+
```
223+
You can get these BrowserStack values from your profile page.
214224

215225
For development:
216226

allowedModules.js

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
2+
const sharedWhiteList = [
3+
"core-js/library/fn/array/find", // no ie11
4+
"core-js/library/fn/array/includes", // no ie11
5+
"core-js/library/fn/set", // ie11 supports Set but not Set#values
6+
"core-js/library/fn/string/includes", // no ie11
7+
"core-js/library/fn/number/is-integer", // no ie11,
8+
"core-js/library/fn/array/from" // no ie11
9+
];
10+
11+
module.exports = {
12+
'modules': [
13+
...sharedWhiteList,
14+
'jsencrypt',
15+
'crypto-js'
16+
],
17+
'src': [
18+
...sharedWhiteList,
19+
'fun-hooks/no-eval',
20+
'just-clone',
21+
'dlv',
22+
'dset'
23+
]
24+
};

browsers.json

Lines changed: 25 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,17 @@
11
{
2-
"bs_ie_14_windows_10": {
2+
"bs_edge_17_windows_10": {
33
"base": "BrowserStack",
44
"os_version": "10",
55
"browser": "edge",
6-
"browser_version": "14.0",
6+
"browser_version": "17.0",
7+
"device": null,
8+
"os": "Windows"
9+
},
10+
"bs_edge_16_windows_10": {
11+
"base": "BrowserStack",
12+
"os_version": "10",
13+
"browser": "edge",
14+
"browser_version": "16.0",
715
"device": null,
816
"os": "Windows"
917
},
@@ -15,52 +23,52 @@
1523
"device": null,
1624
"os": "Windows"
1725
},
18-
"bs_chrome_62_windows_10": {
26+
"bs_chrome_74_windows_10": {
1927
"base": "BrowserStack",
2028
"os_version": "10",
2129
"browser": "chrome",
22-
"browser_version": "62.0",
30+
"browser_version": "74.0",
2331
"device": null,
2432
"os": "Windows"
2533
},
26-
"bs_chrome_61_windows_10": {
34+
"bs_chrome_75_windows_10": {
2735
"base": "BrowserStack",
2836
"os_version": "10",
2937
"browser": "chrome",
30-
"browser_version": "61.0",
38+
"browser_version": "75.0",
3139
"device": null,
3240
"os": "Windows"
3341
},
34-
"bs_firefox_58_windows_10": {
42+
"bs_firefox_66_windows_10": {
3543
"base": "BrowserStack",
3644
"os_version": "10",
3745
"browser": "firefox",
38-
"browser_version": "58.0",
46+
"browser_version": "66.0",
3947
"device": null,
4048
"os": "Windows"
4149
},
42-
"bs_firefox_57_windows_10": {
50+
"bs_firefox_67_windows_10": {
4351
"base": "BrowserStack",
4452
"os_version": "10",
4553
"browser": "firefox",
46-
"browser_version": "57.0",
54+
"browser_version": "67.0",
4755
"device": null,
4856
"os": "Windows"
4957
},
50-
"bs_safari_9.1_mac_elcapitan": {
58+
"bs_safari_11_mac_high_sierra": {
5159
"base": "BrowserStack",
52-
"os_version": "El Capitan",
60+
"os_version": "High Sierra",
5361
"browser": "safari",
54-
"browser_version": "9.1",
62+
"browser_version": "11.1",
5563
"device": null,
5664
"os": "OS X"
5765
},
58-
"bs_safari_8_mac_yosemite": {
66+
"bs_safari_12_mac_mojave": {
5967
"base": "BrowserStack",
60-
"os_version": "Yosemite",
68+
"os_version": "Mojave",
6169
"browser": "safari",
62-
"browser_version": "8.0",
70+
"browser_version": "12.0",
6371
"device": null,
6472
"os": "OS X"
6573
}
66-
}
74+
}

0 commit comments

Comments
 (0)