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

Commit 504041a

Browse files
authored
chore: v1.0.0-rc.0 release proposal (#21)
1 parent 6eaeb00 commit 504041a

File tree

4 files changed

+20
-4
lines changed

4 files changed

+20
-4
lines changed

CHANGELOG.md

+12
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,18 @@
22

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

5+
## 1.0.0-rc.0
6+
7+
### :memo: Documentation
8+
9+
* [#20](https://github.com/open-telemetry/opentelemetry-js-api/pull/20) docs: document latest manual tracing ([@dyladan](https://github.com/dyladan))
10+
* [#18](https://github.com/open-telemetry/opentelemetry-js-api/pull/18) chore: deploy docs on a release ([@dyladan](https://github.com/dyladan))
11+
* [#19](https://github.com/open-telemetry/opentelemetry-js-api/pull/19) docs: fix readme links ([@dyladan](https://github.com/dyladan))
12+
13+
### Committers: 1
14+
15+
* Daniel Dyla ([@dyladan](https://github.com/dyladan))
16+
517
## 0.18.1
618

719
### :bug: Bug Fix

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@opentelemetry/api",
3-
"version": "0.18.1",
3+
"version": "1.0.0-rc.0",
44
"description": "Public API for OpenTelemetry",
55
"main": "build/src/index.js",
66
"types": "build/src/index.d.ts",

src/version.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,4 +15,4 @@
1515
*/
1616

1717
// this is autogenerated file, see scripts/version-update.js
18-
export const VERSION = '0.18.1';
18+
export const VERSION = '1.0.0-rc.0';

test/internal/global.test.ts

+6-2
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,10 @@ for (const key of Object.keys(require.cache)) {
2828
}
2929
const api2 = require('../../src') as typeof import('../../src');
3030

31+
// This will need to be changed manually on major version changes.
32+
// It is intentionally not autogenerated to ensure the author of the change is aware of what they are doing.
33+
const GLOBAL_API_SYMBOL_KEY = 'io.opentelemetry.js.api.1';
34+
3135
describe('Global Utils', () => {
3236
// prove they are separate instances
3337
assert.notEqual(api1, api2);
@@ -43,7 +47,7 @@ describe('Global Utils', () => {
4347
api1.trace.disable();
4448
api1.diag.disable();
4549
// @ts-expect-error we are modifying internals for testing purposes here
46-
delete _globalThis[Symbol.for('io.opentelemetry.js.api.0')];
50+
delete _globalThis[Symbol.for(GLOBAL_API_SYMBOL_KEY)];
4751
});
4852

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

8791
assert.strictEqual(api1.context['_getContextManager'](), original);
8892
});

0 commit comments

Comments
 (0)