Commit Graph

3429 Commits

Author SHA1 Message Date
Julian Gonggrijp
a2002e8564 Run latest Edge and Safari CI tests on latest OS versions (#4251) 2022-02-18 17:16:00 +01:00
Julian Gonggrijp
aef9972d26 Omit Firefox 11 from CI tests for now (#4251 #4252) 2022-02-18 17:16:00 +01:00
Julian Gonggrijp
0e4ee91a60 Run npm audit fix (#4246) 2022-02-18 17:16:00 +01:00
Julian Gonggrijp
19ce298f78 Address linter errors and warnings (#4251 #4246) 2022-02-18 17:15:59 +01:00
Julian Gonggrijp
dddfba2c80 Upgrade the devDependencies (#4251 fix #4246) 2022-02-18 17:15:47 +01:00
Julian Gonggrijp
2694bfa4c7 Increase Karma Sauce browserDisconnectTimeout (#4251) 2022-02-18 17:15:46 +01:00
Julian Gonggrijp
725a957f48 Restore env var indirection in Karma Sauce config (#4251)
As suggested by @ogonkov in review to #4252.

This partly reverts commit 453bdf5ce0.
2022-01-22 11:20:56 +01:00
Julian Gonggrijp
91b190bcdb Run SauceLabs Firefox 11 tests specifically on Windows 10 (#4251)
I tried a couple of different OS version, and this one was the first
where Firefox 11 seems to connect correctly at least some of the time.

(To clarify: the tests were passing in Firefox 11 on all OS versions I
tried, but in most cases a connection error prevented Karma from
knowing this. I only know because I saw the reports in the Sauce web
interface.)
2022-01-22 03:53:15 +01:00
Julian Gonggrijp
e71ee8f1ec Set the Karma Sauce region to 'eu' (#4251)
I chose this datacenter when creating my account. Maybe it matters.
2022-01-22 03:09:31 +01:00
Julian Gonggrijp
c86aab2ed0 Limit Karma Sauce concurrency (#4251)
My account currently allows only two concurrent runs, so let's rule
out that this is biting us.
2022-01-22 03:07:52 +01:00
Julian Gonggrijp
6f1eb88761 Copy two Karma config fields from Underscore (#4251) 2022-01-22 03:06:34 +01:00
Julian Gonggrijp
b7157387bc Update Sauce browser selection in karma config (#4251)
I mostly copied this from the current config in Underscore.
2022-01-22 02:16:38 +01:00
Julian Gonggrijp
f80570a7a9 Run the test workflow in a newer Node version (#4251)
In Node 6, running Karma gave the following warning:

Error during loading "/home/runner/work/backbone/backbone/node_modules/karma-sauce-launcher" plugin:
  Unexpected token function

I had no such error running karma after installing karma-sauce-launcher
locally in Node 14, so this upgrade might fix some things.

We are not exactly in the business of supporting old Node versions, so
this should be relatively painless.
2022-01-22 02:11:33 +01:00
Julian Gonggrijp
a10ce93c21 Put back the test workflow cache key (#4251)
This reverts commit 02c3b73aa8.
2022-01-22 01:55:24 +01:00
Julian Gonggrijp
4e66def27d Add a package-lock.json (#4251 #4246) 2022-01-22 01:52:36 +01:00
Julian Gonggrijp
453bdf5ce0 Use GH default env vars directly in karma.conf-sauce (#4251)
If I understand the documentation correctly, it is not strictly
necessary that these variables be read from the workflow file; they
may also be read directly by the target processes.
2022-01-22 01:12:36 +01:00
Julian Gonggrijp
a2cefce2a5 Include test directory as a condition for running the test workflow
Cf #4251
2022-01-22 01:08:04 +01:00
Alexey
010e928383 Split command 2022-01-21 23:27:28 +03:00
Alexey
0ab0d02b65 Add job names 2022-01-21 23:26:59 +03:00
Alexey
8e975030e5 Remove xvfb setup 2022-01-21 23:21:26 +03:00
Alexey
02c3b73aa8 Remove cache key for now 2022-01-21 23:20:57 +03:00
Alexey
a2f7cbafd3 Fix env vars 2022-01-21 23:20:25 +03:00
Alexey
52f23814f7 Add workflows to paths 2022-01-21 21:30:44 +03:00
Alexey
17018ebdc7 Replace branches list 2022-01-21 21:28:24 +03:00
Julian Gonggrijp
589f1b97b3 Credit Sauce Labs in the README (#4247) 2022-01-21 14:06:23 +01:00
Julian Gonggrijp
b7bd1706e6 Merge pull request #4248 from ogonkov/gh_workflows
Replace Travis with GitHub Workflows
2022-01-21 14:00:21 +01:00
Alexey
5d95c0afdf Cache deps 2022-01-18 17:38:22 +03:00
Alexey
27c9159b88 Use --no-audit for install 2022-01-18 17:36:49 +03:00
Alexey
8a9fe59c3e Add --no-audit flag 2022-01-18 12:53:56 +03:00
Alexey
e7ba250be6 Fix module installation 2022-01-18 12:52:27 +03:00
Alexey
0738170a23 Add job name 2022-01-18 12:35:38 +03:00
Alexey
9e2df5cd4a Remove .travis.yml 2022-01-18 12:35:38 +03:00
Alexey
84306a51e3 Remove unused selector 2022-01-18 12:35:38 +03:00
Alexey
0a66d8ce90 Lint karma.conf-sauce.js 2022-01-18 12:35:38 +03:00
Alexey
723dd48942 Add GitHub Workflows 2022-01-18 12:35:38 +03:00
Julian Gonggrijp
5147eca76f Merge pull request #4249 from jashkenas/byid-when-if-change
Add model changeId event
2022-01-12 15:46:31 +01:00
Paul Falgout
7712b8ec6c Add model changeId event
Fixes #3882
Fixes #4159

Backbone does a bit of extra work to determine when to update `_byId` on every model change event because `change:id` will not work if `idAttribute` has changed.  This causes issues as the `change` event happens after every `change:` event which means during a change the `_byId` hasn't updated.  Rather than adding complexity to collection the solution is to have the model notify with the id changes.

If adding a public event isn't desired, for an internal solution the model is aware of it's collection and could modify model.collection._byId directly within the set.

Either of these solutions seem preferrable to handling `change:[idAttribute]`

Replaces the need for:
https://github.com/jashkenas/backbone/pull/4227/files#diff-c773bb9be277f0f3f2baa308b6e0f3a486790fe99fea81ddd0ba409846250571R1205
2022-01-12 23:26:10 +09:00
Julian Gonggrijp
a9894e03c4 Merge pull request #4234 from ogonkov/fix_model_instantiation
Add check for `this.model.prototype`
2022-01-09 22:34:24 +01:00
Alexey
2ea3a221ad Remove try..catch 2022-01-09 20:17:55 +03:00
Alexey
e54031f227 Return function 2022-01-09 20:14:20 +03:00
Alexey
4515b8c20a Fix synatx error 2022-01-09 20:13:45 +03:00
Alexey
f6f5deeae9 Add test 2022-01-08 12:42:00 +03:00
Jeremy Ashkenas
153dc41616 Merge pull request #4238 from binlabs/patch-1
Added missing parenthesis in the Collection preinitialize code example
2020-05-04 10:58:14 -07:00
Kurt Maine
22f157afc3 Added missing parenthesis in the Collection preinitialize code example
The event listener was missing a closing parenthesis in the preinitialize code sample for Collections.
2020-04-01 21:48:34 -05:00
Alexey
1fce745d77 Add check for this.model.prototype 2020-03-03 20:50:16 +03:00
jashkenas
0b1c2e3fce Resolve merge conflicts 2019-12-13 11:41:21 -08:00
jashkenas
75e6d0ce63 Missing a few version 1.4.0s 2019-02-19 10:35:53 -08:00
jashkenas
afbb6ee089 Merged in 1.4.0 2019-02-19 10:34:22 -08:00
jashkenas
5de45fc9e1 Backbone 1.4.0 1.4.0 2019-02-19 10:29:40 -08:00
jashkenas
c336c8a056 Allow ESLint to do its thing. 2019-02-19 09:47:24 -08:00