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

Commit

Permalink
Merge pull request #43 from prometheus/feature/update
Browse files Browse the repository at this point in the history
update link and license authors
  • Loading branch information
juliusv authored Nov 22, 2021
2 parents cb1084c + f638120 commit d12afae
Show file tree
Hide file tree
Showing 6 changed files with 15 additions and 14 deletions.
11 changes: 6 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
# lezer-promql

[![CircleCI](https://circleci.com/gh/promlabs/lezer-promql.svg?style=shield)](https://circleci.com/gh/promlabs/lezer-promql) [![NPM version](https://img.shields.io/npm/v/lezer-promql.svg)](https://www.npmjs.org/package/lezer-promql)
[![CircleCI](https://circleci.com/gh/prometheus/lezer-promql.svg?style=shield)](https://circleci.com/gh/prometheus/lezer-promql) [![NPM version](https://img.shields.io/npm/v/lezer-promql.svg)](https://www.npmjs.org/package/lezer-promql)

## Status
## Where does it come from?

This repository is **deprecated** and **won't be maintained** anymore. `lezer-promql` has been merged with `codemirror-promql`
and the code is available here: https://github.com/prometheus/prometheus/tree/main/web/ui/module/codemirror-promql/src/grammar
The authoritative copy of this code lives in `prometheus/prometheus` and is synced to
`prometheus/lezer-promql` on a regular basis by a bot. Please contribute any code changes to the code
in https://github.com/prometheus/prometheus/tree/main/web/ui/module/codemirror-promql/src/grammar.

## Overview

Expand All @@ -14,7 +15,7 @@ grammar coming from [Prometheus](https://github.com/prometheus/prometheus/blob/m
written in yacc.

This library is stable but doesn't provide any guideline of how to use it as it has been integrated
into [codemirror-promql](https://github.com/prometheus-community/codemirror-promql). If you want to use this library,
into [codemirror-promql](https://github.com/prometheus/codemirror-promql). If you want to use this library,
you perhaps want to actually use **codemirror-promql** instead.

**Note**: This library is following the changes of the upstream grammar (i.e. coming from Prometheus) as closed as possible
Expand Down
2 changes: 1 addition & 1 deletion build.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/bin/bash

# Copyright 2021 PromLabs GmbH
# Copyright 2021 The Prometheus Authors
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
Expand Down
4 changes: 2 additions & 2 deletions generate-types.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/bin/bash

# Copyright 2021 PromLabs GmbH
# Copyright 2021 The Prometheus Authors
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
Expand All @@ -23,7 +23,7 @@ if [[ -f ${indexFile} ]]; then
fi

cat <<EOF >> ${indexFile}
// Copyright 2021 PromLabs GmbH
// Copyright 2021 The Prometheus Authors
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
Expand Down
8 changes: 4 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
},
"module": "index.es.js",
"types": "index.d.ts",
"author": "Julius Volz <julius.volz@promlabs.com>",
"author": "Prometheus Authors <prometheus-developers@googlegroups.com>",
"license": "Apache-2.0",
"devDependencies": {
"lezer": "^0.13.1",
Expand All @@ -24,7 +24,7 @@
},
"repository": {
"type": "git",
"url": "git+https://github.com/promlabs/lezer-promql.git"
"url": "git+https://github.com/prometheus/lezer-promql.git"
},
"scripts": {
"build": "bash ./build.sh",
Expand All @@ -35,7 +35,7 @@
"promql"
],
"bugs": {
"url": "https://github.com/promlabs/lezer-promql/issues"
"url": "https://github.com/prometheus/lezer-promql/issues"
},
"homepage": "https://github.com/promlabs/lezer-promql#readme"
"homepage": "https://github.com/prometheus/lezer-promql#readme"
}
2 changes: 1 addition & 1 deletion src/promql.grammar
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright 2021 PromLabs GmbH
// Copyright 2021 The Prometheus Authors
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
Expand Down
2 changes: 1 addition & 1 deletion src/tokens.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright 2021 PromLabs GmbH
// Copyright 2021 The Prometheus Authors
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
Expand Down

0 comments on commit d12afae

Please sign in to comment.