Skip to content

Commit 5a2f67b

Browse files
authored
Merge pull request #93 from stormpath/release-1.2.2
Release v1.2.2
2 parents a446190 + 209fb93 commit 5a2f67b

File tree

6 files changed

+26
-16
lines changed

6 files changed

+26
-16
lines changed

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
## 1.2.2 (June 30, 2016)
2+
3+
Fixes:
4+
5+
- Fix so that login retrieves session data from the `/me` endpoint instead of the `/login` endpoint result.
6+
17
## 1.2.1 (May 5, 2016)
28

39
Fixes:

UPGRADE.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
## 1.2.1 to 1.2.2 (June 30, 2016)
2+
3+
Nothing to do.
4+
15
## 1.2.0 to 1.2.1 (May 5, 2016)
26

37
Nothing to do.

bower.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "react-stormpath",
3-
"version": "1.2.1",
3+
"version": "1.2.2",
44
"main": [
55
"dist/stormpath-sdk-react.min.js"
66
],

dist/stormpath-sdk-react.js

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1153,8 +1153,8 @@ return /******/ (function(modules) { // webpackBootstrap
11531153
value: function enforceRootElement(object) {
11541154
if (typeof object === 'string' || this.isArray(object)) {
11551155
object = _react2.default.createElement(
1156-
'span',
1157-
null,
1156+
'div',
1157+
{ style: { display: 'inline-block' } },
11581158
object
11591159
);
11601160
}
@@ -2695,7 +2695,7 @@ return /******/ (function(modules) { // webpackBootstrap
26952695
// Only set the X-Stormpath-Agent header if we're on the same domain as the requested URI.
26962696
// This because we want to avoid CORS requests that require you to have to whitelist the X-Stormpath-Agent header.
26972697
if (_utils2.default.isRelativeUri(uri) || _utils2.default.isSameHost(uri, window.location.href)) {
2698-
headers['X-Stormpath-Agent'] = ("react-stormpath") + '/' + ("1.2.1") + ' react/' + _react2.default.version;
2698+
headers['X-Stormpath-Agent'] = ("react-stormpath") + '/' + ("1.2.2") + ' react/' + _react2.default.version;
26992699
}
27002700

27012701
makeHttpRequest(method, uri, body, headers, function (err, result) {
@@ -2984,17 +2984,12 @@ return /******/ (function(modules) { // webpackBootstrap
29842984

29852985
this.reset();
29862986

2987-
this.service.login(options, function (err, result) {
2987+
this.service.login(options, function (err) {
29882988
if (err) {
29892989
return callback(err);
29902990
}
29912991

2992-
_this3.sessionError = null;
2993-
_this3.sessionStore.set(result);
2994-
_UserActions2.default.set(result);
2995-
_this3.emitChange();
2996-
2997-
callback(null, result);
2992+
_this3.resolveSession(callback, true);
29982993
});
29992994
}
30002995
}, {
@@ -10366,6 +10361,7 @@ return /******/ (function(modules) { // webpackBootstrap
1036610361
var _this4 = this;
1036710362

1036810363
e.preventDefault();
10364+
e.persist();
1036910365

1037010366
var next = function next(err, data) {
1037110367
if (err) {
@@ -11040,6 +11036,7 @@ return /******/ (function(modules) { // webpackBootstrap
1104011036
var _this3 = this;
1104111037

1104211038
e.preventDefault();
11039+
e.persist();
1104311040

1104411041
var next = function next(err, data) {
1104511042
if (err) {
@@ -11466,6 +11463,7 @@ return /******/ (function(modules) { // webpackBootstrap
1146611463
var _this4 = this;
1146711464

1146811465
e.preventDefault();
11466+
e.persist();
1146911467

1147011468
var next = function next(err, data) {
1147111469
if (err) {
@@ -11777,6 +11775,7 @@ return /******/ (function(modules) { // webpackBootstrap
1177711775
var _this3 = this;
1177811776

1177911777
e.preventDefault();
11778+
e.persist();
1178011779

1178111780
var next = function next(err, data) {
1178211781
if (err) {
@@ -12073,6 +12072,7 @@ return /******/ (function(modules) { // webpackBootstrap
1207312072
var _this3 = this;
1207412073

1207512074
e.preventDefault();
12075+
e.persist();
1207612076

1207712077
var next = function next(err, data) {
1207812078
if (err) {

dist/stormpath-sdk-react.min.js

Lines changed: 4 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "react-stormpath",
3-
"version": "1.2.1",
3+
"version": "1.2.2",
44
"description": "Stormpath SDK for React.",
55
"author": "Stormpath, Inc.",
66
"license": "Apache-2.0",

0 commit comments

Comments
 (0)