Commit Graph
57 Commits
Author SHA1 Message Date
AbijeetandNiklas Laxström dc85045298 Update Changelog file and version in package.json
Bug: https://phabricator.wikimedia.org/T333823
2023-04-18 20:34:19 +03:00
AbijeetandNiklas Laxström 75bd6a4d59 Node: Update dependencies
npm outdated

Package  Current  Wanted  Latest  Location             Depended by
eslint    8.32.0  8.32.0  8.38.0  node_modules/eslint  language-data

npm update output:

added 1 package, removed 3 packages, changed 23 packages, and audited
262 packages in 2s

Bug: https://phabricator.wikimedia.org/T333823
2023-04-18 14:46:47 +03:00
AbijeetandNiklas Laxström 6fd751bac1 PHP: Update dependencies
Output of composer outdated:

Direct dependencies required in composer.json:
mediawiki/mediawiki-codesniffer v39.0.0 v41.0.0
phpunit/phpunit                 9.5.25  9.6.7

Transitive dependencies not required in compose
myclabs/deep-copy               1.11.0  1.11.1
nikic/php-parser                v4.15.3 v4.15.4
phpunit/php-code-coverage       9.2.23  9.2.26
sebastian/environment           5.1.4   5.1.5
sebastian/recursion-context     4.0.4   4.0.5
sebastian/type                  3.2.0   3.2.1
squizlabs/php_codesniffer       3.6.2   3.7.2

Manually updated phpunit and mediawiki-codesniffer.
Update phpunit.xml file as per latest format.

Bug: https://phabricator.wikimedia.org/T333823
2023-04-18 14:33:46 +03:00
Abijeet 37e096a7ad Add MLEB release notes 2023.01
Bug: https://phabricator.wikimedia.org/T326539
2023-01-25 12:50:59 +05:30
Abijeet 3d68489a08 Update npm dependencies
npm outdated showed the following:

* eslint - 8.26.0 --> 8.32.0
* eslint-config-wikimedia - 0.23.0 --> 0.24.0
* mocha - 10.1.0 --> 10.2.0
2023-01-22 07:14:39 +05:30
Abijeet 1def6a83a9 Bump minimum supported Node.js version to 14.0.0
Latest version of ESLint no longer supports v12.0.0 that went EOL
in April, 2022

