Skip to content

Commit 76edcd4

Browse files
author
m.sorochuk
committed
Merge branch 'master' of https://github.com/prebid/Prebid.js
* 'master' of https://github.com/prebid/Prebid.js: (76 commits) Updated adUnitCode (prebid#2262) vastUrl is set based on nurl for video. (prebid#2249) Added ad id to a4g bid (prebid#2250) Add billing url (burl) support (prebid#2246) Fix: add mediatype in bid response (prebid#2260) use b64EncodeUnicode to encode strings with unicode chars in them (prebid#2245) create RELEASE_SCHEDULE.md (prebid#2255) Update Platform.io Adapter (prebid#2230) Update Lifestreet adapter to 1.0 (prebid#2197) PBS adapter not sending app or device (prebid#2206) Fix prebid#2229 - Edge cookie string form (prebid#2236) Add Invibes Adapter (prebid#2202) Increment pre version Prebid 1.5.0 Release Fix cross-platform test failures (prebid#2228) Fix uncahced video bids from multi-response array triggering callback early (prebid#2219) Add vuble adapter (prebid#2201) Update Vidazoo domain (prebid#2223) InSkin Bid Adapter: remove referrer field from request body (prebid#2217) Gamma Support UserSync Endpoint (prebid#2216) ...
2 parents 7013a40 + 4fee47d commit 76edcd4

File tree

139 files changed

+29126
-10841
lines changed

Some content is hidden

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

139 files changed

+29126
-10841
lines changed

.eslintrc.js

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,12 +21,9 @@ module.exports = {
2121
// See Issue #1111.
2222
"camelcase": "off",
2323
"eqeqeq": "off",
24-
"no-control-regex": "off",
2524
"no-return-assign": "off",
2625
"no-throw-literal": "off",
2726
"no-undef": "off",
28-
"no-use-before-define": "off",
2927
"no-useless-escape": "off",
30-
"standard/no-callback-literal": "off",
3128
}
3229
};

.github/stale.yml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
# Number of days of inactivity before an issue becomes stale
2+
daysUntilStale: 14
3+
# Number of days of inactivity before a stale issue is closed
4+
daysUntilClose: 7
5+
# Issues with these labels will never be considered stale
6+
exemptLabels:
7+
- pinned
8+
- security
9+
- bug
10+
# Label to use when marking an issue as stale
11+
staleLabel: wontfix
12+
# Comment to post when marking an issue as stale. Set to `false` to disable
13+
markComment: >
14+
This issue has been automatically marked as stale because it has not had
15+
recent activity. It will be closed if no further activity occurs. Thank you
16+
for your contributions.
17+
# Comment to post when closing a stale issue. Set to `false` to disable
18+
closeComment: false

CONTRIBUTING.md

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -48,9 +48,6 @@ When you are adding code to Prebid.js, or modifying code that isn't covered by a
4848
- _Assert_: check that the expected results have occurred
4949
- e.g., use Chai assertions to check that the expected output is equal to the actual output
5050
- Test the public interface, not the internal implementation
51-
- If using global `pbjs` data structures in your test, take care to not completely overwrite them with your own data as that may affect other tests relying on those structures, e.g.:
52-
- **OK**: `pbjs._bidsRequested.push(bidderRequestObject);`
53-
- **NOT OK**: `pbjs._bidsRequested = [bidderRequestObject];`
5451
- If you need to check `adloader.loadScript` in a test, use a `stub` rather than a `spy`. `spy`s trigger a network call which can result in a `script error` and cause unrelated unit tests to fail. `stub`s will let you gather information about the `adloader.loadScript` call without affecting external resources
5552
- When writing tests you may use ES2015 syntax if desired
5653

