Skip to content
This repository has been archived by the owner on Nov 10, 2022. It is now read-only.

Commit

Permalink
chore: v1.0.0-rc.0 release proposal (#21)
Browse files Browse the repository at this point in the history
  • Loading branch information
dyladan committed Mar 12, 2021
1 parent 6eaeb00 commit 504041a
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 4 deletions.
12 changes: 12 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,18 @@

All notable changes to this project will be documented in this file.

## 1.0.0-rc.0

### :memo: Documentation

* [#20](https://github.com/open-telemetry/opentelemetry-js-api/pull/20) docs: document latest manual tracing ([@dyladan](https://github.com/dyladan))
* [#18](https://github.com/open-telemetry/opentelemetry-js-api/pull/18) chore: deploy docs on a release ([@dyladan](https://github.com/dyladan))
* [#19](https://github.com/open-telemetry/opentelemetry-js-api/pull/19) docs: fix readme links ([@dyladan](https://github.com/dyladan))

### Committers: 1

* Daniel Dyla ([@dyladan](https://github.com/dyladan))

## 0.18.1

### :bug: Bug Fix
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@opentelemetry/api",
"version": "0.18.1",
"version": "1.0.0-rc.0",
"description": "Public API for OpenTelemetry",
"main": "build/src/index.js",
"types": "build/src/index.d.ts",
Expand Down
2 changes: 1 addition & 1 deletion src/version.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,4 @@
*/

// this is autogenerated file, see scripts/version-update.js
export const VERSION = '0.18.1';
export const VERSION = '1.0.0-rc.0';
8 changes: 6 additions & 2 deletions test/internal/global.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,10 @@ for (const key of Object.keys(require.cache)) {
}
const api2 = require('../../src') as typeof import('../../src');

// This will need to be changed manually on major version changes.
// It is intentionally not autogenerated to ensure the author of the change is aware of what they are doing.
const GLOBAL_API_SYMBOL_KEY = 'io.opentelemetry.js.api.1';

describe('Global Utils', () => {
// prove they are separate instances
assert.notEqual(api1, api2);
Expand All @@ -43,7 +47,7 @@ describe('Global Utils', () => {
api1.trace.disable();
api1.diag.disable();
// @ts-expect-error we are modifying internals for testing purposes here
delete _globalThis[Symbol.for('io.opentelemetry.js.api.0')];
delete _globalThis[Symbol.for(GLOBAL_API_SYMBOL_KEY)];
});

it('should change the global context manager', () => {
Expand Down Expand Up @@ -82,7 +86,7 @@ describe('Global Utils', () => {
const globalInstance = getGlobal('context');
assert.ok(globalInstance);
// @ts-expect-error we are modifying internals for testing purposes here
_globalThis[Symbol.for('io.opentelemetry.js.api.0')].version = '0.0.1';
_globalThis[Symbol.for(GLOBAL_API_SYMBOL_KEY)].version = '0.0.1';

assert.strictEqual(api1.context['_getContextManager'](), original);
});
Expand Down

0 comments on commit 504041a

Please sign in to comment.