Add Node.js 18.0.0 to CI
2023-01-22 07:14:39 +05:30
AbijeetandNiklas Laxström aa4cef355c Drop support for PHP 7.2, and update dependencies
In CI add tests for PHP 8.2
2023-01-21 11:15:53 +02:00
Abijeet PatroandGitHub b2e4a3a4d6 Release notes for 1.1.1 (2022-10-27) (#257) 2022-10-27 21:29:21 +05:30
Abijeet PatroandGitHub 83516007c7 Update PHP dependencies (#256)
Ran composer show --outdated and then composer update after updating
composer.json
2022-10-27 21:28:06 +05:30
Abijeet PatroandGitHub d53c2429b5 Update NPM dependencies (#255)
Updated as per output of npm outdated. Also ran npm update
2022-10-27 21:27:02 +05:30
AbijeetandKartik Mistry a029addbc1 Release notes for 1.1.0 (2022-07-07) 2022-07-08 21:02:54 +05:30
AbijeetandKartik Mistry 17cb847b93 Update PHP dependencies
Ran composer show --outdated and then composer update after updating
package.json

Fix CI failures:

* assertEmpty performs loose comparisons and should not be used.
2022-07-08 16:54:40 +05:30
AbijeetandKartik Mistry d078c170d8 Update NPM dependencies
Updated as per the output for npm outdated
2022-07-08 16:47:49 +05:30
Abijeet PatroandGitHub b1fd23de1e Release notes for 1.0.9 (2022-04-20) (#221) 2022-04-21 11:27:49 +05:30
348a1534bd Update PHP dependencies (#219)
Ran composer show --outdated and then composer update

composer/semver             3.2.7   3.3.2
doctrine/instantiator       1.4.0   1.4.1
myclabs/deep-copy           1.10.2  1.11.0
phar-io/version             3.1.0   3.2.1
phpdocumentor/type-resolver 1.6.0   1.6.1
phpunit/php-code-coverage   9.2.10  9.2.15
phpunit/phpunit             9.5.11  9.5.20
sebastian/environment       5.1.3   5.1.4
sebastian/global-state      5.0.3   5.0.5
sebastian/type              2.3.4   3.0.0
squizlabs/php_codesniffer   3.6.1   3.6.2
symfony/polyfill-ctype      v1.24.0 v1.25.0

Co-authored-by: Niklas Laxström <niklas.laxstrom@gmail.com>
2022-04-21 11:16:23 +05:30
Abijeet PatroandGitHub e63398559f Add release notes for 2022.01 (#198)
Update Node.js package version to 1.0.8 to be same as PHP library

Bug: T298891
2022-01-20 01:05:30 +05:30
Abijeet PatroandGitHub 5c40f1f70b Update GitHub action to test for PHP 8.0, PHP 8.1 (#199) 2022-01-19 11:25:04 +05:30
Abijeet PatroandGitHub b25ce367fb Update npm modules and drop support for Node.js 10 (#196)
Following packages have been updated:

* eslint
* eslint-config-wikimedia
* mocha
2022-01-18 19:56:41 +05:30
AbijeetandNiklas Laxström daa44ed137 Update composer dependencies
Update the following dependencies:

* php-unit
* mediawiki-codesniffer

Use specific dependencies.

Fix issues highlighted by new rules in mediawiki-codesniffer
2022-01-18 13:12:47 +02:00
Abijeet PatroandGitHub f86cab48f3 Add MLEB release notes 2021.10 (#182)
Changes from: https://github.com/wikimedia/language-data/compare/1.0.6...master
2021-10-25 15:48:39 +05:30
AbijeetandNiklas Laxström 9c77925a8c Update dependencies listed in composer 2021-10-25 10:26:08 +03:00
AbijeetandNiklas Laxström ba2be5c72b Security fix: Update ansi-regex for CVE-2021-3807 2021-10-25 08:29:30 +03:00
Abijeet PatroandGitHub c338401525 Add release notes 2021.07 (#167)
Bug: T286476
2021-07-19 20:33:31 +05:30
Abijeet PatroandGitHub ddc6ae2662 Update PHP dependencies (#168)
Lock file operations: 0 installs, 10 updates, 0 removals
  - Upgrading composer/semver (3.2.4 => 3.2.5)
  - Upgrading nikic/php-parser (v4.10.4 => v4.11.0)
  - Upgrading phar-io/version (3.0.4 => 3.1.0)
  - Upgrading phpspec/prophecy (1.12.2 => 1.13.0)
  - Upgrading phpunit/php-code-coverage (9.2.5 => 9.2.6)
  - Upgrading phpspec/prophecy (1.12.2 => 1.13.0)
  - Upgrading phpunit/php-code-coverage (9.2.5 => 9.2.6)
  - Upgrading phpunit/phpunit (9.5.1 => 9.5.6)
  - Upgrading sebastian/global-state (5.0.2 => 5.0.3)
  - Upgrading sebastian/type (2.3.1 => 2.3.4)
  - Upgrading symfony/polyfill-ctype (v1.22.0 => v1.23.0)
  - Upgrading webmozart/assert (1.9.1 => 1.10.0)
2021-07-19 20:23:29 +05:30
AbijeetandNiklas Laxström 4410ba4c10 Security fix: Update glob-parent to 5.1.2 2021-07-08 09:25:10 +03:00
AbijeetandNiklas Laxström ecaf2bac50 Update changelog for 2021.04 release
Reusing the release made on 2021.04.01 for Node.js library security
fix.
2021-04-21 16:43:46 +03:00
AbijeetandAmir E. Aharoni f692c69a9f Update Node.js versions to 1.0.2 2021-04-01 11:28:45 +03:00
AbijeetandAmir E. Aharoni 48afd1c4ac Fix y18n (required by mocha) related security warning
Fixes CVE-2020-7774

Not a major issue for us since it's only a dev dependency.
2021-04-01 11:04:08 +03:00
AbijeetandNiklas Laxström 3a0ca41914 Update node package.json version 2021-01-28 10:40:22 +02:00
Abijeet PatroandNiklas Laxström 52038262e7 Add MLEB notes 2021.01 2021-01-28 10:40:22 +02:00
AbijeetandNiklas Laxström a9e9bd5640 Fix review comments 2020-10-27 15:17:12 +02:00
AbijeetandNiklas Laxström da6be2240d Update Changelog for 2020.10 release
Bug: T266462
2020-10-27 15:17:12 +02:00
Abijeet PatroandGitHub 6c6d02b153 Bump Node.js package version to 1.0.0 (#123)
Update the major version as we are dropping support for Node 8.x

Bug: T266462
2020-10-27 17:16:31 +05:30
Abijeet PatroandGitHub 61d3d26e4c Bump eslint-config-wikimedia to 0.17.0 (#120)
Had to update eslint to ^7.9.0 since we are using new rules:
* no-loss-of-precision
* no-unreachable-loop

Bug: T266462
2020-10-27 17:09:39 +05:30
Abijeet PatroandGitHub 3ef31ed26a Bump minimum Node.js version to 10.x (#122)
In a subsequent patch #120, we bump eslint-config-wikimedia to
0.17.0, which also requires bumping eslint to 7.9.0 which drops
support for Node.js 8.x

Bug: T266462
2020-10-27 17:03:00 +05:30
AbijeetandNiklas Laxström 90acf1ca7e Update mediawiki-codesniffer to 31.0.0
Bug: T266462
2020-10-26 17:15:38 +02:00
Abijeet PatroandGitHub 6e978475da Add entrypoint in package.json
Fixes: #115
2020-07-28 10:08:08 +05:30
AbijeetandNiklas Laxström 762dd9c5f0 Add Changelog for 2020-07 release
Also update npm package version to 0.2.1

Few tweaks to the CHANGELOG introduction section
2020-07-23 17:40:55 +03:00
da729f4635 Update lodash to 4.17.19 (#111)
See: https://github.com/advisories/GHSA-p6mc-m468-83gw

Co-authored-by: James D. Forrester <jforrester@wikimedia.org>
2020-07-23 13:39:32 +02:00
Abijeet PatroandGitHub 6358181403 Fix link in README to PHP API documentation (#112) 2020-07-23 13:37:57 +02:00
Abijeet PatroandNiklas Laxström 0cb3a0f06d Update release date and language changes 2020-05-26 11:05:07 +03:00
Abijeet PatroandGitHub 62f05a46f2 Remove indications / comments that we use CLDR data only (#103) 2020-05-26 10:49:56 +03:00
Abijeet PatroandGitHub 0fd46fb9a0 Add .gitattributes file (#101)
As recommended here: https://www.mediawiki.org/wiki/Manual:Developing_libraries#Packagist_guidelines
2020-05-25 09:25:51 +03:00
AbijeetandNiklas Laxström a19900efef Unify package.json and composer.json, update version before release 2020-05-20 16:54:32 +03:00
7ab5e81cbd Add changelog and release schedule (#99)
Divide the changelog into - Language updates, PHP and Node.js section

PHP and Node.js changelog will list library related changes and will
reuse Language updates section.

Bug: T218639
Co-authored-by: Niklas Laxström <niklas.laxstrom@gmail.com>
2020-05-19 13:13:01 +03:00
AbijeetandAmir E. Aharoni 936c0e8ee2 Add Abijeet as a contributor in package.json and composer.json 2020-05-19 11:08:50 +03:00
Abijeet PatroandNiklas Laxström 6348e1589b Add phpunit configuration file
Use the configuration file to pass the location of the tests and
autoload class files.

Pass -sp to phpcs command
2020-05-18 15:45:15 +03:00
AbijeetandNiklas Laxström f216187aba Rename class from LanguageData to LanguageUtil to have better namespacing
Update the documentation also
2020-05-18 15:45:15 +03:00
AbijeetandNiklas Laxström badc475816 Change the build URLs to point to the Wikimedia repository 2020-05-18 12:54:59 +03:00
AbijeetandNiklas Laxström f342099b3c Rename class from LanguageData to LanguageUtil to have better namespacing
Update the documentation also
2020-05-15 10:26:11 +03:00
AbijeetandNiklas Laxström e9a6c467f3 Move spyc to composer.json 2020-05-12 16:03:31 +03:00
AbijeetandNiklas Laxström 8b0ca32167 Move documentation to Read the Docs
Read the docs is used to host the documentation.
https://language-data.readthedocs.io/en/latest/

The following documentation has been moved,

* Introduction
* Using the PHP / Node.js libraries
* Adding new languages
* PHP API documentation

Updated the README.md to point to the new documentation.

Doxygen is used to pull out the PHPDoc comments into XML.
This is parsed via doxyphp2sphinx into Sphinx which is
then used by Read the docs to generate the documentation.

Read the docs has been configured to update the code documentation
under the docs/api folder automatically whenever a commit is made
so no manual work is needed.

Bug: T218639
2020-05-12 16:00:25 +03:00
Abijeet PatroandGitHub 1849fa134f Fix incorrect data directory usage in ulsdata2json.php (#89)
This was happening because the location of the data directory has
been updated, but this script - `ulsdata2json.php` was not properly
updated.

Bug: T249210
Fixes: #88
2020-04-03 15:06:17 +05:30
AbijeetandNiklas Laxström a182ddb215 Add users with more than 5 commits to credits / authors
Also update authors to be alphabetically ordered.
2020-02-24 16:35:43 +02:00
Abijeet PatroandGitHub c57a3a28ad Update minimum supported node.js version to 8.x (#83)
Fixes failing test case on node.js version 6
2020-02-03 14:23:37 -08:00
Abijeet 7c970cb247 Replace Travis with Github actions
Two workflows have been added,

  * PHP build - Runs tests on version 7.2, 7.3, also runs phpcs
  * Node.js build - Runs tests on version 8.x, 10.x, 12.x, also
    runs ESLint

Bug: T218639
2020-01-31 23:06:26 +05:30
Abijeet 09ab6024fe Add a PHP interface to work with the language data
Additional changes in this PR include,

  * Added composer.json
  * Refactored the folder structure.
  * Added editorconfig.
  * Added PHPCS and formatted existing code.
  * Changes to use a single license - GPL-2.0-or-later
  * ESLint related fixes

Bug: T218639
2020-01-31 23:00:46 +05:30