PR_REVIEW.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ For modules and core platform updates, the initial reviewer should request an ad
1717
- If all above is good, add a `LGTM` comment and request 1 additional core member to review.
1818
- Once there is 2 `LGTM` on the PR, merge to master
1919
- Ask the submitter to add a PR for documentation if applicable.
20-
- Add a line into the `draft release` notes for this submission. If no draft release is available, create one using [this template]( https://gist.github.com/mkendall07/c3af6f4691bed8a46738b3675cb5a479)
20+
- Add a line into the [draft release](https://github.com/prebid/Prebid.js/releases) notes for this submission. If no draft release is available, create one using [this template]( https://gist.github.com/mkendall07/c3af6f4691bed8a46738b3675cb5a479)
2121

2222
### New Adapter or updates to adapter process
2323
- Follow steps above for general review process. In addition, please verify the following:
@@ -33,6 +33,7 @@ For modules and core platform updates, the initial reviewer should request an ad
3333
- All user-sync (aka pixel) activity must be registered via the provided functions
3434
- Adapters may not use the $$PREBID_GLOBAL$$ variable
3535
- All adapters must support the creation of multiple concurrent instances. This means, for example, that adapters cannot rely on mutable global variables.
36+
- Adapters may not globally override or default the standard ad server targeting values: hb_adid, hb_bidder, hb_pb, hb_deal, or hb_size, hb_source, hb_format.
3637

3738
## Ticket Coordinator
3839

README.md

Lines changed: 5 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -26,11 +26,7 @@ Working examples can be found in [the developer docs](http://prebid.org/dev-docs
2626

2727
$ git clone https://github.com/prebid/Prebid.js.git
2828
$ cd Prebid.js
29-
$ yarn install
30-
31-
Prebid supports the `yarn` npm client. This is an alternative to using `npm` for package management, though `npm install` will continue to work as before.
32-
33-
For more info, see [the Yarn documentation](https://yarnpkg.com).
29+
$ npm install
3430

3531
*Note:* You need to have `NodeJS` 4.x or greater installed.
3632

@@ -60,11 +56,8 @@ For example, when running the serve command: `gulp serve --modules=openxBidAdapt
6056
Building with just these adapters will result in a smaller bundle which should allow your pages to load faster.
6157

6258
**Build standalone prebid.js**
63-
Prebid now supports the `yarn` npm client. This is an alternative to using `npm` for package management, though `npm` will continue to work as before.
64-
65-
For more info about yarn see https://yarnpkg.com
6659

67-
- Clone the repo, run `yarn install`
60+
- Clone the repo, run `npm install`
6861
- Then run the build:
6962

7063
$ gulp build --modules=openxBidAdapter,rubiconBidAdapter,sovrnBidAdapter
@@ -82,11 +75,11 @@ With `modules.json` containing the following
8275
]
8376
```
8477

85-
**Build prebid.js using Yarn for bundling**
78+
**Build prebid.js using npm for bundling**
8679

87-
In case you'd like to explicitly show that your project uses `prebid.js` and want a reproducible build, consider adding it as an `yarn` dependency.
80+
In case you'd like to explicitly show that your project uses `prebid.js` and want a reproducible build, consider adding it as an `npm` dependency.
8881

89-
- Add `prebid.js` as a `yarn` dependency of your project: `yarn add prebid.js`
82+
- Add `prebid.js` as a `npm` dependency of your project: `npm install prebid.js`
9083
- Run the `prebid.js` build under the `node_modules/prebid.js/` folder
9184

9285
$ gulp build --modules=path/to/your/list-of-modules.json

RELEASE_SCHEDULE.md

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
# Release Schedule
2+
3+
We push a new release of Prebid.js every other week on Tuesday. During the adoption phase for 1.x, we are releasing updates for 1.x and 0.x at the same time.
4+
5+
While the releases will be available immediately for those using direct Git access,
6+
it will be about a week before the Prebid Org [Download Page](http://prebid.org/download.html) will be updated.
7+
8+
You can determine what is in a given build using the [releases page](https://github.com/prebid/Prebid.js/releases)
9+
10+
Announcements regarding releases will be made to the #headerbidding-dev channel in subredditadops.slack.com.
11+
12+
# FAQs
13+
14+
**1. Is there flexibility in the 2-week schedule?**
15+
16+
If a major bug is found in the current release, a maintenance patch will be done as soon as possible.
17+
18+
It is unlikely that we will put out a maintenance patch at the request of a given bid adapter or module owner.
19+
20+
**2. What Pull Requests make it into a release?**
21+
22+
Every PR that's merged into master will be part of a release. Here are the [PR review guidelines](https://github.com/prebid/Prebid.js/blob/master/PR_REVIEW.md).

browsers.json

Lines changed: 26 additions & 42 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
{
2-
"bs_ie_13_windows_10": {
2+
"bs_ie_14_windows_10": {
33
"base": "BrowserStack",
44
"os_version": "10",
55
"browser": "edge",
6-
"browser_version": "13.0",
6+
"browser_version": "14.0",
77
"device": null,
88
"os": "Windows"
99
},
@@ -15,15 +15,15 @@
1515
"device": null,
1616
"os": "Windows"
1717
},
18-
"bs_firefox_46_windows_10": {
18+
"bs_firefox_56_windows_10": {
1919
"base": "BrowserStack",
2020
"os_version": "10",
2121
"browser": "firefox",
22-
"browser_version": "46.0",
22+
"browser_version": "56.0",
2323
"device": null,
2424
"os": "Windows"
2525
},
26-
"bs_chrome_51_windows_10": {
26+
"bs_chrome_62_windows_10": {
2727
"base": "BrowserStack",
2828
"os_version": "10",
2929
"browser": "chrome",
@@ -39,43 +39,35 @@
3939
"device": null,
4040
"os": "Windows"
4141
},
42-
"bs_firefox_46_windows_8.1": {
42+
"bs_firefox_56_windows_8.1": {
4343
"base": "BrowserStack",
4444
"os_version": "8.1",
4545
"browser": "firefox",
46-
"browser_version": "46.0",
46+
"browser_version": "56.0",
4747
"device": null,
4848
"os": "Windows"
4949
},
50-
"bs_chrome_51_windows_8.1": {
50+
"bs_chrome_62_windows_8.1": {
5151
"base": "BrowserStack",
5252
"os_version": "8.1",
5353
"browser": "chrome",
54-
"browser_version": "51.0",
55-
"device": null,
56-
"os": "Windows"
57-
},
58-
"bs_ie_10_windows_8": {
59-
"base": "BrowserStack",
60-
"os_version": "8",
61-
"browser": "ie",
62-
"browser_version": "10.0",
54+
"browser_version": "62.0",
6355
"device": null,
6456
"os": "Windows"
6557
},
66-
"bs_firefox_46_windows_8": {
58+
"bs_firefox_56_windows_8": {
6759
"base": "BrowserStack",
6860
"os_version": "8",
6961
"browser": "firefox",
70-
"browser_version": "46.0",
62+
"browser_version": "56.0",
7163
"device": null,
7264
"os": "Windows"
7365
},
74-
"bs_chrome_51_windows_8": {
66+
"bs_chrome_62_windows_8": {
7567
"base": "BrowserStack",
7668
"os_version": "8",
7769
"browser": "chrome",
78-
"browser_version": "51.0",
70+
"browser_version": "62.0",
7971
"device": null,
8072
"os": "Windows"
8173
},
@@ -87,27 +79,19 @@
8779
"device": null,
8880
"os": "Windows"
8981
},
90-
"bs_ie_10_windows_7": {
91-
"base": "BrowserStack",
92-
"os_version": "7",
93-
"browser": "ie",
94-
"browser_version": "10.0",
95-
"device": null,
96-
"os": "Windows"
97-
},
98-
"bs_firefox_46_windows_7": {
82+
"bs_firefox_56_windows_7": {
9983
"base": "BrowserStack",
10084
"os_version": "7",
10185
"browser": "firefox",
102-
"browser_version": "46.0",
86+
"browser_version": "56.0",
10387
"device": null,
10488
"os": "Windows"
10589
},
106-
"bs_chrome_51_windows_7": {
90+
"bs_chrome_62_windows_7": {
10791
"base": "BrowserStack",
10892
"os_version": "7",
10993
"browser": "chrome",
110-
"browser_version": "51.0",
94+
"browser_version": "62.0",
11195
"device": null,
11296
"os": "Windows"
11397
},
@@ -127,19 +111,19 @@
127111
"device": null,
128112
"os": "OS X"
129113
},
130-
"bs_firefox_46_mac_elcapitan": {
114+
"bs_firefox_56_mac_elcapitan": {
131115
"base": "BrowserStack",
132116
"os_version": "El Capitan",
133117
"browser": "firefox",
134-
"browser_version": "46.0",
118+
"browser_version": "56.0",
135119
"device": null,
136120
"os": "OS X"
137121
},
138-
"bs_chrome_51_mac_elcapitan": {
122+
"bs_chrome_62_mac_elcapitan": {
139123
"base": "BrowserStack",
140124
"os_version": "El Capitan",
141125
"browser": "chrome",
142-
"browser_version": "51.0",
126+
"browser_version": "62.0",
143127
"device": null,
144128
"os": "OS X"
145129
},
@@ -151,15 +135,15 @@
151135
"device": null,
152136
"os": "OS X"
153137
},
154-
"bs_firefox_46_mac_yosemite": {
138+
"bs_firefox_56_mac_yosemite": {
155139
"base": "BrowserStack",
156140
"os_version": "Yosemite",
157141
"browser": "firefox",
158-
"browser_version": "46.0",
142+
"browser_version": "56.0",
159143
"device": null,
160144
"os": "OS X"
161145
},
162-
"bs_chrome_51_mac_yosemite": {
146+
"bs_chrome_62_mac_yosemite": {
163147
"base": "BrowserStack",
164148
"os_version": "Yosemite",
165149
"browser": "chrome",
@@ -175,11 +159,11 @@
175159
"device": null,
176160
"os": "OS X"
177161
},
178-
"bs_firefox_46_mac_mavericks": {
162+
"bs_firefox_56_mac_mavericks": {
179163
"base": "BrowserStack",
180164
"os_version": "Mavericks",
181165
"browser": "firefox",
182-
"browser_version": "46.0",
166+
"browser_version": "56.0",
183167
"device": null,
184168
"os": "OS X"
185169
},

integrationExamples/gpt/amp/README.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,10 @@
1+
##WARNING
2+
The below documented method of deploying prebid on AMP requires remote.html
3+
This is being deprecated on March 29th. A new method the requires Prebid Server
4+
is being developed, see [Prebid Server](http://github.com/prebid/prebid-server).
5+
6+
## Old method:
7+
18
This README provides steps to run amp example page.
29

310
Add following entries to your hosts file

integrationExamples/gpt/hello_world.html

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,10 @@
11
<!--
2-
32
This page calls a single bidder for a single ad slot. It can be considered a "hello world" example for using
43
Prebid with the Google Publisher Tag.
5-
64
It also makes a good test page for new adapter PR submissions. Simply set your server's Bid Params object in the
75
bids array inside the adUnits, and it will use your adapter to load an ad.
8-
96
NOTE that many ad servers won't send back an ad if the URL is localhost... so you might need to
107
set an alias in your /etc/hosts file so that you can load this page from a different domain.
11-
128
-->
139

1410
<html>

karma.conf.maker.js

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -35,10 +35,11 @@ function newPluginsArray(browserstack) {
3535
'karma-expect',
3636
'karma-mocha',
3737
'karma-requirejs',
38-
'karma-sinon-ie',
38+
'karma-sinon',
3939
'karma-sourcemap-loader',
4040
'karma-spec-reporter',
4141
'karma-webpack',
42+
'karma-mocha-reporter'
4243
];
4344
if (browserstack) {
4445
plugins.push('karma-browserstack-launcher');
@@ -58,6 +59,8 @@ function setReporters(karmaConf, codeCoverage, browserstack) {
5859
if (browserstack) {
5960
karmaConf.reporters = ['spec'];
6061
karmaConf.specReporter = {
62+
maxLogLines: 100,
63+
suppressErrorSummary: false,
6164
suppressSkipped: false,
6265
suppressPassed: true
6366
};
@@ -95,10 +98,8 @@ function setBrowsers(karmaConf, browserstack) {
9598
module.exports = function(codeCoverage, browserstack, watchMode, file) {
9699
var webpackConfig = newWebpackConfig(codeCoverage);
97100
var plugins = newPluginsArray(browserstack);
98-
var files = [
99-
'test/helpers/prebidGlobal.js',
100-
file ? file : 'test/**/*_spec.js'
101-
];
101+
102+
var files = file ? ['test/helpers/prebidGlobal.js', file] : ['test/test_index.js'];
102103
// This file opens the /debug.html tab automatically.
103104
// It has no real value unless you're running --watch, and intend to do some debugging in the browser.
104105
if (watchMode) {
@@ -113,7 +114,6 @@ module.exports = function(codeCoverage, browserstack, watchMode, file) {
113114
webpackMiddleware: {
114115
noInfo: true
115116
},
116-
117117
// frameworks to use
118118
// available frameworks: https://npmjs.org/browse/keyword/karma-adapter
119119
frameworks: ['es5-shim', 'mocha', 'expect', 'sinon'],
@@ -123,8 +123,7 @@ module.exports = function(codeCoverage, browserstack, watchMode, file) {
123123
// preprocess matching files before serving them to the browser
124124
// available preprocessors: https://npmjs.org/browse/keyword/karma-preprocessor
125125
preprocessors: {
126-
'test/**/*_spec.js': ['webpack', 'sourcemap'],
127-
'test/helpers/prebidGlobal.js': ['webpack', 'sourcemap']
126+
'test/test_index.js': ['webpack', 'sourcemap']
128127
},
129128

130129
// web server port

modules/33acrossBidAdapter.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ const { config } = require('../src/config');
44

55
const BIDDER_CODE = '33across';
66
const END_POINT = 'https://ssc.33across.com/api/v1/hb';
7-
const SYNC_ENDPOINT = 'https://de.tynt.com/deb/v2?m=xch';
7+
const SYNC_ENDPOINT = 'https://de.tynt.com/deb/v2?m=xch&rt=html';
88

99
// All this assumes that only one bid is ever returned by ttx
1010
function _createBidResponse(response) {

0 commit comments

Comments
 (0)