Skip to content

Commit

Permalink
Rename javascript package to minecraftverse
Browse files Browse the repository at this point in the history
  • Loading branch information
cliffano committed Jul 7, 2024
1 parent a591c29 commit 1508575
Show file tree
Hide file tree
Showing 50 changed files with 105 additions and 113 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

## Unreleased

### Changed
- Rename javascript package to minecraftverse

## 0.11.0 - 2024-07-07
### Changed
- Rename javascript package to minecraftversions
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ Published packages

| Language | Package | Status | Documentation |
|----------|---------|--------|---------------|
| JavaScript | [minecraftversions]((http://www.npmjs.com/package/minecraftversions)) | [![Published Version](https://img.shields.io/npm/v/minecraftversions.svg)](http://www.npmjs.com/package/minecraftversions) | [README](https://github.com/oapicf/minecraft-versions/blob/main/clients/javascript/generated/README.md) |
| JavaScript | [minecraftverse]((http://www.npmjs.com/package/minecraftverse)) | [![Published Version](https://img.shields.io/npm/v/minecraftverse.svg)](http://www.npmjs.com/package/minecraftverse) | [README](https://github.com/oapicf/minecraft-versions/blob/main/clients/javascript/generated/README.md) |
| Python | [minecraftverse]((https://pypi.python.org/pypi/minecraftverse)) | [![Published Version](https://img.shields.io/pypi/v/minecraftverse.svg)](https://pypi.python.org/pypi/minecraftverse) | [README](https://github.com/oapicf/minecraft-versions/blob/main/clients/python/generated/README.md) |
| Ruby | [minecraft_versions]((https://rubygems.org/gems/minecraft_versions)) | [![Published Version](https://img.shields.io/gem/v/minecraft_versions.svg)](https://rubygems.org/gems/minecraft_versions) | [README](https://github.com/oapicf/minecraft-versions/blob/main/clients/ruby/generated/README.md) |

Expand All @@ -22,7 +22,7 @@ Version matrix

| Minecraft Versions Version | OpenAPI Version | OpenAPI Generator Version |
|----------------------------|-----------------|---------------------------|
| 0.9.0 | 3.0.0 | 7.6.0 |
| 0.12.0 | 3.0.0 | 7.6.0 |

Installation
------------
Expand Down
5 changes: 2 additions & 3 deletions clients/javascript/conf.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
{
"projectName": "minecraftversions",
"packageName": "minecraftversions",
"packageVersion": "0.9.0-pre.0",
"projectName": "minecraftverse",
"packageName": "minecraftverse",
"gitUserId": "oapicf",
"gitRepoId": "minecraft-versions",
"projectVersion": "0.11.1-pre.0"
Expand Down
10 changes: 0 additions & 10 deletions clients/javascript/generated/.openapi-generator/FILES
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
.babelrc
.gitignore
.openapi-generator-ignore
.travis.yml
README.md
docs/DefaultApi.md
Expand All @@ -26,12 +25,3 @@ src/model/VersionPackageInfo.js
src/model/VersionPackageInfoAssetIndex.js
src/model/VersionPackageInfoDownloads.js
src/model/VersionPackageInfoJavaVersion.js
test/api/DefaultApi.spec.js
test/model/Download.spec.js
test/model/Version.spec.js
test/model/VersionManifest.spec.js
test/model/VersionManifestLatest.spec.js
test/model/VersionPackageInfo.spec.js
test/model/VersionPackageInfoAssetIndex.spec.js
test/model/VersionPackageInfoDownloads.spec.js
test/model/VersionPackageInfoJavaVersion.spec.js
36 changes: 18 additions & 18 deletions clients/javascript/generated/README.md
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
# minecraftversions
# minecraftverse

Minecraftversions - JavaScript client for minecraftversions
Minecraftverse - JavaScript client for minecraftverse
SDK for Minecraft versions info
This SDK is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project:

- API version: 0.10.1-pre.0
- Package version: 0.10.1-pre.0
- API version: 0.11.1-pre.0
- Package version: 0.11.1-pre.0
- Generator version: 7.6.0
- Build package: org.openapitools.codegen.languages.JavascriptClientCodegen
For more information, please visit [https://github.com/oapicf/minecraft-versions](https://github.com/oapicf/minecraft-versions)
Expand All @@ -21,7 +21,7 @@ To publish the library as a [npm](https://www.npmjs.com/), please follow the pro
Then install it via:

```shell
npm install minecraftversions --save
npm install minecraftverse --save
```

Finally, you need to build the module:
Expand All @@ -44,7 +44,7 @@ Next, [link](https://docs.npmjs.com/cli/link) it globally in npm with the follow
npm link
```

To use the link you just defined in your project, switch to the directory you want to use your minecraftversions from, and run:
To use the link you just defined in your project, switch to the directory you want to use your minecraftverse from, and run:

```shell
npm link /path/to/<JAVASCRIPT_CLIENT_DIR>
Expand Down Expand Up @@ -100,10 +100,10 @@ module: {
Please follow the [installation](#installation) instruction and execute the following JS code:

```javascript
var Minecraftversions = require('minecraftversions');
var Minecraftverse = require('minecraftverse');


var api = new Minecraftversions.DefaultApi()
var api = new Minecraftverse.DefaultApi()
var callback = function(error, data, response) {
if (error) {
console.error(error);
Expand All @@ -121,20 +121,20 @@ All URIs are relative to *https://launchermeta.mojang.com*

Class | Method | HTTP request | Description
------------ | ------------- | ------------- | -------------
*Minecraftversions.DefaultApi* | [**getMinecraftVersionManifest**](docs/DefaultApi.md#getMinecraftVersionManifest) | **GET** /mc/game/version_manifest.json | Get Minecraft version manifest
*Minecraftversions.DefaultApi* | [**getMinecraftVersionPackageInfo**](docs/DefaultApi.md#getMinecraftVersionPackageInfo) | **GET** /v1/packages/{packageId}/{versionId}.json | Get Minecraft version package info
*Minecraftverse.DefaultApi* | [**getMinecraftVersionManifest**](docs/DefaultApi.md#getMinecraftVersionManifest) | **GET** /mc/game/version_manifest.json | Get Minecraft version manifest
*Minecraftverse.DefaultApi* | [**getMinecraftVersionPackageInfo**](docs/DefaultApi.md#getMinecraftVersionPackageInfo) | **GET** /v1/packages/{packageId}/{versionId}.json | Get Minecraft version package info


## Documentation for Models

- [Minecraftversions.Download](docs/Download.md)
- [Minecraftversions.Version](docs/Version.md)
- [Minecraftversions.VersionManifest](docs/VersionManifest.md)
- [Minecraftversions.VersionManifestLatest](docs/VersionManifestLatest.md)
- [Minecraftversions.VersionPackageInfo](docs/VersionPackageInfo.md)
- [Minecraftversions.VersionPackageInfoAssetIndex](docs/VersionPackageInfoAssetIndex.md)
- [Minecraftversions.VersionPackageInfoDownloads](docs/VersionPackageInfoDownloads.md)
- [Minecraftversions.VersionPackageInfoJavaVersion](docs/VersionPackageInfoJavaVersion.md)
- [Minecraftverse.Download](docs/Download.md)
- [Minecraftverse.Version](docs/Version.md)
- [Minecraftverse.VersionManifest](docs/VersionManifest.md)
- [Minecraftverse.VersionManifestLatest](docs/VersionManifestLatest.md)
- [Minecraftverse.VersionPackageInfo](docs/VersionPackageInfo.md)
- [Minecraftverse.VersionPackageInfoAssetIndex](docs/VersionPackageInfoAssetIndex.md)
- [Minecraftverse.VersionPackageInfoDownloads](docs/VersionPackageInfoDownloads.md)
- [Minecraftverse.VersionPackageInfoJavaVersion](docs/VersionPackageInfoJavaVersion.md)


## Documentation for Authorization
Expand Down
10 changes: 5 additions & 5 deletions clients/javascript/generated/docs/DefaultApi.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Minecraftversions.DefaultApi
# Minecraftverse.DefaultApi

All URIs are relative to *https://launchermeta.mojang.com*

Expand All @@ -18,9 +18,9 @@ Get Minecraft version manifest
### Example

```javascript
import Minecraftversions from 'minecraftversions';
import Minecraftverse from 'minecraftverse';

let apiInstance = new Minecraftversions.DefaultApi();
let apiInstance = new Minecraftverse.DefaultApi();
apiInstance.getMinecraftVersionManifest((error, data, response) => {
if (error) {
console.error(error);
Expand Down Expand Up @@ -57,9 +57,9 @@ Get Minecraft version package info
### Example

```javascript
import Minecraftversions from 'minecraftversions';
import Minecraftverse from 'minecraftverse';

let apiInstance = new Minecraftversions.DefaultApi();
let apiInstance = new Minecraftverse.DefaultApi();
let packageId = "177e49d3233cb6eac42f0495c0a48e719870c2ae"; // String |
let versionId = "1.21"; // String |
apiInstance.getMinecraftVersionPackageInfo(packageId, versionId, (error, data, response) => {
Expand Down
2 changes: 1 addition & 1 deletion clients/javascript/generated/docs/Download.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Minecraftversions.Download
# Minecraftverse.Download

## Properties

Expand Down
2 changes: 1 addition & 1 deletion clients/javascript/generated/docs/Version.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Minecraftversions.Version
# Minecraftverse.Version

## Properties

Expand Down
2 changes: 1 addition & 1 deletion clients/javascript/generated/docs/VersionManifest.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Minecraftversions.VersionManifest
# Minecraftverse.VersionManifest

## Properties

Expand Down
2 changes: 1 addition & 1 deletion clients/javascript/generated/docs/VersionManifestLatest.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Minecraftversions.VersionManifestLatest
# Minecraftverse.VersionManifestLatest

## Properties

Expand Down
2 changes: 1 addition & 1 deletion clients/javascript/generated/docs/VersionPackageInfo.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Minecraftversions.VersionPackageInfo
# Minecraftverse.VersionPackageInfo

## Properties

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Minecraftversions.VersionPackageInfoAssetIndex
# Minecraftverse.VersionPackageInfoAssetIndex

## Properties

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Minecraftversions.VersionPackageInfoDownloads
# Minecraftverse.VersionPackageInfoDownloads

## Properties

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Minecraftversions.VersionPackageInfoJavaVersion
# Minecraftverse.VersionPackageInfoJavaVersion

## Properties

Expand Down
8 changes: 4 additions & 4 deletions clients/javascript/generated/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions clients/javascript/generated/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "minecraftversions",
"version": "0.10.1-pre.0",
"name": "minecraftverse",
"version": "0.11.1-pre.0",
"description": "SDK for Minecraft versions info",
"license": "MIT",
"main": "dist/index.js",
Expand Down
6 changes: 3 additions & 3 deletions clients/javascript/generated/src/ApiClient.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
*
* SDK for Minecraft versions info
*
* The version of the OpenAPI document: 0.10.1-pre.0
* The version of the OpenAPI document: 0.11.1-pre.0
* Contact: blah+oapicf@cliffano.com
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
Expand All @@ -17,7 +17,7 @@ import querystring from "querystring";

/**
* @module ApiClient
* @version 0.10.1-pre.0
* @version 0.11.1-pre.0
*/

/**
Expand Down Expand Up @@ -54,7 +54,7 @@ class ApiClient {
* @default {}
*/
this.defaultHeaders = {
'User-Agent': 'OpenAPI-Generator/0.10.1-pre.0/Javascript'
'User-Agent': 'OpenAPI-Generator/0.11.1-pre.0/Javascript'
};

/**
Expand Down
4 changes: 2 additions & 2 deletions clients/javascript/generated/src/api/DefaultApi.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
*
* SDK for Minecraft versions info
*
* The version of the OpenAPI document: 0.10.1-pre.0
* The version of the OpenAPI document: 0.11.1-pre.0
* Contact: blah+oapicf@cliffano.com
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
Expand All @@ -19,7 +19,7 @@ import VersionPackageInfo from '../model/VersionPackageInfo';
/**
* Default service.
* @module api/DefaultApi
* @version 0.10.1-pre.0
* @version 0.11.1-pre.0
*/
export default class DefaultApi {

Expand Down
14 changes: 7 additions & 7 deletions clients/javascript/generated/src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
*
* SDK for Minecraft versions info
*
* The version of the OpenAPI document: 0.10.1-pre.0
* The version of the OpenAPI document: 0.11.1-pre.0
* Contact: blah+oapicf@cliffano.com
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
Expand Down Expand Up @@ -30,9 +30,9 @@ import DefaultApi from './api/DefaultApi';
* <p>
* An AMD (recommended!) or CommonJS application will generally do something equivalent to the following:
* <pre>
* var Minecraftversions = require('index'); // See note below*.
* var xxxSvc = new Minecraftversions.XxxApi(); // Allocate the API class we're going to use.
* var yyyModel = new Minecraftversions.Yyy(); // Construct a model instance.
* var Minecraftverse = require('index'); // See note below*.
* var xxxSvc = new Minecraftverse.XxxApi(); // Allocate the API class we're going to use.
* var yyyModel = new Minecraftverse.Yyy(); // Construct a model instance.
* yyyModel.someProperty = 'someValue';
* ...
* var zzz = xxxSvc.doSomething(yyyModel); // Invoke the service.
Expand All @@ -44,16 +44,16 @@ import DefaultApi from './api/DefaultApi';
* <p>
* A non-AMD browser application (discouraged) might do something like this:
* <pre>
* var xxxSvc = new Minecraftversions.XxxApi(); // Allocate the API class we're going to use.
* var yyy = new Minecraftversions.Yyy(); // Construct a model instance.
* var xxxSvc = new Minecraftverse.XxxApi(); // Allocate the API class we're going to use.
* var yyy = new Minecraftverse.Yyy(); // Construct a model instance.
* yyyModel.someProperty = 'someValue';
* ...
* var zzz = xxxSvc.doSomething(yyyModel); // Invoke the service.
* ...
* </pre>
* </p>
* @module index
* @version 0.10.1-pre.0
* @version 0.11.1-pre.0
*/
export {
/**
Expand Down
4 changes: 2 additions & 2 deletions clients/javascript/generated/src/model/Download.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
*
* SDK for Minecraft versions info
*
* The version of the OpenAPI document: 0.10.1-pre.0
* The version of the OpenAPI document: 0.11.1-pre.0
* Contact: blah+oapicf@cliffano.com
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
Expand All @@ -16,7 +16,7 @@ import ApiClient from '../ApiClient';
/**
* The Download model module.
* @module model/Download
* @version 0.10.1-pre.0
* @version 0.11.1-pre.0
*/
class Download {
/**
Expand Down
4 changes: 2 additions & 2 deletions clients/javascript/generated/src/model/Version.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
*
* SDK for Minecraft versions info
*
* The version of the OpenAPI document: 0.10.1-pre.0
* The version of the OpenAPI document: 0.11.1-pre.0
* Contact: blah+oapicf@cliffano.com
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
Expand All @@ -16,7 +16,7 @@ import ApiClient from '../ApiClient';
/**
* The Version model module.
* @module model/Version
* @version 0.10.1-pre.0
* @version 0.11.1-pre.0
*/
class Version {
/**
Expand Down
4 changes: 2 additions & 2 deletions clients/javascript/generated/src/model/VersionManifest.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
*
* SDK for Minecraft versions info
*
* The version of the OpenAPI document: 0.10.1-pre.0
* The version of the OpenAPI document: 0.11.1-pre.0
* Contact: blah+oapicf@cliffano.com
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
Expand All @@ -18,7 +18,7 @@ import VersionManifestLatest from './VersionManifestLatest';
/**
* The VersionManifest model module.
* @module model/VersionManifest
* @version 0.10.1-pre.0
* @version 0.11.1-pre.0
*/
class VersionManifest {
/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
*
* SDK for Minecraft versions info
*
* The version of the OpenAPI document: 0.10.1-pre.0
* The version of the OpenAPI document: 0.11.1-pre.0
* Contact: blah+oapicf@cliffano.com
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
Expand All @@ -16,7 +16,7 @@ import ApiClient from '../ApiClient';
/**
* The VersionManifestLatest model module.
* @module model/VersionManifestLatest
* @version 0.10.1-pre.0
* @version 0.11.1-pre.0
*/
class VersionManifestLatest {
/**
Expand Down
Loading

0 comments on commit 1508575

Please sign in to comment.