Skip to content

Commit

Permalink
Bump version, update CHANGES, bundle as 1.2.31
Browse files Browse the repository at this point in the history
  • Loading branch information
fbennett committed Jan 16, 2020
1 parent a00ae1b commit 3389e9b
Show file tree
Hide file tree
Showing 6 changed files with 28 additions and 10 deletions.
10 changes: 10 additions & 0 deletions CHANGES.txt
@@ -1,3 +1,13 @@
=========================
Changes in version 1.2.31
=========================

- Fix error in title-case treatment of text-case="title". At last!

https://github.com/Juris-M/citeproc-js/issues/120

- Tweak behavior of is-numeric

=========================
Changes in version 1.2.30
=========================
Expand Down
10 changes: 7 additions & 3 deletions citeproc.js
Expand Up @@ -59,7 +59,7 @@ Copyright (c) 2009-2019 Frank Bennett

var CSL = {

PROCESSOR_VERSION: "1.2.30",
PROCESSOR_VERSION: "1.2.31",

error: function(str) { // default error function
if ("undefined" === typeof Error) {
Expand Down Expand Up @@ -647,6 +647,7 @@ var CSL = {
"number",
"number-of-pages",
"number-of-volumes",
"version",
"volume",
// "section", ??? add this?
"supplement",
Expand Down Expand Up @@ -15075,7 +15076,10 @@ CSL.Node.text = {

// Deal with multi-fields and ordinary fields separately.
if (CSL.MULTI_FIELDS.indexOf(this.variables_real[0]) > -1
|| ["language-name", "language-name-original"].indexOf(this.variables_real[0]) > -1) {
|| this.variables_real[0].indexOf("-main") > -1
|| this.variables_real[0].indexOf("-sub") > -1
|| ["language-name", "language-name-original"].indexOf(this.variables_real[0]) > -1
) {

// multi-fields
// Initialize transform factory according to whether
Expand Down Expand Up @@ -15348,7 +15352,7 @@ CSL.Attributes["@is-numeric"] = function (state, arg) {
if (state.tmp.shadow_numbers[variable].numeric) {
return true;
}
} else if (["title", "locator-extra","version"].indexOf(variable) > -1) {
} else if (["title","version"].indexOf(variable) > -1) {
if (myitem[variable].slice(-1) === "" + parseInt(myitem[variable].slice(-1), 10)) {
return true;
}
Expand Down
10 changes: 7 additions & 3 deletions citeproc_commonjs.js
Expand Up @@ -59,7 +59,7 @@ Copyright (c) 2009-2019 Frank Bennett

var CSL = {

PROCESSOR_VERSION: "1.2.30",
PROCESSOR_VERSION: "1.2.31",

error: function(str) { // default error function
if ("undefined" === typeof Error) {
Expand Down Expand Up @@ -647,6 +647,7 @@ var CSL = {
"number",
"number-of-pages",
"number-of-volumes",
"version",
"volume",
// "section", ??? add this?
"supplement",
Expand Down Expand Up @@ -15075,7 +15076,10 @@ CSL.Node.text = {

// Deal with multi-fields and ordinary fields separately.
if (CSL.MULTI_FIELDS.indexOf(this.variables_real[0]) > -1
|| ["language-name", "language-name-original"].indexOf(this.variables_real[0]) > -1) {
|| this.variables_real[0].indexOf("-main") > -1
|| this.variables_real[0].indexOf("-sub") > -1
|| ["language-name", "language-name-original"].indexOf(this.variables_real[0]) > -1
) {

// multi-fields
// Initialize transform factory according to whether
Expand Down Expand Up @@ -15348,7 +15352,7 @@ CSL.Attributes["@is-numeric"] = function (state, arg) {
if (state.tmp.shadow_numbers[variable].numeric) {
return true;
}
} else if (["title", "locator-extra","version"].indexOf(variable) > -1) {
} else if (["title","version"].indexOf(variable) > -1) {
if (myitem[variable].slice(-1) === "" + parseInt(myitem[variable].slice(-1), 10)) {
return true;
}
Expand Down
2 changes: 1 addition & 1 deletion fixtures/std
4 changes: 2 additions & 2 deletions package.json
@@ -1,7 +1,7 @@
{
"name": "citeproc",
"version": "2.2.30",
"description": "The citeproc-js citation formatting module, in CommonJS format. This version is based on citeproc-js 1.2.30",
"version": "2.2.31",
"description": "The citeproc-js citation formatting module, in CommonJS format. This version is based on citeproc-js 1.2.31",
"main": "citeproc_commonjs.js",
"repository": {
"type": "git",
Expand Down
2 changes: 1 addition & 1 deletion src/load.js
Expand Up @@ -35,7 +35,7 @@

var CSL = {

PROCESSOR_VERSION: "1.2.30",
PROCESSOR_VERSION: "1.2.31",

error: function(str) { // default error function
if ("undefined" === typeof Error) {
Expand Down

0 comments on commit 3389e9b

Please sign in to comment.