Skip to content

Commit

Permalink
fix: Add import/export of VIRO_VERSION (#268)
Browse files Browse the repository at this point in the history
* fix: Add import/export of VIRO_VERSION
* feat: Add release-it and auto-changelog
* fix: changelog-template improperly formatted
* fix: formatting of changelog template
  • Loading branch information
robertjcolley authored Feb 19, 2024
1 parent 52a330e commit 736a670
Show file tree
Hide file tree
Showing 8 changed files with 4,142 additions and 134 deletions.
15 changes: 15 additions & 0 deletions .release-it.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
{
"git": {
"commitMessage": "chore: release v${version}",
"changelog": "npx auto-changelog --stdout --commit-limit false -u --template changelog-template.hbs"
},
"hooks": {
"after:bump": "./prepare_release.sh && npx auto-changelog -p --template changelog-template.hbs"
},
"github": {
"release": false
},
"npm": {
"publish": false
}
}
87 changes: 87 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,87 @@
# CHANGELOG

## v2.40.1 - 19 February 2024

- feat: Add release-it and auto-changelog [`1d96937`](https://github.com/NativeVision/viro/commit/1d96937ae62df3dd29e8c86c7482d35b01fd6e48)
- fix: Add import/export of VIRO_VERSION [`67473ff`](https://github.com/NativeVision/viro/commit/67473ff1066c5dcee06f3f30f9f894fa990fb591)
- fix: changelog-template improperly formatted [`1114609`](https://github.com/NativeVision/viro/commit/1114609b5724d5eb5ecd4e97334934d71d6c8949)
## v2.24.0 - 16 February 2024

- Add Telemetry [`#264`](https://github.com/NativeVision/viro/pull/264)
- fix: fix isARSupportedOnDevice [`#262`](https://github.com/NativeVision/viro/pull/262)
## v2.23.3 - 10 February 2024

- fix: fix isARSupportedOnDevice [`220847d`](https://github.com/NativeVision/viro/commit/220847dcfd15296c4860419f8b388c27e686eb1e)
- chore: version bump 2.23.3 [`31adf38`](https://github.com/NativeVision/viro/commit/31adf38b728de36126c3d9b0a246407fe8753ca6)
## v2.23.2 - 9 February 2024

- Fix screenshot taking and screen recording in AR [`#256`](https://github.com/NativeVision/viro/pull/256)
- docs: update readme installation instructions [`#259`](https://github.com/NativeVision/viro/pull/259)
- feat: added code of conduct [`#255`](https://github.com/NativeVision/viro/pull/255)
- Update ISSUE_TEMPLATE.md [`219fff7`](https://github.com/NativeVision/viro/commit/219fff72d57280d4dc81b40854872d3a33eb8d20)
## v2.23.2-beta - 2 February 2024

- Fix screenshot taking [`844be5a`](https://github.com/NativeVision/viro/commit/844be5a6058494fdecbd4c91a60c847581b49465)
## v2.23.1 - 25 January 2024

## v2.23.1-rc4 - 25 January 2024

- Support kotlin and Expo SDK 50 for Android [`#249`](https://github.com/NativeVision/viro/pull/249)
## v2.23.1-rc1 - 25 January 2024

- Fix Expo plugin issues, dependency issues, and stabilize [`#247`](https://github.com/NativeVision/viro/pull/247)
- v2.23.1-alpha [`#243`](https://github.com/NativeVision/viro/pull/243)
- Update README.md [`#206`](https://github.com/NativeVision/viro/pull/206)
- Bump react-devtools-core from 4.27.7 to 4.28.5 [`#235`](https://github.com/NativeVision/viro/pull/235)
- Bump xml2js and @expo/config-plugins [`#236`](https://github.com/NativeVision/viro/pull/236)
- Bump semver from 5.7.1 to 5.7.2 [`#234`](https://github.com/NativeVision/viro/pull/234)
- Bump @babel/traverse from 7.17.0 to 7.23.2 [`#231`](https://github.com/NativeVision/viro/pull/231)
- Bump hermes-engine and react-native [`#209`](https://github.com/NativeVision/viro/pull/209)
- Fix for 'Tried to register two views with the same name VRTQuad' in ViroSurface [`#180`](https://github.com/NativeVision/viro/pull/180)
- Bump shell-quote and @react-native-community/cli-tools [`#208`](https://github.com/NativeVision/viro/pull/208)
- Bump @sideway/formula from 3.0.0 to 3.0.1 [`#195`](https://github.com/NativeVision/viro/pull/195)
- Bump decode-uri-component from 0.2.0 to 0.2.2 [`#182`](https://github.com/NativeVision/viro/pull/182)
- Bump @xmldom/xmldom from 0.7.5 to 0.7.8 [`#176`](https://github.com/NativeVision/viro/pull/176)
- Bump minimatch from 3.0.4 to 3.1.2 [`#178`](https://github.com/NativeVision/viro/pull/178)
- Bump json5 from 1.0.1 to 1.0.2 [`#191`](https://github.com/NativeVision/viro/pull/191)
- ViroSurface Fix [`#199`](https://github.com/NativeVision/viro/pull/199)
- Bump simple-plist from 1.3.0 to 1.3.1 [`#139`](https://github.com/NativeVision/viro/pull/139)
- Bump async from 2.6.3 to 2.6.4 [`#131`](https://github.com/NativeVision/viro/pull/131)
- Bump plist from 3.0.4 to 3.0.5 [`#115`](https://github.com/NativeVision/viro/pull/115)
- Bump minimist from 1.2.5 to 1.2.6 [`#114`](https://github.com/NativeVision/viro/pull/114)
- Bump ansi-regex from 4.1.0 to 4.1.1 [`#113`](https://github.com/NativeVision/viro/pull/113)
- Update INSTALL_ANDROID.md [`#98`](https://github.com/NativeVision/viro/pull/98)
- Update README.md [`#126`](https://github.com/NativeVision/viro/pull/126)
- Remove unnecessary logging from Viro3DObject [`#132`](https://github.com/NativeVision/viro/pull/132)
- Add VR AndroidManifest injection [`#104`](https://github.com/NativeVision/viro/pull/104)
- Add supporter image for Morrow [`#111`](https://github.com/NativeVision/viro/pull/111)
- Add out-of-the-box expo plugin support [`#88`](https://github.com/NativeVision/viro/pull/88)
- Update INSTALL_IOS.md [`#96`](https://github.com/NativeVision/viro/pull/96)
- Rewrite repo in typescript [`#72`](https://github.com/NativeVision/viro/pull/72)
- Update INSTALL.md [`#80`](https://github.com/NativeVision/viro/pull/80)
- Update README.md [`#85`](https://github.com/NativeVision/viro/pull/85)
- Enable bitcode + chroma threshold [`#78`](https://github.com/NativeVision/viro/pull/78)
- v2.22.0 [`#69`](https://github.com/NativeVision/viro/pull/69)
- Update INSTALL_IOS.md [`#68`](https://github.com/NativeVision/viro/pull/68)
- Update LICENSE [`#67`](https://github.com/NativeVision/viro/pull/67)
- Add out-of-the-box expo plugin support (#88) [`#87`](https://github.com/NativeVision/viro/issues/87)
- Revert "Fix iOS compatibility and ViroVideo (#47)" [`3a4b8e0`](https://github.com/NativeVision/viro/commit/3a4b8e07319fe3ea3f31dd0b77e3b1185fe4fc48)
## v2.21.1 - 8 September 2021

- Fix iOS compatibility and ViroVideo [`#47`](https://github.com/NativeVision/viro/pull/47)
## v2.21.0 - 5 September 2021

- Update package.json [`#46`](https://github.com/NativeVision/viro/pull/46)
- Update [`#42`](https://github.com/NativeVision/viro/pull/42)
- Update INSTALL_ANDROID.md [`#38`](https://github.com/NativeVision/viro/pull/38)
- docs: updates links and also file type change [`#27`](https://github.com/NativeVision/viro/pull/27)
- docs: fixed typo [`#26`](https://github.com/NativeVision/viro/pull/26)
- Updating the discord invite link [`#10`](https://github.com/NativeVision/viro/pull/10)
- Bumping version for release. [`#9`](https://github.com/NativeVision/viro/pull/9)
- Removing references to fbjs. [`#8`](https://github.com/NativeVision/viro/pull/8)
- fix typo in package.json [`#6`](https://github.com/NativeVision/viro/pull/6)
- Adding NPM publish action [`#4`](https://github.com/NativeVision/viro/pull/4)
- * Removed the star from every pod as when doing pod install it drops … [`#1`](https://github.com/NativeVision/viro/pull/1)
- First [`4fb045b`](https://github.com/NativeVision/viro/commit/4fb045b7948533abc8787a10981f74b003a3ea68)
- Remove broken scripts [`2d94c22`](https://github.com/NativeVision/viro/commit/2d94c22e0447a655cffbb3ae415ebc111e4d15bc)
- Updating Readme to give better install instructions and moving examples to their own page(#7) [`bee93cc`](https://github.com/NativeVision/viro/commit/bee93cc7a18666294a14eb13606ef4e2f160202a)
16 changes: 16 additions & 0 deletions changelog-template.hbs
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# CHANGELOG

{{#each releases}}
## {{title}} - {{niceDate}}

{{#each merges}}
- {{{message}}}{{#if href}} [`#{{id}}`]({{href}}){{/if}}
{{/each}}
{{#each fixes}}
- {{{commit.subject}}}{{#each fixes}}{{#if href}} [`#{{id}}`]({{href}}){{/if}}{{/each}}
{{/each}}
{{#each commits}}
- {{#if breaking}}**Breaking change:** {{/if}}{{{subject}}}{{#if href}} [`{{shorthash}}`]({{href}}){{/if}}
{{/each}}

{{/each}}
9 changes: 8 additions & 1 deletion dist/index.d.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
/**
* Copyright (c) 2016-present, Viro Media, Inc.
* All rights reserved.
*
*/
import { ViroTelemetry } from "./components/Telemetry";
import { ViroAnimations } from "./components/Animation/ViroAnimations";
import { Viro3DObject } from "./components/Viro3DObject";
import { Viro360Image } from "./components/Viro360Image";
Expand Down Expand Up @@ -52,4 +58,5 @@ import { ViroARCamera } from "./components/AR/ViroARCamera";
import { ViroHoverEvent, ViroClickEvent, ViroClickStateEvent, ViroTouchEvent, ViroScrollEvent, ViroSwipeEvent, ViroFuseEvent, ViroPinchEvent, ViroRotateEvent, ViroDragEvent, ViroPlatformEvent, ViroCollisionEvent, ViroPlatformInfo, ViroCameraTransformEvent, ViroPlatformUpdateEvent, ViroCameraTransform, ViroExitViroEvent, ViroErrorEvent, ViroAnimationStartEvent, ViroAnimationFinishEvent, ViroLoadStartEvent, ViroLoadEndEvent, ViroLoadErrorEvent, ViroVideoBufferStartEvent, ViroVideoBufferEndEvent, ViroVideoUpdateTimeEvent, ViroVideoErrorEvent, ViroVideoFinishEvent, ViroAnimatedComponentStartEvent, ViroAnimatedComponentFinishEvent, ViroARAnchorRemovedEvent, ViroARAnchorUpdatedEvent, ViroARAnchorFoundEvent, ViroAnchor, ViroAnchorFoundMap, ViroAnchorUpdatedMap, ViroPlaneUpdatedMap, ViroPlaneUpdatedEvent, ViroARPlaneSizes, ViroCameraARHitTestEvent, ViroCameraARHitTest, ViroARHitTestResult, ViroARPointCloudUpdateEvent, ViroARPointCloud, ViroTrackingUpdatedEvent, ViroTrackingState, ViroTrackingReason, ViroAmbientLightUpdateEvent, ViroAmbientLightInfo, ViroWorldOrigin, ViroNativeTransformUpdateEvent, ViroControllerStatusEvent, ViroControllerStatus, ViroPortalEnterEvent, ViroPortalExitEvent, ViroSoundFinishEvent, ViroPinchStateTypes, ViroClickStateTypes, ViroRotateStateTypes } from "./components/Types/ViroEvents";
import { ViroSurface } from "./components/ViroSurface";
import { ViroSceneNavigator } from "./components/ViroSceneNavigator";
export { ViroARImageMarker, ViroARObjectMarker, ViroARTrackingTargets, ViroARPlane, ViroARPlaneSelector, ViroARScene, ViroARSceneNavigator, ViroBox, ViroButton, ViroCamera, ViroController, ViroDirectionalLight, ViroFlexView, ViroGeometry, ViroLightingEnvironment, ViroImage, ViroMaterials, ViroARCamera, ViroMaterialVideo, ViroNode, ViroOmniLight, ViroOrbitCamera, ViroParticleEmitter, ViroPolygon, ViroPolyline, ViroPortal, ViroPortalScene, ViroQuad, ViroScene, ViroSurface, ViroSceneNavigator, ViroSkyBox, ViroAnimations, Viro3DObject, Viro360Image, Viro360Video, ViroAnimatedImage, ViroAmbientLight, ViroAnimatedComponent, ViroSound, ViroSoundField, ViroSpatialSound, ViroSphere, ViroSpinner, ViroSpotLight, ViroText, ViroVideo, ViroVRSceneNavigator, Viro3DSceneNavigator, ViroARTrackingReasonConstants, ViroRecordingErrorConstants, ViroTrackingStateConstants, polarToCartesian, polarToCartesianActual, isARSupportedOnDevice, ViroARSupportResponse, ViroHoverEvent, ViroClickEvent, ViroClickStateEvent, ViroClickStateTypes, ViroTouchEvent, ViroScrollEvent, ViroSwipeEvent, ViroFuseEvent, ViroPinchEvent, ViroPinchStateTypes, ViroRotateEvent, ViroRotateStateTypes, ViroDragEvent, ViroPlatformEvent, ViroCollisionEvent, ViroPlatformInfo, ViroCameraTransformEvent, ViroPlatformUpdateEvent, ViroCameraTransform, ViroExitViroEvent, ViroErrorEvent, ViroAnimationStartEvent, ViroAnimationFinishEvent, ViroLoadStartEvent, ViroLoadEndEvent, ViroLoadErrorEvent, ViroVideoBufferStartEvent, ViroVideoBufferEndEvent, ViroVideoUpdateTimeEvent, ViroVideoErrorEvent, ViroVideoFinishEvent, ViroAnimatedComponentStartEvent, ViroAnimatedComponentFinishEvent, ViroARAnchorRemovedEvent, ViroARAnchorUpdatedEvent, ViroARAnchorFoundEvent, ViroAnchor, ViroAnchorFoundMap, ViroAnchorUpdatedMap, ViroPlaneUpdatedMap, ViroPlaneUpdatedEvent, ViroARPlaneSizes, ViroCameraARHitTestEvent, ViroCameraARHitTest, ViroARHitTestResult, ViroARPointCloudUpdateEvent, ViroARPointCloud, ViroTrackingUpdatedEvent, ViroTrackingState, ViroTrackingReason, ViroAmbientLightUpdateEvent, ViroAmbientLightInfo, ViroWorldOrigin, ViroNativeTransformUpdateEvent, ViroControllerStatusEvent, ViroControllerStatus, ViroPortalEnterEvent, ViroPortalExitEvent, ViroSoundFinishEvent, ViroTextStyle, ViroStyle, };
import { VIRO_VERSION } from "./components/Utilities/ViroVersion";
export { ViroARImageMarker, ViroARObjectMarker, ViroARTrackingTargets, ViroARPlane, ViroARPlaneSelector, ViroARScene, ViroARSceneNavigator, ViroBox, ViroButton, ViroCamera, ViroController, ViroDirectionalLight, ViroFlexView, ViroGeometry, ViroLightingEnvironment, ViroImage, ViroMaterials, ViroARCamera, ViroMaterialVideo, ViroNode, ViroOmniLight, ViroOrbitCamera, ViroParticleEmitter, ViroPolygon, ViroPolyline, ViroPortal, ViroPortalScene, ViroQuad, ViroScene, ViroSurface, ViroSceneNavigator, ViroSkyBox, ViroAnimations, Viro3DObject, Viro360Image, Viro360Video, ViroAnimatedImage, ViroAmbientLight, ViroAnimatedComponent, ViroSound, ViroSoundField, ViroSpatialSound, ViroSphere, ViroSpinner, ViroSpotLight, ViroText, ViroVideo, ViroVRSceneNavigator, Viro3DSceneNavigator, ViroARTrackingReasonConstants, ViroRecordingErrorConstants, ViroTrackingStateConstants, polarToCartesian, polarToCartesianActual, isARSupportedOnDevice, ViroARSupportResponse, ViroHoverEvent, ViroClickEvent, ViroClickStateEvent, ViroClickStateTypes, ViroTouchEvent, ViroScrollEvent, ViroSwipeEvent, ViroFuseEvent, ViroPinchEvent, ViroPinchStateTypes, ViroRotateEvent, ViroRotateStateTypes, ViroDragEvent, ViroPlatformEvent, ViroCollisionEvent, ViroPlatformInfo, ViroCameraTransformEvent, ViroPlatformUpdateEvent, ViroCameraTransform, ViroExitViroEvent, ViroErrorEvent, ViroAnimationStartEvent, ViroAnimationFinishEvent, ViroLoadStartEvent, ViroLoadEndEvent, ViroLoadErrorEvent, ViroVideoBufferStartEvent, ViroVideoBufferEndEvent, ViroVideoUpdateTimeEvent, ViroVideoErrorEvent, ViroVideoFinishEvent, ViroAnimatedComponentStartEvent, ViroAnimatedComponentFinishEvent, ViroARAnchorRemovedEvent, ViroARAnchorUpdatedEvent, ViroARAnchorFoundEvent, ViroAnchor, ViroAnchorFoundMap, ViroAnchorUpdatedMap, ViroPlaneUpdatedMap, ViroPlaneUpdatedEvent, ViroARPlaneSizes, ViroCameraARHitTestEvent, ViroCameraARHitTest, ViroARHitTestResult, ViroARPointCloudUpdateEvent, ViroARPointCloud, ViroTrackingUpdatedEvent, ViroTrackingState, ViroTrackingReason, ViroAmbientLightUpdateEvent, ViroAmbientLightInfo, ViroWorldOrigin, ViroNativeTransformUpdateEvent, ViroControllerStatusEvent, ViroControllerStatus, ViroPortalEnterEvent, ViroPortalExitEvent, ViroSoundFinishEvent, ViroTextStyle, ViroStyle, ViroTelemetry, VIRO_VERSION, };
11 changes: 10 additions & 1 deletion dist/index.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,14 @@
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.ViroARTrackingReasonConstants = exports.Viro3DSceneNavigator = exports.ViroVRSceneNavigator = exports.ViroVideo = exports.ViroText = exports.ViroSpotLight = exports.ViroSpinner = exports.ViroSphere = exports.ViroSpatialSound = exports.ViroSoundField = exports.ViroSound = exports.ViroAnimatedComponent = exports.ViroAmbientLight = exports.ViroAnimatedImage = exports.Viro360Video = exports.Viro360Image = exports.Viro3DObject = exports.ViroAnimations = exports.ViroSkyBox = exports.ViroSceneNavigator = exports.ViroSurface = exports.ViroScene = exports.ViroQuad = exports.ViroPortalScene = exports.ViroPortal = exports.ViroPolyline = exports.ViroPolygon = exports.ViroParticleEmitter = exports.ViroOrbitCamera = exports.ViroOmniLight = exports.ViroNode = exports.ViroMaterialVideo = exports.ViroARCamera = exports.ViroMaterials = exports.ViroImage = exports.ViroLightingEnvironment = exports.ViroGeometry = exports.ViroFlexView = exports.ViroDirectionalLight = exports.ViroController = exports.ViroCamera = exports.ViroButton = exports.ViroBox = exports.ViroARSceneNavigator = exports.ViroARScene = exports.ViroARPlaneSelector = exports.ViroARPlane = exports.ViroARTrackingTargets = exports.ViroARObjectMarker = exports.ViroARImageMarker = void 0;
exports.ViroRotateStateTypes = exports.ViroPinchStateTypes = exports.ViroClickStateTypes = exports.isARSupportedOnDevice = exports.polarToCartesianActual = exports.polarToCartesian = exports.ViroTrackingStateConstants = exports.ViroRecordingErrorConstants = void 0;
exports.VIRO_VERSION = exports.ViroTelemetry = exports.ViroRotateStateTypes = exports.ViroPinchStateTypes = exports.ViroClickStateTypes = exports.isARSupportedOnDevice = exports.polarToCartesianActual = exports.polarToCartesian = exports.ViroTrackingStateConstants = exports.ViroRecordingErrorConstants = void 0;
/**
* Copyright (c) 2016-present, Viro Media, Inc.
* All rights reserved.
*
*/
const Telemetry_1 = require("./components/Telemetry");
Object.defineProperty(exports, "ViroTelemetry", { enumerable: true, get: function () { return Telemetry_1.ViroTelemetry; } });
const ViroAnimations_1 = require("./components/Animation/ViroAnimations");
Object.defineProperty(exports, "ViroAnimations", { enumerable: true, get: function () { return ViroAnimations_1.ViroAnimations; } });
const Viro3DObject_1 = require("./components/Viro3DObject");
Expand Down Expand Up @@ -112,3 +119,5 @@ const ViroSurface_1 = require("./components/ViroSurface");
Object.defineProperty(exports, "ViroSurface", { enumerable: true, get: function () { return ViroSurface_1.ViroSurface; } });
const ViroSceneNavigator_1 = require("./components/ViroSceneNavigator");
Object.defineProperty(exports, "ViroSceneNavigator", { enumerable: true, get: function () { return ViroSceneNavigator_1.ViroSceneNavigator; } });
const ViroVersion_1 = require("./components/Utilities/ViroVersion");
Object.defineProperty(exports, "VIRO_VERSION", { enumerable: true, get: function () { return ViroVersion_1.VIRO_VERSION; } });
3 changes: 3 additions & 0 deletions index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -127,6 +127,7 @@ import {
} from "./components/Types/ViroEvents";
import { ViroSurface } from "./components/ViroSurface";
import { ViroSceneNavigator } from "./components/ViroSceneNavigator";
import { VIRO_VERSION } from "./components/Utilities/ViroVersion";

export {
ViroARImageMarker,
Expand Down Expand Up @@ -248,4 +249,6 @@ export {
ViroSoundFinishEvent,
ViroTextStyle,
ViroStyle,
ViroTelemetry,
VIRO_VERSION,
};
Loading

0 comments on commit 736a670

Please sign in to comment.